The question is, how to safely install packages using pip on Ubuntu Trusty? Of course, I need to clarify why I think this is unsafe.
urllib3 provides InsecurePlatformWarning if you make an https request without several additional python libraries related to openssl before Python 2.7.9. This is a well-asked question and answer:
InsecurePlatformWarning: A true SSLContext is not available. This prevents urllib3 from properly configuring SSL
The problem is that if you install pip version 6 or so, it starts giving you this very warning, as you are installing something. From the official answer to the question:
https://urllib3.readthedocs.org/en/latest/security.html#pyopenssl
it looks like the problem is the Python ssl library. Did Pip just switch to the Python ssl library from openssl in the latest version? My assumption (possibly a bad assumption) is that pip used the Python library before, it just used an older version of urllib that didn't even give a warning. So it was unsafe all the time (although the particular concern seems to be somewhat recent).
Well, if that is the case, then the Ubuntu stock version is unsafe. I cannot use it to safely install material, to make it safe. No matter, I can just install the same things from the Ubuntu repository, which checks packages with GPG:
http://packages.ubuntu.com/search?keywords=python-ndg-httpsclient
Except as described above, available only in Utopic. On Trusty, I seem stuck.
So what is the deal? Do I need to roll the dice and install these things unsafe once, and then safely use pip only after that? Or am I misunderstanding the situation?
python pip ssl ubuntu
orblivion
source share