1. 下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html
2. 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem
3. 打开php的配置文件php.ini
4. 添加配置curl.ca_info = /opt/local/cacert.pem
立即学习“PHP免费学习笔记(深入)”;
5. 重启服务器apache或者nginx
更多PHP相关知识,请访问PHP中文网!
以上就是php中SSL certificate https问题解决方案的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号