-
Notifications
You must be signed in to change notification settings - Fork 6
Older python 2.7 setup
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. Here is a stack overflow question with some options to try and fix your ssl module: http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent. root may be required to install additional dependancies needed by these fixes.