cURL / Mailing Lists / curl-library / Single Mail


Re: ssl options question

From: Daniel Stenberg <>
Date: Thu, 2 Apr 2009 14:59:30 +0200 (CEST)

On Wed, 1 Apr 2009, Tiberiu Motoc wrote:

> How many ways are there to set ssl options? In the examples that I
> successfully ran, it was enough to provide the CA certificate (and that is
> all): curl_easy_setopt(curl,CURLOPT_CAINFO,"/home/..."). Why is the
> simplessl example setting CURLOPT_SSLCERTTYPE and CURLOPT_SSLKEYTYPE? Is
> this a different way of setting up an ssl connection - by using the SSL
> certificate of the site and the key of the SSL certificate?

You need to keep an eye on the details. There's a difference between a cacert
bundle to verify the peer certificate, and a client certificate.

> Is there a browser (let's say Firefox) equivalent action for setting up

I don't know what format of client certificates Firefox supports.

Received on 2009-04-02