title: PHP CURL CURLOPT_SSL_VERIFYPEER ignored
body: <p>For some reason I am unable to use CURL with HTTPS. Everything was working fine untill I ran upgrade of curl libraries. Now I am experiencing this response when trying to perform CURL requests:  <strong>Problem with the SSL CA cert (path? access rights?)</strong></p>
  
  <p>Following suggestions posted here on related issues I have tried to do the following:</p>
  
  <ul>
  <li><p>Disable verification for host and peer</p>
  
  <pre><code>curl_setopt($cHandler, CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($cHandler, CURLOPT_SSL_VERIFYPEER, true);
  </code></pre></li>
  <li><p>Enable <code>CURLOPT_SSL_VERIFYPEER</code> and point to cacert.pem downloaded from <a href="http://curl.haxx.se/docs/caextract.html" rel="noreferrer">http://curl.haxx.se/docs/caextract.html</a></p>
  
  <pre><code>curl_setopt($cHandler, CURLOPT_SSL_VERIFYPEER, true);  
  curl_setopt($cHandler, CURLOPT_CAINFO, getcwd() . "/positiveSSL.ca-bundle");
  </code></pre></li>
  <li><p>I also tried to do the same thing with positiveSSL.ca-bundle which was provided as bundle CA certificate for the server I am trying to connect to.</p></li>
  <li><p>Edit php ini settings with <code>curl.cainfo=cacert.pem</code> (file in the same directory and accessible by apache)</p></li>
  <li><p>Rename <code>/etc/pki/nssdb</code> to <code>/etc/pki/nssdb.old</code></p></li>
  </ul>
  
  <p>Unfortunatelly none of the above are able to solve my problem and I constantly get  Problem with the SSL CA cert (path? access rights?) message.</p>
  
  <p>And I don't need this verification in the first place (I am aware of security issues).</p>
  
  <p>Does anybody have any other suggestions?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After updating to the latest libraries and restart of the whole box, not just apache which I was doing it all seems to be working now again!!!</p>