I'm using libcurl libraries to call a rest endpoint and it fails on pulling the self signed cert with the error: schannel: Failed to import cert file sit.cer, last error is 0x80092002.
I'm not really that well versed on c++
curl_easy_setopt(curl, CURLOPT_CAINFO, "cacert.pem");
curl_easy_setopt(curl, CURLOPT_SSLCERT, "sit.crt");
curl_easy_setopt(curl, CURLOPT_SSLKEY, "sit.key");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
I am really stuck on this, please help.
The error means that the option CURLOPT_SSLCERT can not handle the given certificate (type): For schannel you should provide certificates as described here: https://curl.se/libcurl/c/CURLOPT_SSLCERT.html
User contributions licensed under CC BY-SA 3.0