PHP, Windows and SSL

Julian Bond julian_bond at voidstar.com
Fri Feb 8 05:31:51 PST 2008


I've spent the morning converting my OpenID-Consumer 1.0 code to 2.0.
I've been hitting problems with providers that use SSL. I've now got to
the point where authenticating against my myopenid.com ID is working. I
then switched to the https://  version at myopenid and started getting
errors. After a bit of digging, I ended up patching temporarily
ParanoidHTTPFetcher.php to include the line

 curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);

around line 100

This lets me get to the point where the provider approval page is shown.
This seems to be a problem with php, curl, openssl and the local CA Cert
bundle on Windows that I haven't fully sorted yet.

However, after returning, I get the error message
 OpenID authentication failed: Server denied check_authentication
>From $response->message even though doing the exact same thing to the
http:// version of the Provider works fine. Any ideas on how to debug
this?

Windows XP
Apache 2.2
PHP 5.2.5
php-openid-2.0.0

-- 
Julian Bond  E&MSN: julian_bond at voidstar.com  M: +44 (0)77 5907 2173
Webmaster:          http://www.ecademy.com/      T: +44 (0)192 0412 433
Personal WebLog:    http://www.voidstar.com/     skype:julian.bond?chat
                      Certain Limitations Apply



More information about the Dev mailing list