【发布时间】:2015-07-26 06:38:12
【问题描述】:
我在 Laravel 5 中使用社交名流来设置 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
任何想法是什么导致这个错误?!以及如何解决?!
【问题讨论】:
-
您使用的是真正的 SSL 证书还是自认证证书? /Applications/XAMPP/xamppfiles/cacert.pem 文件是否存在?
-
@detheridge02 我下载了附件中提到的文件,所以它在路径 /Applications/Xampp/xamppfiles 中
-
你需要放一个绝对路径而不是相对路径
-
如果设置了
open_basedir,请注意它包含cacert.pem所在的目录。 -
你确定文件名是cacert.pem还是cacert.perm?正确检查扩展名并确保这是您环境证书路径中的内容,通常位于 curl.cainfo ="C:/wamp64/bin/php/php7.2.10/extras/ssl/cacert.pem 的 php.ini 文件中"
标签: php ssl curl laravel-5 laravel-socialite