php问题:curlerror60

1
[2018-05-10 13:55:16] local.DEBUG: GuzzleHttpExceptionRequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in

一般出现在Windows下

  1. 下载一个pem证书,下载地址:https://curl.haxx.se/docs/caextract.html

  2. 下载好之后,将cacert.pem放到C:xamppphpextrassslcacert.pem

  3. 在php.ini中添加

1
curl.cainfo = "C:xamppphpextrassslcacert.pem"
  1. 重启apache即可