我在 Laravel 5 中使用 socialite 来设置 facebook 登录。我仔细按照说明操作,直到遇到以下错误
cURL error 60: SSL certificate problem: unable to get local issuer certificate
所以我找到了 this回答修复它确实通过了,但后来我得到了这个错误
cURL error 77: error setting certificate verify locations:
CAfile: /Applications/XAMPP/xamppfiles/cacert.pem
CApath: none
知道这个错误的原因是什么吗?!以及如何修复它?!
最佳答案
我也遇到了这个问题。事实证明,我在 php.ini 文件中设置的证书路径不正确。忘记了 .txt 扩展名。
我有什么:
curl.cainfo = "C:\xampp\php\cacert.pem"
我把它改成了:
curl.cainfo = "C:\xampp\php\cacert.pem.txt"
希望这对您有所帮助。
关于php - Laravel 5 Socialite - cURL 错误 77 : error setting certificate verify locations,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30240840/