cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ignore bad certificate as in Firefox/Mozilla ?

From: Claes Jakobsson <claes_at_versed.se>
Date: Sun, 24 Jan 2010 10:03:44 +0100

On 24 jan 2010, at 08.15, Cláudio Sampaio wrote:
> Hi,
>
> I have a program using libcurl that gets the following error when it tries to connect to an intranet site:
> "Peer certificate cannot be authenticated with known CA certificates (60)"
>
> I tried but couldn't find a flag that could tell it to ignore the bad certificate, as I can do with Firefox/Mozilla.
>
> Is there such a flag?

see the option CURLOPT_SSL_VERIFYPEER at http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

I belive that is what you're after.

Cheers,

Claes
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-24