Skip to content

Commit

Permalink
Downloader: Warn if no trusted CA file has been configured
Browse files Browse the repository at this point in the history
  • Loading branch information
xbreak committed Oct 18, 2019
1 parent 906d56a commit 7c568d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstore/download.cc
Expand Up @@ -285,6 +285,7 @@ struct CurlDownloader : public Downloader
}

if (request.verifyTLS) {
debug("verify TLS: Nix CA file = '%s'", settings.caFile);
if (settings.caFile != "")
curl_easy_setopt(req, CURLOPT_CAINFO, settings.caFile.c_str());
} else {
Expand Down

1 comment on commit 7c568d4

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.