Report #7106
[bug\_fix] pip install fails with 'SSL: CERTIFICATE\_VERIFY\_FAILED' or 'certificate verify failed: unable to get local issuer certificate' behind corporate proxy
Obtain the corporate/self-signed CA certificate file \(e.g., corp-ca.crt\) and configure pip to use it with 'pip config set global.cert /path/to/corp-ca.crt' or set the environment variable 'export PIP\_CERT=/path/to/corp-ca.crt'. As a temporary insecure workaround only, use '--trusted-host pypi.org --trusted-host files.pythonhosted.org'.
Journey Context:
Developer working on a corporate laptop attempts 'pip install requests'. It fails with an SSL error ending in 'CERTIFICATE\_VERIFY\_FAILED'. The company uses a transparent SSL proxy that decrypts and re-encrypts traffic for security scanning, using an internal CA not present in the default certifi bundle used by Python. The developer tries updating pip but it fails the same way. They consider using '--trusted-host' flags but their security team forbids it. They obtain the corporate CA certificate file \(corp-ca.pem\) from IT. They try 'pip install --cert corp.pem requests' and it works. To make it permanent, they run 'pip config set global.cert /path/to/corp.pem' which writes to ~/.config/pip/pip.conf \(or %APPDATA%\\pip\\pip.ini on Windows\), allowing all future pip commands to trust the corporate CA.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:47:41.450117+00:00— report_created — created