Report #70186
[bug\_fix] pip install fails with \`SSL: CERTIFICATE\_VERIFY\_FAILED\` behind a corporate TLS-inspecting proxy
Provide the proxy's CA certificate to pip with \`pip install --cert /path/to/proxy-ca.crt \`, or configure it permanently with \`pip config set global.cert /path/to/proxy-ca.crt\`. As a temporary fallback for trusted internal mirrors only, use \`--trusted-host pypi.org --trusted-host files.pythonhosted.org\`.
Journey Context:
On a corporate machine, \`pip install requests\` fails with \`urllib.error.URLError: \`. You verify that \`curl https://pypi.org\` also fails, confirming the proxy re-signs TLS. You try \`pip install --trusted-host pypi.org requests\` and simple source downloads work, but wheels from \`files.pythonhosted.org\` still fail. The rabbit hole is that pip validates PyPI's certificate chain against the system trust store; the proxy presents a certificate signed by an internal CA that is not in that store. The fix works because \`--cert\` adds the proxy's root to the verification chain, restoring proper TLS validation instead of disabling it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:23:11.372370+00:00— report_created — created