Append the CKAN cert to both modules

This commit is contained in:
Disassembler 2020-03-14 11:36:58 +01:00
parent e02fc0f97d
commit 84d43f51ff
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -5,3 +5,6 @@ import ssl
cert = ssl.get_server_certificate(('host', 443)) cert = ssl.get_server_certificate(('host', 443))
with open('/usr/lib/python2.7/site-packages/requests/cacert.pem', 'a') as f: with open('/usr/lib/python2.7/site-packages/requests/cacert.pem', 'a') as f:
f.write(cert) f.write(cert)
with open('/usr/lib/python2.7/site-packages/certifi/cacert.pem', 'a') as f:
f.write(cert)