Skip to content

Instantly share code, notes, and snippets.

@DavidPu
Created February 5, 2019 19:24
Show Gist options
  • Select an option

  • Save DavidPu/ea2f477e2b331ab58223fd2262ef291e to your computer and use it in GitHub Desktop.

Select an option

Save DavidPu/ea2f477e2b331ab58223fd2262ef291e to your computer and use it in GitHub Desktop.
self.session = requests.Session()
self.session.verify = True
# get the cert:
# openssl s_client -connect www.google.com:443 -showcerts > google.ca
# apend the last cert into $(dirname $(which python))/../lib/python*/site-packages/certifi/cacert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment