-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nc
doesnt' find system certificate store anymore
#68286
Comments
I ran a bisect and it seems like dc19376 broke it. I tested it with libressl_2_8 and libressl_3_0 additionally and those seems to be fine.
Edit: dropped patch, to reduce confusion, as it didn't do nothing. |
That patch does nothing for me. |
@andir: you're right, that doesn't fix it. Must have accidentally invoked some non broken version. I'll give it another look, out of curiosity. |
So, having given it a closer look again -
Now, in |
So, a rather quick and dirty patch that seems to work is:
That of course is not overly clean and due to the structure of the file, one would have to make sure that it only applies to known versions instead of just the generic derivation. |
nc
doesnt' find system certtificate store anymorenc
doesnt' find system certificate store anymore
@d-goldin That doesn't sound too bad. Do you mind opening a PR for that? You can use |
@andir: Will do a bit later. Have you had a chance to test this one? Just to make sure. |
There is another PR for this too: #68456 |
This addresses NixOS#68286 When `-R` (CA file location) is not specified, nc tries to fall back to a default location. In 2.8 this was still configurable at compile time, but was changed somewhere after. This replaces `/etc/ssl/cert.pem` with `${cacert}/etc/ssl/cert.pem` in the code directly. For a discussion of this, see NixOS#68456
@andir: The issue should be fixed now on master and release-19.09. |
Confirmed. Fixed on master 👍 Thank you for your working on this! |
Describe the bug
The
nc
attribute (provided by LibreSSL) is no longer able to find the system certificates on NixOS. It seems like with the change to the CMake build system / with the switch to libressl 2.9 the feature broke.To Reproduce
Steps to reproduce the behavior:
nix-shell --pure -p nc
with a current master / recent unstable channel.nc -cvz google.com 443
nc: failed to open CA file '/etc/ssl/cert.pem': No such file or directory
Expected behavior
nc
should have been able to connect to find the local system certificates and connect successfully.Metadata
"x86_64-linux"
Linux 5.2.11, NixOS, 19.09.git.920dd87 (Loris)
yes
yes
nix-env (Nix) 2.3pre6895_84de821
"nixos-19.09pre190978.8d1510abfb5"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
cc libressl maintainers @fpletz @thoughtpolice
The text was updated successfully, but these errors were encountered: