Skip to content

Instantly share code, notes, and snippets.

@mewm
Created October 29, 2015 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mewm/1251199abeb463da63df to your computer and use it in GitHub Desktop.
Save mewm/1251199abeb463da63df 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
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