美文网首页
GuzzleHttp cURL error 60: SSL ce

GuzzleHttp cURL error 60: SSL ce

作者: xilong | 来源:发表于2021-07-15 17:27 被阅读0次

1、报错问题

GuzzleHttp 发起https请求时,会报以下错误

cURL error 60: SSL certificate problem: self signed certificate

2、解决方案

guzzle 发起http请求与https请求的区别,发起https请求时,需要在构造函数中传入一个配置项,

$client = new \GuzzleHttp\Client(['verify' =>false]);

相关文章

网友评论

      本文标题:GuzzleHttp cURL error 60: SSL ce

      本文链接:https://www.haomeiwen.com/subject/illmpltx.html