cURL error 60: SSL certificate problem: unable to get local issuer certificate

1.下载pem文件

http://curl.haxx.se/ca/cacert.pem

2.拷贝文件到(基于PHPStudy)

D:\phpStudy\phpstudy_pro\Extensions\php\php7.0.9nts\ssl

3.修改php.ini配置文件

curl.cainfo ="D:\phpStudy\phpstudy_pro\Extensions\php\php7.0.9nts\ssl\cacert.pem"

4.重启apache,即可

猜你喜欢

转载自blog.csdn.net/qq2942713658/article/details/115212092