Laravel 5 Socialite - cURL 错误 77:错误设置证书验证位置 [英] Laravel 5 Socialite - cURL error 77: error setting certificate verify locations
本文介绍了Laravel 5 Socialite - cURL 错误 77:错误设置证书验证位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Laravel 5 中使用 socialite 来设置 Facebook 登录.我仔细按照说明进行操作,直到遇到以下错误
I am using socialite in Laravel 5 to setup facebook login. I followed the instructions carefully until I got stuck with the following error
cURL error 60: SSL certificate problem: unable to get local issuer certificate
所以我找到了这个修复它的答案确实通过了,但后来我收到了这个错误
so I found the this answer to fix it which indeed passed but then I got this error
cURL error 77: error setting certificate verify locations:
CAfile: /Applications/XAMPP/xamppfiles/cacert.pem
CApath: none
知道这个错误的原因是什么吗?!以及如何修复它?!
Any ideas what's the cause of this error?! and how to fix it?!
推荐答案
我也被这个问题困住了.结果是我的 php.ini 文件中的证书路径设置不正确.忘记了 .txt 扩展名.
I got stuck on this problem as well. It turned out that I had the path to my certificate set incorrectly in my php.ini file. Forgot the .txt extension.
我所拥有的:
curl.cainfo = "C:xamppphpcacert.pem"
我将其更改为:
curl.cainfo = "C:xamppphpcacert.pem.txt"
希望这会有所帮助.
这篇关于Laravel 5 Socialite - cURL 错误 77:错误设置证书验证位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文