Fork me on GitHub

logo我的个人地带

努力每一天,每天进步一点点,每天快乐一点点

cURL error 60: SSL certificate problem: unable to get local issuer certifica

PHP请求HTTPS 接口地址 报错:cURL error 60: SSL certificate problem: unable to get local issuer certifica

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


放置到指定位置, 比如直接D盘根目录


打开php.ini


修改curl.cainfo或openssl.cafile

curl.cainfo=D:/cacert.pem





Comments 0