You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
John Bradley edited this page Jan 5, 2017
·
10 revisions
For python 2 the preferred version is 2.7.9+ as it contains a functional ssl module.
In testing the Redhat patched python version 2.7.8 works without modification.
This error can occur if you are using a python < 2.7.9 with an unpatched ssl module:
InsecurePlatformWarning: A true SSLContext object is not
available. This prevents urllib3 from configuring SSL appropriately and
may cause certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest
/security.html#insecureplatformwarning.
Further more it can think invalid certificates are valid.
Patching your python ssl
There is this guide to fix the ssl module: https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2, but in practice I have seen this fail to install.
There are also recommendations online to run pip install pyopenssl ndg-httpsclient pyasn1, these have also failed for me. root may be required to install additional dependancies needed by these fixes.