Skip to content

Commit 9a91795

Browse files
authored
Merge pull request #6920 from atsareg/fix-ca-dir
[8.0] Set CA directory location in HTCondorCE
2 parents 9d0a7b8 + a551437 commit 9a91795

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DIRAC/Resources/Computing/HTCondorCEComputingElement.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient
6363
from DIRAC.Core.Utilities.File import makeGuid
6464
from DIRAC.FrameworkSystem.private.authorization.utils.Tokens import writeToTokenFile
65-
65+
from DIRAC.Core.Security.Locations import getCAsLocation
6666
from DIRAC.Resources.Computing.BatchSystems.Condor import parseCondorStatus
6767

6868
MANDATORY_PARAMETERS = ["Queue"]
@@ -273,6 +273,8 @@ def _executeCondorCommand(self, cmd, keepTokenFile=False):
273273
"_CONDOR_SEC_CLIENT_AUTHENTICATION_METHODS": "SCITOKENS",
274274
"_CONDOR_SCITOKENS_FILE": self.tokenFile.name,
275275
}
276+
if cas := getCAsLocation():
277+
htcEnv["_CONDOR_AUTH_SSL_CLIENT_CADIR"] = cas
276278
else:
277279
htcEnv = {"_CONDOR_SEC_CLIENT_AUTHENTICATION_METHODS": "GSI"}
278280

0 commit comments

Comments
 (0)