环境是 AIX 6
wget https://www.apache.org/
出现 unsupported scheme 提示, 这是必然的, 因为这是个安全链接。
加个选项试试, 不检查证书
wget --no-check-certificate https://www.apache.org/
wget: unrecognized option --no-check-certificate
提示没有这个选项。 看来事情没想象的那么简单
wget --help
检查竟然没有HTTPS (SSL/TLS) options
好吧, 看来目前的wget把ssl功能关闭了。 需要重装wget。 两个方法, 一个是源码安装指定ssl选项, 另一个就是安装ssl enable的wget rpm。 我选择后者了。
curl http://www.stargard.ca/aix/RPMS/wget-1.12-1ssl.aix6.1.ppc.rpm > wget-1.12-1ssl.aix6.1.ppc.rpm
rpm -e wget
rpm -ivh wget-1.12-1ssl.aix6.1.ppc.rpm
测试
DSTBoulder:dst02lp8:/root/tmp# wget --no-check-certificate https://www.apache.org/
--2013-01-24 23:14:44-- https://www.apache.org/
Resolving www.apache.org... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229
Connecting to www.apache.org|192.87.106.229|:443... connected.
WARNING: cannot verify www.apache.org's certificate, issued by `/C=US/O=Thawte, Inc./CN=ThawteSSL CA':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 35543 (35K) [text/html]
Saving to: `index.html'
100%[===========================================================================================================================================================>] 35,543 88.0K/s in 0.4s
2013-01-24 23:14:45 (88.0 KB/s) - `index.html' saved [35543/35543]
搞定。