cURL / Mailing Lists / curl-library / Single Mail


Re: Hardwiring the CA cert bundle

From: Guenter <>
Date: Mon, 04 Mar 2013 02:54:17 +0100

Hi Katie,
Am 03.03.2013 22:10, schrieb Katie Scott:
> I can now compile the program so that it posts and xml file and receives
> the pdf as a response from the server - using https.
> To get it to work I built libcurl with static support for SSL (and SSH)
If you *only* need https you also only need SSL support and not SSH.

> and added a #define that points to the cert bundle in the compilation of
> libcurl with:
> #define CURL_CA_BUNDLE "C:\\Projects\\curl_certs"
> That last bit is to work around a 'bug' in the Windows implementation of
> curl_easy_setopt(CURLOPT_CAPATH, ...
> That is - when I defined the fully qualified filename to the ca-bundle
> in the static library - it worked.
> I am relieved but still puzzled as to why that should be a Windows issue.
> Thanks again for the clues.
have you tried to use forward slashes with the ca-path? F.e.:
curl_easy_setopt(CURLOPT_CAPATH, "c:/Projects/curl_certs")
AFAICT the Windows file open APIs work also with forward slashes, and
that saves you from escaping the backslashes ...


List admin:
Received on 2013-03-04