2023-05-12 开启多语言插件支持……

win下error: 60 SSL certificate problem: unable to get local issuer certificate 解决方案

php 苏 demo 2330℃

问题出现:

最近在使用curl 请求https链接的网址的时候,提示error: 60 SSL certificate problem: unable to get local issuer certificate

或者curl_error : error setting certificate verify locations

解决方法:

打开https://curl.haxx.se/ca/cacert.pem,复制文本内容到D:/wamp/cacert.pem.txt

在php.ini的[curl]模块下加一句:curl.cainfo=”D:/wamp64/cacert.pem.txt”

注意wampserver 找对正确的php.ini文件,详细可以使用phpinfo查看 使用的php.ini的路径。

 

重启WAMP

打赏

转载请注明:苏demo的别样人生 » win下error: 60 SSL certificate problem: unable to get local issuer certificate 解决方案

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (0)or分享 (0)