duanhao7786 2017-01-17 03:24
浏览 35

sparkpost laravel cURL错误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:

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)

  • 写回答

1条回答 默认 最新

  • dor65412 2017-01-17 03:53
    关注

    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.

    My suggestion would be to download a cacert from here: http://curl.haxx.se/ca/cacert.pem

    Copy the cert to C:\Xampp\certs

    Update your PHP.ini file with:

    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.

    评论

报告相同问题?