title: CURLOPT_SSL_VERIFYPEER not working in PHP even with setting CURLOPT_CAINFO
body: <p>I am trying to enable <code>CURLOPT_SSL_VERIFYPEER</code> in PHP, but when I call <code>curl_exec()</code> it is returning <code>false</code> with no other error message or indication of why its breaking. Here is what I have:</p>
  
  <pre><code>$curl_object = curl_init();
  curl_setopt($curl_object, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl_object, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($curl_object, CURLOPT_CAINFO, "/srv/assets/ssl/ca-bundle.pem");
  curl_setopt($curl_object, CURLOPT_SSL_VERIFYPEER, true);
  
  curl_setopt($curl_object, CURLOPT_URL, $url);
  $response = curl_exec($curl_object);
  </code></pre>
  
  <p>As soon as I set <code>CURLOPT_SSL_VERIFYPEER</code> to <code>false</code> it works. The <code>CURLOPT_CAINFO</code> file is th offical ca-cert.pem from <a href="http://curl.haxx.se/docs/caextract.html" rel="nofollow">http://curl.haxx.se/docs/caextract.html</a>.</p>
  
  <p>Any ideas?</p>