CURL Error 60
laravel项目在windows下开发过程中出现如下错误
RequestException in CurlFactory.php line 187:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
解决方案
- 下载http://curl.haxx.se/ca/cacert.pem
- 复制到
C:\Windows\
- 修改php.ini,添加
curl.cainfo = "C:\Windows\cacert.pem"
- 重启apache