【问题标题】:Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60未捕获的异常“GuzzleHttp\Exception\RequestException”与消息“cURL 错误 60”
【发布时间】:2017-07-24 12:30:43
【问题描述】:

我在本地主机上尝试了 google oauth php 并得到了这个错误!我该怎么办

带有消息的未捕获异常“GuzzleHttp\Exception\RequestException” 'cURL 错误 60:SSL 证书问题:无法获取本地颁发者证书(参见

http://curl.haxx.se/libcurl/c/libcurl-errors.html)' 在 C:\wamp\www\google\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php

在第 187 行

【问题讨论】:

标签: php google-api google-login


【解决方案1】:
  1. 下载ca文件“curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem”
  2. 我的文件“cacert.pem”移动到“/wwwroot/ca/cacert.pem”
  3. 打开文件php.ini,开启openssl,找到“openssl.cafile”,设置“openssl.cafile=/wwwroot/ca/cacert.pem”
  4. 重启网络服务器(nginx/apache)或重启终端。
  5. 享受吧。

【讨论】:

  • 您不必每隔几个月执行一次,否则当该文件无效时连接会失败?
猜你喜欢
  • 2016-03-19
  • 1970-01-01
  • 2017-07-27
  • 2017-08-31
  • 1970-01-01
  • 2015-05-05
  • 2021-02-20
  • 2013-08-24
  • 2012-04-25
相关资源
最近更新 更多