Repository navigation
Conversation
pip adds the cacert.pem of its vendored certifi to the trust store next to the system store. Thus a cacert update alone does not remove a distrusted root (for example emSign ECC Root CA - G3) from pip. Append an override to the vendored certifi so that where() and contents() return NIX_SSL_CERT_FILE, SSL_CERT_FILE or /etc/ssl/certs/ca-certificates.crt when one exists. The vendored bundle stays as a fallback. The cpython ensurepip wheel uses the same file. Assisted-by: Claude Code (claude-opus-5)
This was referenced Oct 20, 2026
This was referenced Oct 20, 2026
Contributor
|
I would like to see this get merged. I added the roots of the compromised eMudhra intermediate certs to |
3 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pip adds the cacert.pem of its vendored certifi to the trust store next to the system store. Thus a cacert update alone does not remove a distrusted root (for example emSign ECC Root CA - G3) from pip.
Append an override to the vendored certifi so that where() and contents() return NIX_SSL_CERT_FILE, SSL_CERT_FILE or /etc/ssl/certs/ca-certificates.crt when one exists. The vendored bundle stays as a fallback.
The cpython ensurepip wheel uses the same pip-certifi-override.py: #576524
Tested on x86_64-linux (same diff on master):
pip download sixwith SSL_CERT_FILE set to an unrelated self-signed cert fails, and with the system bundle it works. Before the change both worked, because pip also trusted its vendored bundle.Related to: #576485
Related to: #576541
Assisted-by: Claude Code (claude-opus-5)
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.