cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Solution to CURLE_SSL_CACERT error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Oct 2010 19:53:30 +0200 (CEST)

On Fri, 15 Oct 2010, Suhas Nayak wrote:

> 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"));

You typically want CURLOPT_CAINFO.

> I have kept the file under C:\windows\system32 ( as per the suggestion from
> one of the member of mailing list).

That's a silly suggestion and nothing we recommend.

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