wget 无法获取正确的 SSL 证书到期日期

wget 无法获取正确的 SSL 证书到期日期

当我执行这个

wget -O /root/installer.php https://www.grscripts.com/install/installer.deluxe

我收到此错误

ERROR: cannot verify https://www.grscripts.com's/ certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’:   Issued certificate has expired.

但事实并非如此,事实上 http://www.grscripts.com/ 的证书是没问题的,并且将于 2022 年 2 月到期。为什么 wget 无法获取正确的证书以及如何修复它?

请注意,我知道我可以使用 --no-check-certificate 跳过该问题,我会知道为什么 wget 报告证书已过期但实际上并未过期。

答案1

如果您没有更新系统和根证书,那么您的系统可能无法识别 Let's Encrypt 证书。查看列表Let's Encrypt 兼容性列表

相关内容