Locations
Collection of utilities for locating certs, proxy, CAs
- DIRAC.Core.Security.Locations.getCAsLocation()
Retrieve the CA’s files location
- DIRAC.Core.Security.Locations.getCAsLocationNoConfig()
Retrieve the CA’s files location
- DIRAC.Core.Security.Locations.getCertificateAndKeyLocation()
Get the locations of the user X509 certificate and key pem files
- DIRAC.Core.Security.Locations.getDefaultProxyLocation()
Get the location of a possible new grid proxy file
- DIRAC.Core.Security.Locations.getHostCertificateAndKeyLocation(specificLocation=None)
Retrieve the host certificate files location.
Lookup order:
specificLocation(probably broken, don’t use it)Environment variables (
DIRAC_X509_HOST_CERTandDIRAC_X509_HOST_KEY)CS (
/DIRAC/Security/CertFileand/DIRAC/Security/CertKey)Alternative exotic options, with
prefixinserver,host,dirac,service: * in <DIRAC rootpath>/etc/grid-security/ for<prefix>cert.pemand<prefix>key.pem* in the path defined in the CS in/DIRAC/Security/Grid-Security
- Parameters:
specificLocation – CS path to look for a the path to cert and key, which then should be the same. Probably does not work, don’t use it
- Returns:
tuple
(<cert location>, <key location>)orFalse
- DIRAC.Core.Security.Locations.getProxyLocation()
Get the path of the currently active grid proxy file
- DIRAC.Core.Security.Locations.getVOMSLocation()
Retrieve the CA’s files location
- DIRAC.Core.Security.Locations.getVomsdirLocation()
Get the location of the directory containing the vomsdir files
- DIRAC.Core.Security.Locations.getVomsesLocation()
Get the location of the directory containing the vomses files