title: SSL Connect Error in Curl and Php 5.3.3
body: <p>My site worked perfectly since 3 years, with below code, now suddenly since 2 days it started giving below error :</p>
  
  <p>SSL Connect error :- in Curl_error</p>
  
  <p>Below is my code :</p>
  
  <pre><code>&lt;?php
  $this-&gt;ssl_cert = "path_to_my_cert.pem";
  $session = curl_init($this-&gt;server_url);
  curl_setopt($session, CURLOPT_HTTPHEADER, $this-&gt;request_header);
  curl_setopt($session, CURLOPT_HEADER, true);
  curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($session, CURLOPT_TIMEOUT, 300);
  curl_setopt ($session, CURLOPT_SSL_VERIFYHOST, 0);
  curl_setopt ($session, CURLOPT_SSL_VERIFYPEER, 0);
  curl_setopt($session, CURLOPT_SSL_CIPHER_LIST, rsa_rc4_128_sha);
  curl_setopt($session, CURLOPT_SSL_VERIFYPEER, TRUE);
  curl_setopt($session, CURLOPT_CAINFO, $this-&gt;ssl_cert);
  $response = curl_exec($session);
  
  if (curl_errno($session)) {
      $curl_err = curl_error($session);
      return array("CURL_ERR", $curl_err);
  } else {
      curl_close($session);
  }
  ?&gt;
  </code></pre>
  
  <p>I have 5 different api's working using the above same code and every thing worked perfectly since 3 years. Suddenly one of my api has started giving the error : SSL Connect error.</p>
  
  <p>After few search on net, if found of few of the solutions and tried adding below code to but all in vein :</p>
  
  <pre><code>curl_setopt($session, CURLOPT_SSLVERSION, 3);
  </code></pre>
  
  <p>My PHP Version : 5.3.3
  cURL Information : 7.9.17</p>