cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Re: HTTPS + Certificate (Valter Santos - Webmaster)

From: Frédéric Dufour <fdufour_at_logfi.fr>
Date: Wed, 24 Sep 2003 13:58:04 +0200

Hello Valter,

My comment into your mail... thank you for your help...

regards,

--
Frédéric
----- Original Message ----- 
> From: "Valter Santos - Webmaster" <webmaster_at_vnsantos.com>
> To: <curl-and-php_at_lists.sourceforge.net>
> Subject: Re: HTTPS + Certificate
> Date: Tue, 23 Sep 2003 17:54:49 +0100
> Reply-To: curl-and-php_at_lists.sourceforge.net
>
> See in the phpinfo() if there are two lines that say:
>
>       CURL support  enabled
>       CURL Information  libcurl/7.10.4 zlib/1.1.4 (at list this version)
>
>
> If not, your server doesn't configured to run CURL function width SSL.
>
my configuration :
      CURL support  enabled
      CURL Information  libcurl/7.10.5 OpenSSL/0.9.7b zlib/1.1.4
> Another thing:
> try this similar code just for testing the comunication:
>
>   curl_setopt ($ch, CURLOPT_URL, $url_address);
>   curl_setopt ($ch, CURLOPT_POST, 1);
>   curl_setopt ($ch, CURLOPT_POSTFIELDS, $request);
>   curl_setopt ($ch, CURLOPT_POSTFIELDSIZE, 1);
>   curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
>   curl_setopt ($ch, CURLOPT_HEADER, 0);
>   curl_setopt ($ch, CURLOPT_SSLVERSION, 3);
>   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
>   curl_setopt ($ch, CURLOPT_SSLCERT, $cert);
>   curl_setopt ($ch, SSLCERTPASSWD, $pwd);
>
> // $request is the information  you are send to be returned
> // $cert - path and filename of certificate
>
When i execute this code, i have the same message :
cURL error number:58
cURL error:unable to set certificate file (wrong password?)
:-(
> How do you have converted your SSL certificate to pem format? This is
> important!
> see: http://www.pubcookie.org/docs/install-filter-3.0.html
>
All certificates seem correct. When i try :
curl --cacert CAROOT.pem --cert MYCERT.pem --key MYKEY.pem
https://thewebsite/
the result is good...
> Regards,
> Valter Santos
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-24