Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 31, 2023
1 parent f60f881 commit dd18412
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,13 @@ def sendMessage(url, pilotUUID, method, rawMessage):

context = ssl.create_default_context()
context.load_verify_locations(capath=caPath)
context.load_cert_chain(cert)
try:
context.load_cert_chain(cert)
except IsADirectoryError:
context.load_cert_chain(
os.path.join(cert, "hostcert.pem"),
os.path.join(cert, "hostkey.pem")
)
res = urlopen(url, data, context=context)
res.close()

Expand Down

0 comments on commit dd18412

Please sign in to comment.