cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

curl_setopt($ch, CURLOPT_SSLCERT, $sslcertpath);

From: Josh McKenney <joshm_at_stateoforegon.com>
Date: Thu, 10 Nov 2005 07:46:50 -0800

I'm having an issue where curl and php are playing friendly UNTIL I try to
curl_setopt a CURLOPT_SSLCERT. We've tried everything from upgrading curl
and php to hacking the curl install. I know for absolute sure that the cert
file is in the right place and in the right format as I have tried on
another server and it worked.

Here is the specific error I am getting from the following code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://api.sandbox.paypal.com/2.0/");
curl_setopt($ch, CURLOPT_SSLCERT, $sslcertpath);
curl_setopt($ch, CURLOPT_POSTFIELDS, $SOAPrequest);

curl_exec ($ch);
if (curl_error($ch))
   printf("Error %s: %s", curl_errno($ch), curl_error($ch));
curl_close ($ch);

PRODUCES:
Error 58: unable to use client certificate (no key found or wrong pass
phrase?)

If I take out the CURLOPT_SSLCERT param, the error turns into:
Error 35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake
failure

Any help would be greatly appreciated! HELP!

Josh

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-10

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET