facebook身份验证cURL错误60:SSL证书 [英] facebook auth cURL error 60: SSL certificate
问题描述
cURL错误60:SSL证书问题:无法获取本地发行者证书(请参见 http://curl.haxx.se/libcurl/c/libcurl-errors.html )
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
尝试了多种解决方案,但没有解决 这是我尝试过的所有解决方案: 对localhost的Laravel社交名目的测试,SSL证书问题? >
tried multiple solution but not solving this all solutions i tried : https://laracasts.com/discuss/channels/laravel/how-to-solve-curl-error-60-ssl-certificate-in-laravel-5-while-facebook-authentication Laravel Socialite testing on localhost, SSL certificate issue?
public function getSocialAuth()
{
return Socialite::driver('github')->redirect();
}
推荐答案
简单解决方案.经过测试. 您可以打开php.ini文件. 改变这个
Simple solution. Tested. You can open your php.ini file. Change this
;openssl.cafile=
到
openssl.cafile=C:/Windows/curl-ca-bundle.crt
(注意到半冒号被删除了吗?)
(notice the semi colon is removed?)
在系统中搜索名为curl-ca-bundle.crt的文件,并将其放入C:/Windows
Search your system for a file named curl-ca-bundle.crt and put it in C:/Windows
我希望它也可以在Mac和其他系统上使用.只是走在正确的道路上. 就是这样.
I expect it works on Mac and other sytems as well. Just put in the right path. That's it.
这篇关于facebook身份验证cURL错误60:SSL证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!