Php 未捕获异常';GuzzleHttp\Exception\RequestException';带有消息';卷曲误差60

Php 未捕获异常';GuzzleHttp\Exception\RequestException';带有消息';卷曲误差60,php,google-api,google-login,Php,Google Api,Google Login,我在本地主机上尝试了GoogleOAuthPHP,结果出现了这个错误!我能做什么 包含消息的未捕获异常“GuzzleHttp\exception\RequestException” 'cURL错误60:SSL证书问题:无法获取本地颁发者证书(请参阅 )“在 C:\wamp\www\google\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php 在线187 下载ca文件“curl-o cacert.pem” 我的文件“cacert.pem”移

我在本地主机上尝试了GoogleOAuthPHP,结果出现了这个错误!我能做什么

包含消息的未捕获异常“GuzzleHttp\exception\RequestException” 'cURL错误60:SSL证书问题:无法获取本地颁发者证书(请参阅

)“在 C:\wamp\www\google\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php

在线187

  • 下载ca文件“curl-o cacert.pem”
  • 我的文件“cacert.pem”移动到“/wwwroot/ca/cacert.pem”
  • 打开文件php.ini,启用openssl,找到“openssl.cafile”,设置“openssl.cafile=/wwwroot/ca/cacert.pem”
  • 重新启动web服务器(nginx/apache)或重新打开终端
  • 享受

  • 可能的重复文件您不是必须每隔几个月执行一次吗?否则,当该文件变得无效时,连接将失败?