Repository navigation
use buildcatrust to generate trust stores - #136777
Conversation
sternenseemann
left a comment
There was a problem hiding this comment.
Initial impression, will have a more thorough look later hopefully.
|
nixos/tests/custom-ca.nix passes! (or well, it did before my most recent rebase on top of staging) |
There was a problem hiding this comment.
| install -D ca-bundle.trust.p11-kit $p11kit/etc/ssl/trust-source/ca-bundle.trust.p11-kit | |
| install -D ca-bundle.trust.p11-kit -t $p11kit/etc/ssl/trust-source |
There was a problem hiding this comment.
| install -D ca-bundle.crt $out/etc/ssl/certs/ca-bundle.crt | |
| install -D ca-bundle.crt -t $out/etc/ssl/certs |
rnhmjoj
left a comment
There was a problem hiding this comment.
Thank you for working on this!
I left some comments and suggestions, mostly about shell scripting.
|
I'd like to have this in the 21.11 release, before the feature freeze. |
sternenseemann
left a comment
There was a problem hiding this comment.
Nothing else stood out to me on this pass.
This introduces the ability to have additional certificates in the trust store using an override, similar to how the blacklist is done. If the certificates are provided in OpenSSL TRUSTED CERTIFICATE form, then those trust bits will be respected. It also adds a p11-kit compatible trust store output.
This allows users to specify custom CAs without needing to download the entirety of the NSS source code - just certdata.txt, which should end up in cache.nixos.org.
The cacert package can now generate p11-kit-compatible output itself, as well as generating the correct set of outputs for fully-joined and unbundled "traditional" outputs (in standard PEM and OpenSSL-compatible formats).
mweinelt
left a comment
There was a problem hiding this comment.
Tested locally and Firefox looks good.
|
Sorry for the late reply but it took me an age to build all the dependencies. The changes look good, for what I'm qualified to review, at least. Also, the basic custom-ca test is passing and re-enabling p11kit didn't bring back #126065, so far so good. However, I noticed that MITMing Firefox with a system root CA doesn't work anymore, but I don't know for sure if this PR is related or it's due to some change upstream. Firefox should detect this and automatically enable |
|
Um, what about |
|
@evrim That option should be enabled by default (it has been for a while), but it doesn't matter because setting |
|
feel like there should also be a release note that this occurred. |
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)