User Tools

Site Tools


python_urllib3_sni

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

python_urllib3_sni [2016/09/22 01:10] (current)
kyxap created
Line 1: Line 1:
 +{{tag>​python urllib3 pip }}
 +====== How to fix Python 2.x urllib3 SNI warning ======
 +===Problem===
 +<WRAP prewrap><​cli>​
 +kyxap@workbench:​~$ pip search pg_activity
 +/​usr/​local/​lib/​python2.7/​dist-packages/​pip/​_vendor/​requests/​packages/​urllib3/​util/​ssl_.py:​318:​ SNIMissingWarning:​ An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate,​ which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information,​ see https://​urllib3.readthedocs.org/​en/​latest/​security.html#​snimissingwarning.
 +  SNIMissingWarning
 +/​usr/​local/​lib/​python2.7/​dist-packages/​pip/​_vendor/​requests/​packages/​urllib3/​util/​ssl_.py:​122:​ InsecurePlatformWarning:​ A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information,​ see https://​urllib3.readthedocs.org/​en/​latest/​security.html#​insecureplatformwarning.
 +  InsecurePlatformWarning
 +pg_activity (1.3.0) ​ - Command line tool for PostgreSQL server activity monitoring.
 +</​cli></​WRAP>​
 +
 +===Solution===
 +<WRAP prewrap><​cli>​
 +kyxap@workbench:​~$ pip install pyopenssl ndg-httpsclient pyasn1 -U
 +</​cli></​WRAP>​
  
python_urllib3_sni.txt · Last modified: 2016/09/22 01:10 by kyxap