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

当本地curl需要访问https时,如果没有配置证书,会出现SSL certificate: unable to get local issuer certificate错误信息。

解决办法:

1、下载pem文件

2、将文件拷贝到D:\phpStudy\PHPTutorial\cacert.pem

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

Enjoy it !

猜你喜欢

转载自www.cnblogs.com/daizhongxing/p/12738713.html
今日推荐