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
failed loading cafile stream: `C:\xampp\apache\bin\curl-ca-bundle.crt'
提问by Suman Kumari
回答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.crt
You 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 库可以使用它来确保对等方的服务器证书有效。