第一种:
解决 cURL error 60: SSL certificate problem: unable to get local issuer certificate
这是由于在本地调试时用ssl进行远程请求,但是本地没有秘钥稳健所导致、。解决办法有两种
在使用curl_exec()之前跳过ssl检查项
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
第二种:
访问https://curl.haxx.se/docs/caextract.html,下载cacert.pem,并在php.ini文件添加
curl.cainfo="D:/wamp/bin/php/php7.0.10/extras/ssl/cacert.pem"
openssl.cafile="D:/wamp/bin/php/php7.0.10/extras/ssl/cacert.pem"
重启php-fpm.