Closed znmin closed 7 years ago
运行页面报错 cURL error 60: SSL certificate problem: self signed certificate in certificate chain (seehttp://curl.haxx.se/libcurl/c/libcurl-errors.html)
controller $this->easySms->send('*****', [ 'content' => '您请求的验证码为: ' . $this->phoneCodeService->phoneCode($request->input('phone_number')) ]);
easy-sms.php return [ // HTTP 请求的超时时间(秒) 'timeout' => 5.0, // 默认发送配置 'default' => [ // 网关调用策略,默认:顺序调用 'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class, // 默认可用的发送网关 'gateways' => [ 'chuanglan' ], ], // 可用的网关配置 'gateways' => [ 'errorlog' => [ 'file' => '/tmp/easy-sms.log', ], 'chuanglan' => [ 'username' => env('CHUANGLAN_USERNAME'), 'password' => env('CHUANGLAN_PASSWORD'), ], ], ];
证书问题自己解决
... 问题是创蓝api 不需要提供证书 啊. new GuzzleHttp\Client 的时候 需要设置 verify 为false,
你环境的根证书问题, https 请求会验证根证书,关掉证书验证是不科学的玩法
行, 我再看看, 找找问题/..
..找到解决方案, http://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html#verify 感谢 提醒
运行页面报错 cURL error 60: SSL certificate problem: self signed certificate in certificate chain (seehttp://curl.haxx.se/libcurl/c/libcurl-errors.html)