首页 文章

未捕获的异常'GuzzleHttp\Exception\RequestException',消息'cURL错误60

提问于
浏览
0

我在我的localhost上尝试了谷歌oauth php并得到了这个错误!我能做些什么

未捕获的异常'GuzzleHttp\Exception\RequestException',带有消息 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (参见

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

在第187行

1 回答

  • 0
    • 下载ca fiile“curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem”

    • 我的档案"cacert.pem"搬到"/wwwroot/ca/cacert.pem"

    • 打开文件php.ini,启用openssl,找到"openssl.cafile",设置"openssl.cafile=/wwwroot/ca/cacert.pem"

    • 重新启动Web服务器(nginx / apache)或重新打开终端 .

    • 享受 .

相关问题