curl: (60) SSL certificate problem: certificate has expired 错误

I have this problem on a debian 9 client, that try to run a curl to a website that have valid SSL .

The fix is to blacklist the expired ssl on the client computer, not on server.

这是OpenSSL的一个BUG

也可以在CURL设置

curl_setopt($config,CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($config,CURLOPT_SSL_VERIFYPEER,0);

参数,来跳过SSL证书验证

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注