cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSLCERT and CAINFO

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 19 Jan 2007 22:13:48 +0100 (CET)

On Fri, 19 Jan 2007, Wei Weng wrote:

> This is the description of CURLOPT_CAINFO option from the webpage.
>
> Pass a char * to a zero terminated string naming a file holding one or
> more certificates to verify the peer with.
>
> This is the description of CURLOPT_SSLCERT option from the webpage:
>
> Pass a pointer to a zero terminated string as parameter. The string should
> be the file name of your certificate.
>
> Aren't these two options redundant with each other?

Nope. CURLOPT_CAINFO is a for a ca cert bundle to verify the peer.

CURLOPT_SSLCERT is for a client certificate that the peer can or will use to
verify you.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-19