已关闭,此问题需要details or clarity。它目前不接受回答。
**想改善这个问题吗?**通过editing this post添加详细信息并澄清问题。
2天前关闭。
Improve this question
我没有复制最新的cacert.pem到文件夹curl.cainfo=“C:\xampp\php\extras\ssl\cacert.pem”,但仍然有错误“curl:(60)SSL证书问题'在我的localhost。
已关闭,此问题需要details or clarity。它目前不接受回答。
**想改善这个问题吗?**通过editing this post添加详细信息并澄清问题。
2天前关闭。
Improve this question
我没有复制最新的cacert.pem到文件夹curl.cainfo=“C:\xampp\php\extras\ssl\cacert.pem”,但仍然有错误“curl:(60)SSL证书问题'在我的localhost。
1条答案
按热度按时间lsmepo6l1#
在你的php.ini也更新这个参数与相同的路径pem文件
openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"
,比重新启动wamp.你也可以把
pem
路径放在php代码中:此解决方法很危险,不建议用于生产环境,但可以用于本地主机环境: