• 周五. 11 月 13th, 2026

cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路

由root

12 月 14, 2021 #php

php5.6以上的版本会出现这种问题

解决办法:

访问https://curl.haxx.se/docs/caextract.html,下载cacert.pem,并在php.ini文件添加

curl.cainfo = "C:/LAMP/php/cacert.pem"
openssl.cafile="C:/LAMP/php/cacert.pem"

由 root