Class to authenticate via Grid Certificate
Definition at line 20 of file authentication.py.
def authentication.X509CertAuth.__init__ |
( |
|
self, |
|
|
|
host, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Definition at line 22 of file authentication.py.
References cmsRelvalreport.exit.
26 x509_path = getenv(
"X509_USER_PROXY",
None)
27 if x509_path
and exists(x509_path):
28 key_file = cert_file = x509_path
31 x509_path = getenv(
"X509_USER_KEY",
None)
32 if x509_path
and exists(x509_path):
36 x509_path = getenv(
"X509_USER_CERT",
None)
37 if x509_path
and exists(x509_path):
41 x509_path = getenv(
"HOME") +
"/.globus/userkey.pem" 46 x509_path = getenv(
"HOME") +
"/.globus/usercert.pem" 50 if not key_file
or not exists(key_file):
51 print >>stderr,
"No certificate private key file found" 54 if not cert_file
or not exists(cert_file):
55 print >>stderr,
"No certificate public key file found" 61 HTTPSConnection.__init__(self,
64 cert_file = cert_file,
def __init__(self, host, args, kwargs)