title: PHP - SSL certificate error: unable to get local issuer certificate
body: <p>I'm running PHP Version 5.6.3 as part of XAMPP on Windows 7.</p>
  
  <p>When I try to use the Mandrill API, I'm getting the following error:</p>
  
  <blockquote>
    <p>Uncaught exception 'Mandrill_HttpError' with message 'API call to messages/send-template failed: SSL certificate problem: unable to get local issuer certificate'</p>
  </blockquote>
  
  <p>I already tried everything I read on StackOverflow, including adding the following to the php.ini file:</p>
  
  <pre><code>curl.cainfo = "C:\xampp\php\cacert.pem"
  </code></pre>
  
  <p>And ofcourse downloaded to that location the cacert.pem file from <a href="http://curl.haxx.se/docs/caextract.html">http://curl.haxx.se/docs/caextract.html</a></p>
  
  <p>but after all that, restarted XAMPP and Apache server but still getting the same error.</p>
  
  <p>I really don't know what else to try.</p>
  
  <p>Can anyone advise on what else can I try?</p>