find_credential
- gwdatafind.utils.find_credential()
Locate X509 certificate and key files.
Warning
This method is deprecated and will be removed in a future release.
This function checks the following paths in order:
${X509_USER_PROXY}
${X509_USER_CERT}
and${X509_USER_KEY}
/tmp/x509up_u${UID}
- Returns
cert, key (
str
,str
) – the paths of the certificate and key files, respectively.- Raises
RuntimeError – if not certificate files can be found, or if the files found on disk cannot be validtted.