阿里云OSS cURL error: SSL certificate problem: unable to get local issuer certificate (60)


RequestCoreException: cURL resource: Resource id #130; cURL error: SSL certificate problem: unable to get local issuer certificate (60)

在使用阿里去OSS上传文件的时候报上述错误。

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

修改php.ini

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

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注