cURL / Mailing Lists / curl-library / Single Mail


using both a Private trusted CA and ca-bundle.crt, possible?

From: Derek Ealy <>
Date: Mon, 27 Jan 2003 16:52:39 -0800

Using libcurl 7.10 on Windows I've figured out how to have libcurl use
either the ca-bundle.crt for referencing sites with a cert from one of the
common CAs, or I can specify the root cert from our own internal CA. The
question I have is how to do both?

I would like my application to be able to reference both cert files (mine is
a PEM generated by openssl) when trying to validate the certs that a web
server presents.

Currently I'm using code that looks like this:

curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 1);

if (m_strCAPath.length() > 0)
  curl_easy_setopt(curl_handle, CURLOPT_CAINFO, m_strCAPath.c_str());

curl_easy_setopt(curl_handle, CURLOPT_CAPATH, "c:\\downloads\\curl\\lib");

The new MSN 8: smart spam protection and 2 months FREE*

This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
Received on 2003-01-28