|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-11 13:35 UTC] jani@php.net
[2009-09-19 01:00 UTC] php-bugs at lists dot php dot net
[2009-10-03 22:53 UTC] lr at pcorp dot us
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 13:00:01 2025 UTC |
Description: ------------ We recently upgraded our windows php from 5.2.6 to 5.2.10 (using binaries provided on php website) and since then one of our apps that uses a CURL SSL connection has stopped working. Curl throws an error error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure Reproduce code: --------------- The code we had in prior versions of PHP that worked fine were curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch,CURLOPT_SSLVERSION,3); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_URL, $somehttpsurlhere); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $t = curl_exec($ch); if (curl_errno($ch)){ print curl_error($ch); } Expected result: ---------------- Before this used to work and $t would have content of ssl page. Unfortunately can't devulge the exact ssl sites since they are private client ones. 2 that we have tried don't work. One uses an SSL cert issues by Comodo EV SGC CA The other uses one issued by Thawte Premium Server CA (is a wildcard one). Both certs register as fine in IE and Firefox. Actual result: -------------- Now gives error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure This might be just a change in how to deal with SSL connections, but couldn't find any documentation about curl or PHP website that was helpful in this regard.