下载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