curl-and-php
Re: SSL problem connecting to https
Date: Fri, 15 Aug 2003 08:40:04 +0200 (CEST)
On Thu, 14 Aug 2003, Felix Rabinovich wrote:
> I tried to connect to https sites (3 sites, actually) through libcurl-php
> and I am getting error message
>
> "SSL certificate problem, verify that the CA cert is OK".
>
> I am using libcurl/7.10.5 OpenSSL/0.9.7b. Apache 2.0 and PHP 4.3.2. Curl
> (from the command line) works fine - I can get data from the same sites with
> no problem; and I can get data from http sites with no problem at all.
I assume you use -k then?
> I tried different permutations of x and y (true, false) in
>
> curl_setopt ($ch, CURL_SSL_VERIFYPEER, x);
> curl_setopt ($ch, CURL_SSL_VERIFYHOST, y);
The command line tool's -k option sets these options:
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
http://curl.haxx.se/docs/sslcerts.html
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-08-15