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中ssl certificate https问题解决方案的详细内容。