【问题记录】CentOS7.6使用wget命令提示"Unable to establish SSL connection"
程序员文章站
2022-03-03 18:57:49
...
【问题记录】
系统版本:Centos 7.6
Wget版本:1.14
wget https://xxxxxx时报:Unable to establish SSL connection
[[email protected] ~]# wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
--2019-12-11 17:31:53-- https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.228.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... connected.
Unable to establish SSL connection.
wget后跟的url为https,访问443端口,https为加密传输的协议,需要证书。加参数 --no-check-certificat
[[email protected] ~]# wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml --no-check-certificat
--2019-12-11 17:26:16-- https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.108.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6364 (6.2K) [text/plain]
Saving to: ‘mandatory.yaml’
100%[==================================================================================================>] 6,364 --.-K/s in 0.1s
2019-12-11 17:26:17 (59.5 KB/s) - ‘mandatory.yaml’ saved [6364/6364]