Bug #66958 [NEW]: CURL-SSL Regression, not detecting Cypher or Http Version
From: pablius5k at gmail dot com
Operating system: Windows
PHP version: 5.5.10
Package: cURL related
Bug Type: Bug
Bug description:CURL-SSL Regression, not detecting Cypher or Http Version
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 bug report at https://bugs.php.net/bug.php?id=66958&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66958&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66958&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66958&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66958&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66958&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66958&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66958&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66958&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66958&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66958&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66958&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66958&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66958&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66958&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66958&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66958&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66958&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66958&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66958&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66958&r=mysqlcfg
Thread (2 messages)
- pablius5k at gmail dot com