[thelist] Help with 'secure' site, pls

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Fri May 14 12:09:07 CDT 2004


(Thought I sent this The List, but I guess it went to Walter only, so I am
resending this publicly)--M

-----------------------------
I'm doing...
<various setup code>
   $response = @curl_exec( $ch ); // response is a string
   echo curl_error ( $ch );
   curl_close( $ch );
   echo $response;
Error message is produced by curl_error ( $ch )
> Do you get any CA errors when logging in directly via
> your own browser?
Nope
-----------------------------

Did a google search[1] and came up with a pretty good article on this
topic[2].  It appears that this is a question of the CA file for CURL.  If
you cannot update the CA file, and since you're sure that the cert is OK for
the URL you're trying to access you might use
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );

[1]
http://www.google.com/search?q=curl+%22SSL+certificate+problem%2C+verify+tha
t+the+CA+cert+is+OK%22
[2] http://www.phpdiscuss.com/article.php?id=1347&group=php.soap

HTH!

Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
www.NeptuneWebworks.com
voice: 541-302-1438
fax: 208-730-6504




More information about the thelist mailing list