title: PHP 35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
body: <p>cURL stopped working. I started to get this error (it used work fine till few hours ago).</p>
  
  <p>I am using cURL extension for PHP. I found some solution for curl command line, but unfortunately i do not understand them :/ and I do not know how to move them to PHP cURl flags.</p>
  
  <p>cURL conf:</p>
  
  <pre><code>$curl=curl_init();
  curl_setopt($curl, CURLOPT_URL, "https://pln.bitcurex.com/data/ticker.json");
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($curl, CURLOPT_SSLVERSION, 3);
  curl_setopt($curl, CURLOPT_TIMEOUT, 10);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($curl, CURLOPT_USERAGENT, $this-&gt;useragent);
  curl_setopt($curl, CURLOPT_VERBOSE, 0);
  curl_setopt($curl, CURLOPT_HEADER, FALSE);
  curl_setopt($curl, CURLOPT_HTTPHEADER, $this-&gt;headers);
  
  if(substr($url, 0, 5)=='https') curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
  
  if($this-&gt;ciastko)
  {
      curl_setopt($curl, CURLOPT_COOKIEJAR, $this-&gt;ciastko);
      curl_setopt($curl, CURLOPT_COOKIEFILE, $this-&gt;ciastko);
  }
  
  if($this-&gt;post)
  {
      if( is_array($this-&gt;post) &amp;&amp; count($this-&gt;post) &gt; 0 )
      {
          $postdata = http_build_query($this-&gt;post,'','&amp;');
      }
      elseif( is_string($this-&gt;post) )
      {
          $postdata = $this-&gt;post;
      }
      else $postdata = '';
  
      curl_setopt($curl, CURLOPT_POST, 1);
      curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);
  }
  
  $wynik=curl_exec($curl);
  </code></pre>
  
  <p>error:</p>
  
  <p>35: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure</p>
  
  <p>any ideas how to fix this?</p>