11 lines
270 B
Python
Executable File
11 lines
270 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import ssl
|
|
|
|
cert = ssl.get_server_certificate(('host', 443))
|
|
with open('/usr/lib/python2.7/site-packages/requests/cacert.pem', 'a') as f:
|
|
f.write(cert)
|
|
|
|
with open('/usr/lib/python2.7/site-packages/certifi/cacert.pem', 'a') as f:
|
|
f.write(cert)
|