Skip to content

Commit

Permalink
curl: display proper error message when encountering not trusted cert…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
SuperSandro2000 committed Oct 28, 2024
1 parent d3fbd1b commit 1cdc478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/tools/networking/curl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,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) [
"--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt"
] ++ lib.optionals (gnutlsSupport && !stdenv.hostPlatform.isDarwin) [
"--with-ca-path=/etc/ssl/certs"
Expand Down

0 comments on commit 1cdc478

Please sign in to comment.