SSL certificate problem: unable to get local issuer certificate 解决方法

运行 php:

报错 SSL certificate problem: unable to get local issuer certificate解决方法:

在php.ini(也可能是php_production.ini 或者php_ development.ini,具体看自己用的事那个配置) 中 添加

curl.cainfo="C:/ca-bundle.crt"//自己的目录

openssl.cafile="C:/ca-bundle.crt"//自己的目录

ca-bundle.crt 下载地址 http://download.csdn.net/detail/qq_27317147/9854558

你可能感兴趣的:(PHP)