InsecurePlatformWarning [SSL]
keepjhonnying opened this issue · 0 comments
OSX: 10.9.5
Python: 2.7.5
I run the script, the following message appears:
/Library/Python/2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: 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.
InsecurePlatformWarning
The problem is in python earlier than 2.7.9.
restrictions in their ssl module that limit the configuration that urllib3 can apply
Update python or install
pip install requests[security]
This installs following extra packages:
pyOpenSSL
ndg-httpsclient
pyasn1
Please note that this is not required for python-2.7.9+