PHP curl报错:php curl: (60) SSL certificate problem: unable to get local issuer certificate

环境:Windows phpStudy

原因:缺少安全证书

解决:

1.下载证书: https://curl.haxx.se/ca/cacert.pem

2.修改php.ini配置,添加证书配置,绝对路径如下:

curl.cainfo = "D:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem"

3.重启php

PHP curl报错:php curl: (60) SSL certificate problem: unable to get local issuer certificatePHP curl报错:php curl: (60) SSL certificate problem: unable to get local issuer certificate 李维山 发布了103 篇原创文章 · 获赞 167 · 访问量 18万+ 私信 关注
上一篇:Android导入Burp Suite证书抓包HTTPS


下一篇:PHP:cURL error 60: SSL certificate unable to get l