cURL / Mailing Lists / curl-library / Single Mail

curl-library

Solution to CURLE_SSL_CACERT error

From: Suhas Nayak <suhasn_at_slingmedia.com>
Date: Fri, 15 Oct 2010 02:29:37 -0700

Hi,
            I am looking for solution to add SSL certificate check on windows. Please find the code snippet for the same.

curl_easy_setopt(m_hcURL, CURLOPT_SSL_VERIFYPEER, 1));
curl_easy_setopt(m_hcURL, CURLOPT_ISSUERCERT,"curl-ca-bundle.cer"));

            I have kept the file under C:\windows\system32 ( as per the suggestion from one of the member of mailing list). When I try to connect to secured server through https, CURL is throwing, CURLE_SSL_CACERT error. Can anyone help me to over come this issue. I don't want to skip this check by setting CURLOPT_SSL_VERIFYPEER to 0.

Best Regards,
Suhas

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-15