wget raw.githubusercontent.com Unable to establish SSL connection 无法建立SSL连接 解决方法

用wget下载github上面文件的时候经常会发生Unable to establish SSL connection的情况,例如:

[root@localhost ~]# wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json 
--2020-12-17 09:44:41--  https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json
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.

一般情况下,在命令后面加上--no-check-certificate不验证ssl证书即可解决,但是有时候加了参数还是不行。

wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json --no-check-certificate

Unable to establish SSL connectionUnable to establish SSL connection