php中 SSL certificate https 问题解决方案

作者: dreamfly 分类: php 发布时间: 2019-09-07 16:03
  •  下载CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html

  • 在服务器上找一个位置存放cacert.pem 类似于/opt/local/cacert.pem

  • 打开php的配置文件php.ini

  • 添加配置curl.ca_info = /opt/local/cacert.pem

  • 重启服务器apache或者nginx

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!