[英]sparkpost laravel cURL error 60
我有l5.2,我按照這個步驟掛鈎sparkpost和laravel我恢復了我的服務和mail.php
到它的原始配置:
https://medium.com/@petehouston/send-mail-with-sparkpost-in-laravel-b5e30a941ebf#.s2hebpwb6
但我得到這個錯誤:
cURL錯誤60:SSL證書問題:無法獲得本地頒發者證書(請參閱http://curl.haxx.se/libcurl/c/libcurl-errors.html )
這是您的本地cacert的問題,通常在使用xampp,wamp或類似的相關軟件時發生,因為在進行默認curl請求時沒有證書到位。
我的建議是從這里下載一個cacert: http ://curl.haxx.se/ca/cacert.pem
將證書復制到C:\\ Xampp \\ certs
使用以下命令更新PHP.ini文件:
curl.cainfo="C:/xampp/certs/ca-bundle.crt"
openssl.cafile="C:/xampp/certs/ca-bundle.crt"
重新啟動您的Web服務器,你應該很高興。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.