We installed the our root cert on the client, and the https connection works for curl
.
But if we try to use pip
, it fails:
For me, none of the config-file workarounds worked. I'm using pip 1.5.4 on Ubuntu 14.04
The command posted by @arjenve didn't work on my system either. I get: /usr/bin/python: No module named _vendor.requests
UPDATE
An even better solution than my first workaround is installing the certificate on the system first (for me on ubuntu this would be)
sudo cp ~/my_cert.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
The previous automatically updates the bundle file (checking at the bottom of /etc/ssl/certs/ca-certificates.crt
you should now see the same certificate as in my_cert.crt
)
Now export that path into PIP_CERT
and add it to your .bashrc
:
echo export PIP_CERT=/etc/ssl/certs/ca-certificates.crt >> ~/.bashrc
OLDER WORKAROUND
My workaround was to create a bundle file from /etc/ssl/certs/ca-certificates.crt
and my corporate's crt (just concatenated both files). And then export a variable (put that on my .bashrc
) like this:
export PIP_CERT=/my/path/to/the/bundle.crt