cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLOPT_SSL_VERIFYPEER issue

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 11 Sep 2008 23:17:09 -0700

On Thu, Sep 11, 2008 at 02:11:28PM -0500, Ryan Graciano wrote:
> I'm using cURL with PHP, and I'm trying to connect to a remote server
> via HTTPS with a certificate that was provided to me. This has worked
> in the past, but recently it stopped working and I'm seeing this error
> from curl_error 0
>
> error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
>
> I'm actually connecting to a test server, so it's expected that the CA
> will be unknown, as it's essentially made up. I would like cURL to
> stop caring about the unknown CA altogether, so I'm setting
> CURLOPT_SSL_VERIFYPEER to 0. That doesn't seem to be doing anything,
> though. Shouldn't setting that to 0 solve my problem? Maybe I'm
> missing something really obvious here. Here's the code that I'm using
> to debug the issue -

Those options are all you should need with libcurl, but it sounds like
you're actually using the PHP/CURL binding. This isn't the right forum for
PHP questions.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-09-12