Add Nix's pkgs.cacert path to CA certificates#49
Add Nix's pkgs.cacert path to CA certificates#49autrilla wants to merge 1 commit intorustls:mainfrom
Conversation
| "/etc/ssl/ca-bundle.pem", // OpenSUSE | ||
| "/etc/pki/tls/cacert.pem", // OpenELEC (a media center Linux distro) | ||
| "/etc/ssl/cert.pem", // Alpine Linux | ||
| "/etc/ssl/certs/ca-bundle.crt", // Nix's pkgs.cacert |
There was a problem hiding this comment.
We do have /etc/ssl/certs in CERTIFICATE_DIRS on Linux. rustls-native-certs loads PEM certs from any files found in any of these directories. Is there a reason why native-tls does not do that?
|
I guess, reading between the lines, that Go also does not work in your environment? Please also review/explain these commits: |
|
Thank you both for the comments. To be clear, this is a real regression, not a hypothetical one: I bisected it first to the version bump from 0.1.6 to 0.2.1, and then to a0ae1a2. I do have workarounds here, like setting The nixpkgs commits seem to be NixOS standardizing on I don't run Go in this environment, so I can't say from direct experience whether Go is affected. My guess is that yes, it's also broken. If you don't want to accept this change, that's fine; I just wanted to prevent more people from being broken and having to go through the same investigation I did. |
Curious about your answer to my earlier question in an inline comment:
|
Of course we would also like to prevent more people from being broken, but it's also good to make sure we don't jsut add a bunch of paths because people randomly ask us to -- we think the software stack will be better off if things get fixed at the right level. |
So my confusion here is why I also found NixOS/nixpkgs#8247 and specifically NixOS/nixpkgs#8247 (comment) which doesn't seem to match reality. (Not a nix user, so appreciate your patience in explaining basic concepts to me!) |
Fixes #48
This is probably not just used by Nix's cacerts package, but also other distros. My LLM of choice tells me OpenWRT also uses this path.