wget获取https地址时加入--no-check-certificate

[root@supportserver-51 src]# wget 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2'
--2015-09-21 18:31:54--  https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2
Resolving www.gnupg.org... 217.69.76.60, 2001:aa8:fff1:2100::60
Connecting to www.gnupg.org|217.69.76.60|:443... connected.
ERROR: certificate common name “gnupg.org” doesn’t match requested host name “www.gnupg.org”.
To connect to www.gnupg.org insecurely, use ‘--no-check-certificate’.
[root@supportserver-51 src]# wget --no-check-certificate 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2'
--2015-09-21 18:32:21--  https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.6.0.tar.bz2
Resolving www.gnupg.org... 217.69.76.60, 2001:aa8:fff1:2100::60
Connecting to www.gnupg.org|217.69.76.60|:443... connected.
WARNING: certificate common name “gnupg.org” doesn’t match requested host name “www.gnupg.org”.
HTTP request sent, awaiting response... 200 OK
Length: 983573 (961K) [text/plain]
Saving to: “gpgme-1.6.0.tar.bz2”

100%[====================================================================================================================================================>] 983,573      425K/s   in 2.3s    

2015-09-21 18:32:25 (425 KB/s) - “gpgme-1.6.0.tar.bz2” saved [983573/983573]

[root@supportserver-51 src]# 
展开阅读全文

没有更多推荐了,返回首页