Thanks for your kind response. So i need to concatenate all CA files (PEM) in a single file and give that as an input for CURLOPT_CAINFO. Is it so ? Is there any other way of specifying as separate files ?
On Wed, Apr 28, 2010 at 5:13 PM, Kamil Dudka <[email protected]> wrote: > 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
