drgbpq5930 2018-07-04 19:04
浏览 45

google api登录时出错

Any ideas how to handle the next error?

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations: CAfile: D:\xampp\htdocs>ca-bundle.crt CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in D:\xampp\htdocs\social_login\GoogleLogin\GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187 Stack trace: #0 D:\xampp\htdocs\social_login\GoogleLogin\GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 D:\xampp\htdocs\social_login\GoogleLogin\GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 D:\xampp\htdocs\social_login\GoogleLogin\GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(G in D:\xampp\htdocs\social_login\GoogleLogin\GoogleAPI\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187
  • 写回答

1条回答 默认 最新

  • doujiu3095 2018-07-04 19:13
    关注

    Have you uncommented and added a value to the following line in your php.ini?

    ;openssl.cafile=
    

    Make sure that these two options are specified and point to an up to date certificate bundle.


    A concrete way to fix this is:

    1. Download a cafile here.
    2. Save it in your D:\xampp\ folder and call it cacert.pem.
    3. Change the relevant line in your php.ini to: openssl.cafile=d:\xampp\cacert.pem.
    评论

报告相同问题?

悬赏问题

  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用