我在Windows 7上使用XAMPP作为服务器,PHP版本为5.6.3。
当我尝试使用Mandrill API时,出现以下错误:
Uncaught exception 'Mandrill_HttpError' with message 'API call to messages/send-template failed: SSL certificate problem: unable to get local issuer certificate'
我已经尝试了StackOverflow上的所有方法,包括在php.ini文件中添加以下内容:
curl.cainfo = "C:\xampp\php\cacert.pem"
当然,从http://curl.haxx.se/docs/caextract.html下载cacert.pem文件到该位置后进行了下载。
但是即便如此,重新启动XAMPP和Apache服务器仍然会出现相同的错误。
我真的不知道还能尝试什么。
有人能建议我还可以尝试什么吗?