使用Centos7出现证书错误
使用curl下载文件时出现curl: (60) Peer's Certificate has expired.
错误
由系统时间偏差造成的。
解决方法:同步系统时间
1
2
3
4
5
6
7
8
|
[root@localhost ~]# yum install ntp -y
[root@localhost ~]# date -R
Tue, 14 Apr 2020 04:59:22 +0800
[root@localhost ~]# ntpdate -u 0.centos.pool.ntp.org
21 May 16:38:14 ntpdate[26149]: step time server 185.255.55.20 offset 3238716.334095 sec
[root@localhost ~]# date -R
Thu, 21 May 2020 16:38:17 +0800
|