wget下载软件包时,遇到不信任问题,除了跳过证书检验,更新或者下载ca证书也是个解决办法

本文介绍了一种在遇到证书过期导致无法连接到清华大学镜像站点的问题时的解决方案。通过安装或更新证书,成功地从清华大学镜像站点下载了mysql压缩包。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ERROR: cannot verify mirrors.tuna.tsinghua.edu.cn's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’:
  Issued certificate has expired.
To connect to mirrors.tuna.tsinghua.edu.cn insecurely, use `--no-check-certificate'.

我在源码安装mysql时候,访问Tsinghua网站遇到了问题,系统提示我使用--no-check-certificate,这个另一种解决思路就是安装或者更新自己的证书,操作如下

yum install -y ca-certificates

这个时候重新访问Tsinghua,下载mysql的压缩包,结果如下

[root@mysql-test ~]# wget https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-5.7/mysql-boost-5.7.38.tar.gz
--2022-07-05 17:51:45--  https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL-5.7/mysql-boost-5.7.38.tar.gz
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52973240 (51M) [application/octet-stream]
Saving to: ‘mysql-boost-5.7.38.tar.gz’

100%[======================================================================>] 52,973,240   590KB/s   in 52s    

2022-07-05 17:52:37 (995 KB/s) - ‘mysql-boost-5.7.38.tar.gz’ saved [52973240/52973240]

[root@mysql-test ~]# 
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值