wget命令出现Unable to establish SSL connection.的解决办法

报错:wget命令出现Unable to establish SSL connection.

[root@localhost ~]# wget https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh 
--2021-06-22 17:43:01--  https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
Unable to establish SSL connection.

解决方法:
加上跳过验证证书的参数“–no-check-certificate”
如下图:

[root@localhost ~]# wget https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh --no-check-certificate
--2021-06-22 17:43:01--  https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
Unable to establish SSL connection.

加上参数“–no-check-certificate”后也不管用
就要想到防火墙的问题(关键)

关掉防火墙并开机不自启
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# wget https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh --no-check-certificate 
--2021-06-22 18:32:27--  https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/quick_start.sh
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/21484781/6f563380-c79b-11ea-9162-15684126da9f?X-Amz-Algorithm=AWS4-....

即连接成功

评论 3 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:游动-白 设计师:我叫白小胖 返回首页

打赏作者

大地雷

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值