当前位置:网站首页>ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let‘s Encrypt/CN=R3”,wget报错

ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let‘s Encrypt/CN=R3”,wget报错

2022-06-22 06:16:00 打工人007

--2022-06-20 16:06:37--  https://nih.at/libzip/libzip-1.2.0.tar.gz
Resolving nih.at... 5.2.73.210, 2a04:52c0:101:2e6::de6c
Connecting to nih.at|5.2.73.210|:443... connected.
ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let's Encrypt/CN=R3”:
  Issued certificate has expired.
To connect to nih.at insecurely, use ‘--no-check-certificate’

其实仔细看完报错就知道了,看最后一行,有提示

第一步:

建议先运行这个命令(如果报错可以跳过直接运行第二步试试):

sudo yum install -y ca-certificates

第二步:

将之前wget https://xxxxx 命令,换成以下命令即可,--no-check-certificate就是报错信息的最后一行信息

wget --no-check-certificate https://xxxxx

完美解决

备注:wget --no-check-certificate 这个参数会让你在 wget 进行对 https 站点的请求时不再检查证书。

原网站

版权声明
本文为[打工人007]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_35043734/article/details/125374843