curl-and-php
cURL ERROR: 60: SSL certificate problem
Date: Fri, 26 Dec 2003 06:34:09 +0000
we are using cURL in PHP script (nuSoap), i had encountered this while
running the script which accesses a secured https site
the browser displays:
soapclient: Error: HTTP Error: cURL ERROR: 60: SSL certificate problem,
verify that the CA cert is OK
i had tried out the curl.exe -k / --insecure and the below script, but upon
the page still displays the same error:
<?php
$ch = curl_init();
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
ob_start();
curl_exec ($ch);
ob_end_flush();
if (curl_error($ch))
printf("Error %s: %s", curl_errno($ch), curl_error($ch));
curl_close ($ch);
?>
currently, we are using libcurl/7.10.7 OpenSSL/0.9.6b zlib/1.1.3. Hoping
for your prompt response.
- Alexander
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-26