pip install [or any operation which requires internet access] fails with an exception (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
) as it doesnt trust the CA Certificate injected by NBN proxy.
I tried following but failed:
- Tried installing package by trusting the http site but I believe it wouldnt work as pypi.org doesnt have http site anymore.
pip install --trusted-host pypi.org
or equivalent. Also tried with option--index-url
- Exported the NBN CA Cert from Google Chrome in .cer format. Converted .cer to .pem format by using openssl command
openssl x509 -inform der -in certificate.cer -out certificate.pem
and used the certificate with commandpip install <package> --cert <cert file>
- Tried adding ENV variable called
SSL_CERT_FILE=c:\path\to\cert.pem
- Unistalled all python versions and tried separately with python 2.7 and 3.6 separately
- Tried with a fresh install in a separate citrix desktop.