Spotter-VM/lxc-apps/ckan/ckan-datapusher.image.d/bin/add-ca-cert

8 lines
175 B
Plaintext
Raw Normal View History

2020-03-13 20:10:24 +01:00
#!/usr/bin/python3
import ssl
cert = ssl.get_server_certificate(('host', 443))
with open('/usr/lib/python3.8/site-packages/certifi/cacert.pem', 'a') as f:
f.write(cert)