cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: support to load a chain of ca certs

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 28 Apr 2010 13:43:24 +0200

On Wed April 28 2010 13:23:33 xxx xxx wrote:
> Hi,
> Does libcurl supports to load a chain of CA certificates for verification
> ? I could see only CURLOPT_CAPATH, Not sure if this is what i require. I
> have a chain of CA's like RootCA<-->Intermediate CA1<-->Intermediate
> CA2<-->Server Certificate.
> Now to verify peer, how can i load all the rootca, intermediate ca's.

I guess you're looking for CURLOPT_CAINFO:

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCAINFO

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