本文主要是介绍解决EasyWeChat报错cURL error 60: SSL certificate problem: unable to get local issuer certificate,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错:
这个是因为无法访问本地证书,在访问HTTPS请求时需要用到
解决方法:
在配置时添加代码:
$options = ['payment' => ['merchant_id' => 'your-mch-id','key' => 'key-for-signature','cert_path' => 'path/to/your/cert.pem','key_path' => 'path/to/your/key',// ...],//必须添加部分'guzzle' => [ // 配置'verify' => false,'timeout' => 4.0,],
];
$app = new Application($options);$luckyMoney = $app->lucky_money;
这篇关于解决EasyWeChat报错cURL error 60: SSL certificate problem: unable to get local issuer certificate的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!