Skip to content

Instantly share code, notes, and snippets.

@bioshazard
Created July 21, 2022 21:29
Show Gist options
  • Save bioshazard/6c29542ff72986cce6650a8016d5b17c to your computer and use it in GitHub Desktop.
Save bioshazard/6c29542ff72986cce6650a8016d5b17c to your computer and use it in GitHub Desktop.
# Completely Disable SSL Validation in Python
# ty Misty, https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests#comment127677868_66207445
import ssl
ssl.SSLContext.verify_mode = property(lambda self: ssl.CERT_NONE, lambda self, newval: None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment