curl: (60) SSL certificate problem: unable to get local issuer certificate
这是 SSL 证书问题所致,在使用 SDK 调用微信支付等相关的操作时可能会遇到报 “SSL certificate problem: unable to get local issuer certificate” 的错误。
解决方法:
- 下载ca证书:curl.haxx.se/ca/cacert.p… 进行下载。
- 或者使用微信官方提供的证书中的CA证书 rootca.pem。
配置证书
修改php.ini,找到curl位置写入
curl.cainfo = /path/to/downloaded/cacert.pem
重启服务器