php curl解决发送window cURL error 60: SSL certificate problem: unable to get local issuer certificate

下载

从https://curl.haxx.se/ca/cacert.pem下载最新的cacert.pem

配置

php.ini配置
找到curl.cainfo ,注释删除,

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo =D:/BtSoft/cacert.pem

重启动

你可能感兴趣的:(php curl解决发送window cURL error 60: SSL certificate problem: unable to get local issuer certificate)