note 114958 added to function.curl-setopt

From: Date: Mon, 05 May 2014 15:52:58 +0000
Subject: note 114958 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-199421@lists.php.net to get a copy of this message
If you get an error with the error code 35 saying "Unknown SSL protocol error in connection to ...", maybe you are using the wrongs ciphers. Try to precise a bunch of ciphers as below: $arrayCiphers = array( 'DHE-RSA-AES256-SHA', 'DHE-DSS-AES256-SHA', 'AES256-SHA:KRB5-DES-CBC3-MD5', 'KRB5-DES-CBC3-SHA', 'EDH-RSA-DES-CBC3-SHA', 'EDH-DSS-DES-CBC3-SHA', 'DES-CBC3-SHA:DES-CBC3-MD5', 'DHE-RSA-AES128-SHA', 'DHE-DSS-AES128-SHA', 'AES128-SHA:RC2-CBC-MD5', 'KRB5-RC4-MD5:KRB5-RC4-SHA', 'RC4-SHA:RC4-MD5:RC4-MD5', 'KRB5-DES-CBC-MD5', 'KRB5-DES-CBC-SHA', 'EDH-RSA-DES-CBC-SHA', 'EDH-DSS-DES-CBC-SHA:DES-CBC-SHA', 'DES-CBC-MD5:EXP-KRB5-RC2-CBC-MD5', 'EXP-KRB5-DES-CBC-MD5', 'EXP-KRB5-RC2-CBC-SHA', 'EXP-KRB5-DES-CBC-SHA', 'EXP-EDH-RSA-DES-CBC-SHA', 'EXP-EDH-DSS-DES-CBC-SHA', 'EXP-DES-CBC-SHA', 'EXP-RC2-CBC-MD5', 'EXP-RC2-CBC-MD5', 'EXP-KRB5-RC4-MD5', 'EXP-KRB5-RC4-SHA', 'EXP-RC4-MD5:EXP-RC4-MD5' ); curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, implode(':', $arrayCiphers)); Worked for me, could work for you! P.S: Used with PHP 5.4 and cURL 7.26.0. ---- Server IP: 195.221.21.36 Probable Submitter: 2a01:e35:2e05:3210:5404:a6ff:fe80:2217 ---- Manual Page -- http://php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/114958 Del: integrated -- https://master.php.net/note/delete/114958/integrated Del: useless -- https://master.php.net/note/delete/114958/useless Del: bad code -- https://master.php.net/note/delete/114958/bad+code Del: spam -- https://master.php.net/note/delete/114958/spam Del: non-english -- https://master.php.net/note/delete/114958/non-english Del: in docs -- https://master.php.net/note/delete/114958/in+docs Del: other reasons-- https://master.php.net/note/delete/114958 Reject -- https://master.php.net/note/reject/114958 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199421) next »