guzzle调用失败-缺少guzzle

简介: 用composer安装了,但是目前为止还有问题。开发环境是 WAMP PHP5.4.12. 已经打开PHP.ini 的SSL扩展,现在还是提示缺少 curl-ca-bundle.cr 报错 No system CA bundle could be found in any of the the common system locations.

用composer安装了,但是目前为止还有问题。开发环境是 WAMP PHP5.4.12. 已经打开PHP.ini 的SSL扩展,现在还是提示缺少 curl-ca-bundle.cr

报错

No system CA bundle could be found in any of the the common system locations.
PHP versions earlier than 5.6 are not properly configured to use the system's
CA bundle by default. In order to verify peer certificates, you will need to
supply the path on disk to a certificate bundle to the 'verify' request
option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not
need a specific certificate bundle, then Mozilla provides a commonly used CA
bundle which can be downloaded here (provided by the maintainer of cURL):
https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt. Once
you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP
ini setting to point to the path to the file, allowing you to omit the 'verify'
request option. See http://curl.haxx.se/docs/sslcerts.html for more
information.

根据这个地址 https://github.com/guzzle/RingPHP/blob/master/src/Client/ClientUtils.php  提示是缺少指定的文件

在这个地址 https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt 下载对应的文件 curl-ca-bundle.crt 

问题解决

 

目录
打赏
0
0
0
0
4
分享
相关文章
文本,文字识别12,接口返回值和异常封装,一个好的接口,应该包括,错误码,提示信息,返回的数据,应该知道出错,错在哪里,抛出业务异常应该怎样解决?出现业务异常的时候,抛出业务异常,全局异常处理
文本,文字识别12,接口返回值和异常封装,一个好的接口,应该包括,错误码,提示信息,返回的数据,应该知道出错,错在哪里,抛出业务异常应该怎样解决?出现业务异常的时候,抛出业务异常,全局异常处理
|
8月前
$(this)出错
$(this)出错
38 0
|
9月前
|
这个错误信息表明在执行项目时出现了问题
【1月更文挑战第4天】【1月更文挑战第17篇】这个错误信息表明在执行项目时出现了问题
164 1
记一个低级错误导致的接口失败
记一个低级错误导致的接口失败
IE8:由于出现错误 80020101 而导致此项操作无法完成...........
IE8:由于出现错误 80020101 而导致此项操作无法完成...........
465 0
ros安装的时候出现hash值校验失败的错误的解决方法
ros安装的时候出现hash值校验失败的错误的解决方法
基于令牌的服务器访问验证失败,出现基础结构错误。请检查以前的错误
一数据库服务器(SQL Server 2014)上的一个作业执行报错,具体错误信息如下:   Executed as user: NT SERVICE\SQLSERVERAGENT. 用户 'xxxx\xxxxx$' 登录失败。
1962 0
基于令牌的服务器访问验证失败,出现基础结构错误。请检查以前的错误
CVE-2020-8617:检查TSIG有效性的代码逻辑错误可能被用于触发tsig.c中的断言失败
2020年5月19日,ISC发布了BIND的一个新的漏洞和补丁。在受到攻击时,新版本的BIND服务器可以触发tsig.c中的断言失败,而检测到服务器不一致的状态并强制退出,进而保护服务器。

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等