Skip to content

Commit

Permalink
Fix CURL cert file path override for REST (#1452)
Browse files Browse the repository at this point in the history
GlobalState::cert_file is a single-file cert store, which corresponds
to CURLOPT_CAINFO. CURLOPT_CAPATH expects a directory.
  • Loading branch information
ihnorton authored Dec 6, 2019
1 parent c9774ab commit 452e08b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiledb/sm/rest/curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ Status Curl::init(
// if detected
const std::string cert_file =
global_state::GlobalState::GetGlobalState().cert_file();
// If we have detected a ca cert bundle let's set the curl option for CAPATH
// If we have detected a ca cert bundle let's set the curl option for CAINFO
if (!cert_file.empty()) {
curl_easy_setopt(curl_.get(), CURLOPT_CAPATH, cert_file.c_str());
curl_easy_setopt(curl_.get(), CURLOPT_CAINFO, cert_file.c_str());
}
#endif

Expand Down

0 comments on commit 452e08b

Please sign in to comment.