Bug #66958 [Opn->Nab]: CURL-SSL Regression, not detecting Cypher or Http Version

From: Date: Thu, 10 Apr 2014 20:22:31 +0000
Subject: Bug #66958 [Opn->Nab]: CURL-SSL Regression, not detecting Cypher or Http Version
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185171@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66958&edit=1 ID: 66958 Updated by: ab@php.net Reported by: pablius5k at gmail dot com Summary: CURL-SSL Regression, not detecting Cypher or Http Version -Status: Open +Status: Not a bug Type: Bug Package: cURL related Operating System: Windows PHP Version: 5.5.10 Block user comment: N Private report: N New Comment: 5.3.28 uses libcurl 7.30.0, versions prior to 5.4.27 use libcurl 7.30.0 or (some later) with 7.35.0. 5.4.27 has libcurl 5.36.0, as well as the latest 5.5. Any version I named show the same error you've posted. That means to me - either it is really some hard libcurl issue (which i really doubt taking in account the version range), or it is the website which has changed it's cyphers list to face the NSA threats :) Thanks Previous Comments: ------------------------------------------------------------------------ [2014-03-26 10:45:39] pablius5k at gmail dot com Description: ------------ Using PHP 5.5.10TS/Windows+Apache After upgrading from 5.3.x, CURL is unable to connect to some SSL sites. It returns: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure Adding the following parameters solves the issue: curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'RC4-SHA'); This was not needed on previous versions, and curl should detect it on it's own as they are standard. Test script: --------------- $url = 'www.miki.co.uk'; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_ENCODING, "gzip"); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); //curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'RC4-SHA'); //curl_setopt($ch, CURLOPT_URL, $url ); $output = curl_exec($ch); Expected result: ---------------- Expected result: successful connection. Uncommenting the mentioned lines solves the problem. Actual result: -------------- error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66958&edit=1

« previous php.bugs (#185171) next »