PHP出现SSL certificate problem: unable to get local issuer certificate
于 2024-04-28 发布 阅读量60
无法获取本地颁发者证书
当时用curl进行https的请求的时候,本地执行的php会抛出"SSL certificate: unable to get local issuer certificate"这个错误。
这个错误主要是由于本地没有进行证书的签名导致的
下载cert.pem,下载地址为: http://curl.haxx.se/ca/cacert.pem
在php的配置文件中php.ini引入证书文件
curl.cainfo = "E:\wamp\bin\php\cacert.pem"
