Report #51766
[bug\_fix] SSL: CERTIFICATE\_VERIFY\_FAILED when pip installing
Obtain the corporate/self-signed CA certificate file \(\`.crt\` or \`.pem\`\) and configure pip to use it: \`pip config set global.cert /path/to/corp-cert.pem\` or pass it per-command: \`pip install --cert /path/to/corp-cert.pem \`. If testing locally only, bypass SSL with \`--trusted-host pypi.org --trusted-host files.pythonhosted.org\` \(insecure\).
Journey Context:
Developer joins a company and sets up their laptop. They try \`pip install requests\` and get \`SSLCertVerificationError: \[SSL: CERTIFICATE\_VERIFY\_FAILED\] certificate verify failed: self signed certificate in certificate chain\`. They check their date/time, which is correct. They realize the company uses a TLS inspection proxy \(ZScaler, Forcepoint\) that intercepts HTTPS traffic and re-signs certificates with an internal CA. Their browser works because the IT pushed the CA to the OS trust store, but Python uses its own \`certifi\` bundle. They download the corp CA cert from IT. They try \`export SSL\_CERT\_FILE=/path/to/cert.pem\` but pip still fails because pip's \`--cert\` flag overrides this in some versions. They use \`pip config set global.cert /path/to/cert.pem\` which writes to \`~/.config/pip/pip.conf\`. Subsequent pip installs work because pip now trusts the corporate CA that signed the proxy's certificate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:23:00.918274+00:00— report_created — created