cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Solution to CURLE_SSL_CACERT error

From: Guenter <lists_at_gknw.net>
Date: Sat, 16 Oct 2010 05:53:31 +0200

Hi Suhas,
Am 15.10.2010 19:53, schrieb Daniel Stenberg:
>> 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.
if you compile libcurl self either define CURL_CA_BUNDLE to a path of
your choice, or alternately define CURL_WANTS_CA_BUNDLE_ENV which makes
setup.h use:
#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
so that you can control the location with setting an environment var.
My MingW32 binaries are compiled with this option so that you only need
to point to your curl-ca-bundle.crt.
And BTW maybe you even have only a typo since you posted that you use:
> curl_easy_setopt(m_hcURL, CURLOPT_ISSUERCERT,"curl-ca-bundle.cer"));
but all our tools generate by default a file with .crt extension, and
not .cer ...

Gün.

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