简体   繁体   English

sparkpost laravel cURL错误60

[英]sparkpost laravel cURL error 60

I have l5.2 and I followed this steps in hooking sparkpost and laravel and I reverted my services and mail.php to its original configuration: 我有l5.2,我按照这个步骤挂钩sparkpost和laravel我恢复了我的服务和mail.php到它的原始配置:

https://medium.com/@petehouston/send-mail-with-sparkpost-in-laravel-b5e30a941ebf#.s2hebpwb6

But I get this error: 但我得到这个错误:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html ) cURL错误60:SSL证书问题:无法获得本地颁发者证书(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html

This is a problem with your local cacert and usually occurs when using xampp, wamp or similar related software because when making default curl requests there is no certificate in place. 这是您的本地cacert的问题,通常在使用xampp,wamp或类似的相关软件时发生,因为在进行默认curl请求时没有证书到位。

My suggestion would be to download a cacert from here: http://curl.haxx.se/ca/cacert.pem 我的建议是从这里下载一个cacert: http ://curl.haxx.se/ca/cacert.pem

Copy the cert to C:\\Xampp\\certs 将证书复制到C:\\ Xampp \\ certs

Update your PHP.ini file with: 使用以下命令更新PHP.ini文件:

curl.cainfo="C:/xampp/certs/ca-bundle.crt"
openssl.cafile="C:/xampp/certs/ca-bundle.crt"

Restart your web server and you should be good to go. 重新启动您的Web服务器,你应该很高兴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM