cURL错误60:Laravel中的SSL证书5.3 [英] cURL error 60: SSL certificate in Laravel 5.3

查看:1499
本文介绍了cURL错误60:Laravel中的SSL证书5.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立社群媒体套件 socialite version ^ 2.0 登入 Laravel 5.3 ,其中按照github上的说明配置,同时获取回调我收到一个错误:


cURL错误60:SSL证书问题


好吧,我试图搜索这个问题,无论它被指示我做了什么,但仍然得到相同的证书错误。

首先我使用wamp服务器,它有 PHP 5.6和7版本我保存了 cacert .p $ https://curl.haxx.se/ca/cacert.pem 链接并将其放置到 C:\wamp\bin\php\php7.0.4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ext 并编辑相应版本的php.ini文件,并在文件末尾添加以下内容:

  [cURL] 
curl.cainfo =C:\wamp\bin\php\php7.0.4\ext\cacert.pem

  [cURL] 
curl.cainfo =C:\wamp\bin\php\php5.6.19\ext\cacert.pem

这没有工作,所以我搜索更多我来知道,我需要安装 guzzlehttp / guzzle 所以我这样做,而使用版本^ 6.0我仍然得到相同,然后我尝试版本^ 4.0,因为它在许多博客中建议,而这样做时,我得到一个bindshared错误:

  Symfony \Component\Debug\Exception\FatalErrorException] 
调用未定义的方法Illuminate \Foundation\Application :: bindShared()

?[37; 41mScript php artisan优化处理返回错误的更新后cmd事件[39; 49m


?[37; 41m? b $ b?[37; 41m [RuntimeException]?[39; 49m
?[37; 41m错误输出:?[39; 49m
?[37; 41m? b
?[32mupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no -custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [ - v | vv | vvv | --verbose] -optimize-autoloader] [-a | --classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i | --interactive] [--root -reqs] [ - ] [?[39m?[32m< packages>?[39m?[32m] ...?[39m

它抵制了社会化功能执行。在尝试版本5.0时,我收到此错误:


cURL错误60:SSL证书问题:无法获取本地颁发者证书


我也试过禁用防火墙,但同样的事情显示。指导我在这里。目前我正在处理 PHP版本7.0.4

解决方案

I 完全诚实,我不知道任何关于Laravel。但我有同样的问题,所以像许多其他,在Symfony。所以,当你尝试许多事情没有成功。



最后,此解决方案适用于我:
URL解决方案



这表示不是证书问题,它可能来自环境不兼容性​​。我使用XAMPP而不是WAMP,它工作。


I'm trying to build a social media package socialite version ^2.0 login in Laravel 5.3, where I've configured as per the instruction on github, while getting the callback I'm getting an error:

cURL error 60: SSL certificate problem

Well I tried searching about this problem and whatever it was instructed I did, but still getting the same certificate error.

First of all I'm using wamp server which has PHP version 5.6 and 7 I saved the cacert.pem from the link https://curl.haxx.se/ca/cacert.pem and placed it to C:\wamp\bin\php\php7.0.4\ext and to C:\wamp\bin\php\php5.6.19\ext and edited php.ini file of respective version and added the following at end of the file:

[cURL]
curl.cainfo="C:\wamp\bin\php\php7.0.4\ext\cacert.pem"

and

[cURL]
curl.cainfo="C:\wamp\bin\php\php5.6.19\ext\cacert.pem"

Well this didn't worked so I searched more I came to know that I need to install guzzlehttp/guzzle So I did so, while using the version ^6.0 I was still getting the same then I tried version ^4.0 as it was suggested in many blogs, while doing so I was getting a bindshared error:

  Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::bindShared()

?[37;41mScript php artisan optimize handling the post-update-cmd event returned with an error?[39;49m


?[37;41m                      ?[39;49m
?[37;41m  [RuntimeException]  ?[39;49m
?[37;41m  Error Output:       ?[39;49m
?[37;41m                      ?[39;49m

?[32mupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies][-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [?[39m?[32m<packages>?[39m?[32m]...?[39m

And it resisted the socialite function to execute. While trying the version 5.0 I was getting this error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate

I tried disabling the firewall too, but same thing are displaying. Guide me in this. Currently I'm working on PHP Version 7.0.4

解决方案

I'll be fully honest, I don't know anything about Laravel. But I had the same problem, so as many other, on Symfony. And so as you I tried many things without success.

Finally, this solution worked for me : URL solution

It indicates that instead of a certificate problem, it could came from a environnement non-compatibility. I used XAMPP instead of WAMP and it worked.

这篇关于cURL错误60:Laravel中的SSL证书5.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆