cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

2019-03-01 22:19:20
66
PHP

我在使用easywechat的遇到了这个问题 ,顺手记录一下解决方案


1:下载cacert.pem

https://curl.haxx.se/ca/cacert.pem


2:配置 php.ini



[curl]

; A default value for the CURLOPT_CAINFO option. This is required to be an

; absolute path.

curl.cainfo = "cacert.pem绝对路径"



最新评论
总共 0 条评论
还没有评论,快来抢沙发吧!