PHP出现SSLcertificate:unabletogetlocalissuercertificate的解决办法

当本地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"

你可能感兴趣的:(PHP出现SSLcertificate:unabletogetlocalissuercertificate的解决办法)