首页  >  文章  >  后端开发  >  php中SSL certificate https问题解决方案

php中SSL certificate https问题解决方案

angryTom
angryTom转载
2019-10-15 17:51:132041浏览

php中SSL certificate https问题解决方案

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

5. 重启服务器apache或者nginx

 更多PHP相关知识,请访问PHP中文网

以上是php中SSL certificate https问题解决方案的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文转载于:www.80shihua.com。如有侵权,请联系admin@php.cn删除