Class to authenticate via Grid Certificate
Definition at line 26 of file authentication.py.
def authentication.X509CertAuth.__init__ |
( |
|
self, |
|
|
|
host, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Definition at line 28 of file authentication.py.
References beamvalidation.exit(), and print().
29 def __init__(self, host, *args, **kwargs):
33 x509_path = getenv(
"X509_USER_PROXY",
None)
34 if x509_path
and exists(x509_path):
35 key_file = cert_file = x509_path
38 x509_path = getenv(
"X509_USER_KEY",
None)
39 if x509_path
and exists(x509_path):
43 x509_path = getenv(
"X509_USER_CERT",
None)
44 if x509_path
and exists(x509_path):
48 x509_path = getenv(
"HOME") +
"/.globus/userkey.pem"
53 x509_path = getenv(
"HOME") +
"/.globus/usercert.pem"
57 if not key_file
or not exists(key_file):
58 print(
"No certificate private key file found", file=stderr)
61 if not cert_file
or not exists(cert_file):
62 print(
"No certificate public key file found", file=stderr)
68 HTTPSConnection.__init__(self,
71 cert_file = cert_file,
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)