Skip to content

Wget下载东西报证书错误

wget下载东西报证书错误

what: wget下载东西报证书错误

when: 2021/10/12

who:JRT

where:centos7

why:记录过程

[root@c56fe45e1a9b /]# wget https://jaist.dl.sourceforge.net/project/expect/Expect/5.45.3/expect5.45.3.tar.gz
--2021-10-12 01:20:21--  https://jaist.dl.sourceforge.net/project/expect/Expect/5.45.3/expect5.45.3.tar.gz
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.
ERROR: cannot verify jaist.dl.sourceforge.net's certificate, issued by '/C=US/O=Let\'s Encrypt/CN=R3':
  Issued certificate has expired.
To connect to jaist.dl.sourceforge.net insecurely, use `--no-check-certificate'.

解决1:

wget --no-check-certificate https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz

解决2:

yum install -y ca-certificates 或 apt install -y ca-certificates