简体   繁体   English

facebook auth cURL错误60:SSL证书

[英]facebook auth cURL error 60: SSL certificate

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html ) cURL错误60:SSL证书问题:无法获得本地颁发者证书(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html

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? 尝试了多种解决方案,但没有解决我尝试的所有解决方案: https//laracasts.com/discuss/channels/laravel/how-to-solve-curl-error-60-ssl-certificate-in-laravel-5-while- facebook-authentication Laravel Socialite测试localhost,SSL证书问题?

public function getSocialAuth()
{
    return Socialite::driver('github')->redirect();
}

Simple solution. 简单解决方案 Tested. 测试。 You can open your php.ini file. 您可以打开php.ini文件。 Change this 改变这个

;openssl.cafile=

to

openssl.cafile=C:/Windows/curl-ca-bundle.crt

(notice the semi colon is removed?) (注意半结肠被移除?)

Search your system for a file named curl-ca-bundle.crt and put it in C:/Windows 在系统中搜索名为curl-ca-bundle.crt的文件,并将其放在C:/ Windows中

I expect it works on Mac and other sytems as well. 我希望它也适用于Mac和其他系统。 Just put in the right path. 只是放在正确的道路上。 That's it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM