laravel 加载 cafile 流失败:`C:\xampp\apache\bin\curl-ca-bundle.crt'

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55488982/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:19:19  来源:igfitidea点击:

failed loading cafile stream: `C:\xampp\apache\bin\curl-ca-bundle.crt'

laravel

提问by Suman Kumari

enter image description here

在此处输入图片说明

How to solve this error ?

如何解决这个错误?

failed loading cafile stream: `C:\xampp\apache\bin\curl-ca-bundle.crt'

加载 cafile 流失败:`C:\xampp\apache\bin\curl-ca-bundle.crt'

enter image description here

在此处输入图片说明

回答by namelivia

You are not providing a valid ca bundle file.

您没有提供有效的 ca 包文件。

Try downloading this fileand save it as C:\xampp\apache\bin\curl-ca-bundle.crtYou can read the explanation on the Certificate Verification section of the curl documentation.

尝试下载此文件并将其另存为C:\xampp\apache\bin\curl-ca-bundle.crt您可以阅读curl 文档的证书验证部分的说明

libcurl performs peer SSL certificate verification by default. This is done by using a CA certificate store that the SSL library can use to make sure the peer's server certificate is valid.

libcurl 默认执行对等 SSL 证书验证。这是通过使用 CA 证书存储来完成的,SSL 库可以使用它来确保对等方的服务器证书有效。