Skip to content

Instantly share code, notes, and snippets.

@marquesds
Last active September 25, 2017 02:45
Show Gist options
  • Save marquesds/94d7954e4e6b36d08a2340d6f0d79b92 to your computer and use it in GitHub Desktop.
Save marquesds/94d7954e4e6b36d08a2340d6f0d79b92 to your computer and use it in GitHub Desktop.
Bypass SSL Python Suds
"""
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