bsbontchev
The CURL --insecure option sets the following CURL flags: ```c /* libcurl default is strict verifyhost -> 1L, verifypeer -> 1L */ if(config->insecure_ok) { my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); } ``` while the libvault sets only one of them: ```cpp if (config_.getVerify()) { if (!config_.getCaBundle().empty()) { curlWrapper.setOption(CURLOPT_CAINFO, config_.getCaBundle().u8string().c_str()); } curlWrapper.setOption(CURLOPT_SSL_VERIFYPEER, 1); } else { curlWrapper.setOption(CURLOPT_SSL_VERIFYPEER, 0); } ```