Skip to content

libressl: Actually utilize custom CA store - #540702

Merged
K900 merged 2 commits into
NixOS:stagingfrom
cvengler:libressl-tls-cacert
Jul 22, 2026
Merged

K900 merged 2 commits into
NixOS:stagingfrom
cvengler:libressl-tls-cacert

Conversation

@cvengler

Copy link
Copy Markdown
Member

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

cvengler added 2 commits July 11, 2026 12:26
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.
@cvengler cvengler changed the title Libressl tls cacert libressl: Actually utilize custom CA store Jul 11, 2026
@cvengler
cvengler requested a review from ruuda July 11, 2026 10:36
@nixpkgs-ci
nixpkgs-ci Bot requested review from fpletz and thoughtpolice July 11, 2026 10:44
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jul 11, 2026

@ruuda ruuda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 20, 2026
@cvengler

Copy link
Copy Markdown
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

@ruuda

ruuda commented Jul 21, 2026

Copy link
Copy Markdown
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.)

@K900
K900 added this pull request to the merge queue Jul 22, 2026
Merged via the queue into NixOS:staging with commit a2c03f7 Jul 22, 2026
31 checks passed
@cvengler
cvengler deleted the libressl-tls-cacert branch July 22, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants