Repository navigation
libressl: Actually utilize custom CA store - #540702
Merged
Merged
Conversation
This commit adds a libressl patch that makes LibreSSL to actually use the cacert bundle we supply, as there was an upstream CMake bug that lead CMake to ignore custom paths to CI bundles.
This commit adds an installCheckPhase that grep's for a binary match inside the result, in order to verify that our own CA store is actually honored.
ruuda
approved these changes
Jul 20, 2026
ruuda
left a comment
Contributor
There was a problem hiding this comment.
It looks good to me, I verified that it builds on x86-64 Linux. I am slightly worried that this may break Darwin, because similar changes have broken Darwin on the past, but I don’t use it myself and I don’t have access to a machine to test with, so I think we have to rely on a Darwin user to report it in case it breaks.
Member
Author
|
FWIW: I have built and developed it on Darwin and it seemed to work fine for me, although I did not triggered a full rebuild with it |
Contributor
|
Oh right, I should have seen that in the PR description, my bad. Then together we tested both, LGTM :-) (I don’t have merge powers though.) |
2 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.
This commit backports libressl/portable#1303 to nixpkgs, which fixes a bug in the LibreSSL build systems which lead it to not honor our custom CA store.
Besides, it also adds an installCheckPhase test that greps the result to contain a binary match for the expected CA store path, which fails if this backported patch is not applied.
I think this patch is important because specifying the CA store is a core functionality for TLS libraries.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.