Skip to main content

cPanel / CentOS update break SOAP SSL

Comments

4 comments

  • tizoo
    Hi all, Some new information about this issue. Trying to access the service with wget give interesting information (I only thought about that now...) : # wget https://zimbra.tizoo.net:7071/service/admin/soap/ --2013-12-03 17:10:38-- https://zimbra.tizoo.net:7071/service/admin/soap/ R"solution de zimbra.tizoo.net... 212.147.77.199 Connexion vers zimbra.tizoo.net|212.147.77.199|:7071...connect". OpenSSL: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group OpenSSL: error:1408D010:SSL routines:SSL3_GET_KEY_EXCHANGE:EC lib
    Which seems to be due to a too quick implementation from RedHat of the ECDHE/ECDSA algorithm. We will try to donwgrade openssl package to see if this fix the problem and give feedback here. Cheers, Philippe
    0
  • cPanelMichael
    Hello :) It's possible this is related to the following bug with OpenSSL:
    0
  • tizoo
    Hi Michael, Yes, it's exactly the problem. We fixed it before CentOS released the fix, but it's no more needed now as the CentOS fix, fixed it. I give the solution if this could be useful for someone else in another situation. The solution was to avoid using ECDH* ciphers and define which cipher to use for the SOAP request. Which is done with the following code : $sslOptions = array('ssl' => array ('ciphers' => 'RC4-SHA')); $sc = new SoapClient(null, array( 'location' => 'https://zimbra.tizoo.net:7071/service/admin/soap/', 'uri' => 'urn:zimbraAdmin', 'stream_context' => stream_context_create($sslOptions), 'trace' => 1, 'exceptions' => 1, 'soap_version' => SOAP_1_2, 'style' => SOAP_RPC, 'use' => SOAP_LITERAL ) );
    To detect what goes wrong and what goes well, we used openssl this way : # openssl s_client -connect zimbra.tizoo.net:7071 => Problem :( # openssl s_client -connect zimbra.tizoo.net:7071 -cipher RC4-SHA => OK :)
    Hope this will be useful. Cheers, Philippe
    0
  • laxbobber
    Philippe, Thank you for your post. It helped me solve a related problem today! Bob
    0

Please sign in to leave a comment.