-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
curl: display proper error message when encountering not trusted certificate #351920
curl: display proper error message when encountering not trusted certificate #351920
Conversation
1cdc478
to
c795a7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, that's absolutely haunted. thanks for finding it.
…ificate Right now the error message would be: curl: (35) OpenSSL/3.3.2: error:80000002:system library::No such file or directory Before it was: curl: (35) OpenSSL/3.0.8: error:16000069:STORE routines::unregistered scheme see curl/curl#10702
c795a7e
to
ffbd9a7
Compare
@@ -163,7 +163,7 @@ stdenv.mkDerivation (finalAttrs: { | |||
"--without-ca-path" | |||
] ++ lib.optionals (!gnutlsSupport && !opensslSupport && !wolfsslSupport && !rustlsSupport) [ | |||
"--without-ssl" | |||
] ++ lib.optionals (rustlsSupport && !stdenv.hostPlatform.isDarwin) [ | |||
] ++ lib.optionals ((opensslSupport || rustlsSupport) && !stdenv.hostPlatform.isDarwin) [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may still not fix the problem on Darwin; unsure the lineage of this code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't test darwin at the moment.
I just retested this locally and at least for me this issue is now fixed. I am not sure why which change exactly fixed it though. |
Right now the error message would be:
curl: (35) OpenSSL/3.3.2: error:80000002:system library::No such file or directory
Before it was:
curl: (35) OpenSSL/3.0.8: error:16000069:STORE routines::unregistered scheme
see curl/curl#10702
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.