Last active
September 25, 2017 02:45
-
-
Save marquesds/94d7954e4e6b36d08a2340d6f0d79b92 to your computer and use it in GitHub Desktop.
Bypass SSL Python Suds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Ref.: https://lucasmarques.me/bypass-ssl/ | |
""" | |
# Before instantiate suds client | |
import ssl | |
try: | |
_create_unverified_https_context = ssl._create_unverified_context | |
except AttributeError: | |
pass | |
else: | |
ssl._create_default_https_context = _create_unverified_https_context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment