title: error setting certificate verify locations: CAfile
body: <pre><code>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/usr/share/ssl/certs/www.site.com.crt ");
  </code></pre>
  
  <p>The code given above is used for a payment section.  The following error is displayed: </p>
  
  <p>%s: s77
  error setting certificate verify locations: CAfile: /home/site/public_html/usr/share/ssl/certs/www.site.com.crt CApath: none</p>
  
  <p>how can fix this can anyone help me please</p>
  
  <p>Thanks</p>