The question is, how do I install packages securely with pip, on Ubuntu Trusty? Of course I need to clarify why I believe it's insecure.
urllib3 gives an InsecurePlatformWarning
if you make an https request without a few extra openssl related python libraries installed, before Python 2.7.9. This is a well established question and answer:
The problem is, if you install pip version 6 or so, it starts giving you this very warning, as you install anything. From reading the official answer to the problem:
https://urllib3.readthedocs.org/en/latest/security.html#pyopenssl
it sounds like the problem lies in the Python ssl library. Did Pip just switch to the Python ssl library from openssl in the latest version? My guess (perhaps a bad guess) is that pip used the Python library before, it just used an older version of urllib that didn't even give the warning. So it's been insecure the whole time (though the particular vuln of concern seems to be somewhat recent).
Well if that's the case, the stock version of pip on Ubuntu isn't safe. I can't use it to safely install the stuff to make it safe. No matter, I can just install the same things from Ubuntu's repo, which verifies packages with GPG:
http://packages.ubuntu.com/search?keywords=python-ndg-httpsclient
Except the above is only available starting in Utopic. On Trusty I appear to be stuck.
So what's the deal? Do I have to roll the dice and install this stuff insecurely once, and then use pip securely only after that? Or am I misreading the situation altogether?