Skip to content

Instantly share code, notes, and snippets.

@keyan
Last active March 19, 2018 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keyan/dcabed241d50784002f75c7b4885702b to your computer and use it in GitHub Desktop.
Save keyan/dcabed241d50784002f75c7b4885702b to your computer and use it in GitHub Desktop.
Disabling Python's SSL verification

It is pretty confusing how to add custom root certificates to Python's trusted cert list as it doesn't use system certs. Instead I just disabled verification entirely. Note this is for local development only and SHOULD NOT BE USED IN PRODUCTION:

$ export PYTHONHTTPSVERIFY=0

This is helpful for capturing and inspecting outbound packets using Charles proxy or a similar tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment