laravel采集时报错解决:cURL error 60: SSL certificate problem: unable to get local issuer certificate

参考:https://www.cnblogs.com/wxy0126/p/11799805.html

问题

laravel采集时报错:cURL error 60: SSL certificate problem: unable to get local issuer certificate

解决步骤

  1. 下载证书,地址:https://curl.se/ca/cacert.pem
  2. 配置php.ini,搜索‘curl.cainfo’,修改如下:
curl.cainfo = "D:\phpstudy\Extensions\php\php7.3.4nts\cacert.pem"
  1. 重启web服务器,让配置生效。

解决方法2

关闭证书
$client->setDefaultOption('verify', false);

你可能感兴趣的:(laravel采集时报错解决:cURL error 60: SSL certificate problem: unable to get local issuer certificate)