Skip to content

Commit

Permalink
Merge pull request #1247 from veprbl/ssl_fix2
Browse files Browse the repository at this point in the history
use --cacert instead of --capath
  • Loading branch information
edolstra authored Feb 22, 2017
2 parents 2936a8d + 06b46f6 commit 697b575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/Nix/Config.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $caBundle = $ENV{"NIX_SSL_CERT_FILE"} // $ENV{"SSL_CERT_FILE"} // $ENV{"CURL_CA_
$caBundle = "/etc/ssl/certs/ca-bundle.crt" if !$caBundle && -f "/etc/ssl/certs/ca-bundle.crt";
$caBundle = "/etc/ssl/certs/ca-certificates.crt" if !$caBundle && -f "/etc/ssl/certs/ca-certificates.crt";

$curlCaFlag = defined $caBundle ? "--capath $caBundle" : "";
$curlCaFlag = defined $caBundle ? "--cacert $caBundle" : "";

$bzip2 = "@bzip2@";
$xz = "@xz@";
Expand Down

0 comments on commit 697b575

Please sign in to comment.