PHP出现SSL certificate: unable to get local issuer certificate的解决办法

当本地curl需要访问https时,出现SSL certificate: unable to get local issuer certificate错误信息

解决办法:

http://curl.haxx.se/ca/cacert.pem下载pem文件,并将文件拷贝到D:\phpStudy\PHPTutorial\cacert.pem

在php.ini
增加
curl.cainfo = "D:\phpStudy\PHPTutorial\cacert.pem"

猜你喜欢

转载自blog.csdn.net/qq_41921511/article/details/85047576