环境:Windows phpStudy
原因:缺少安全证书
解决:
1.下载证书: https://curl.haxx.se/ca/cacert.pem
2.修改php.ini配置,添加证书配置,绝对路径如下:
curl.cainfo = "D:\phpstudy_pro\Extensions\php\php7.3.4nts\extras\ssl\cacert.pem"
3.重启php
来源:CSDN
作者:李维山
链接:https://blog.csdn.net/msllws/article/details/104102244