-
-
Save illucent/6629e8f85cb2da64294c to your computer and use it in GitHub Desktop.
Fix SSL winrm error win2012 on mac el capitan default python 2.7 - create /Library/Python/2.7/site-packages/sitecustomize.py with the content below
This file contains hidden or 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
| import ssl | |
| try: | |
| _create_unverified_https_context = ssl._create_unverified_context | |
| except AttributeError: | |
| # Legacy Python that doesn't verify HTTPS certificates by default | |
| pass | |
| else: | |
| # Handle target environment that doesn't support HTTPS verification | |
| 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