问题
使用国内清华大学源下载软件时提示:[SSL certificate problem: certificate is not yet valid]
[root@zbx-agent1 ~]$dnf install zabbix-agent
Rocky Linux 8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'appstream':
- Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://mirrors.ustc.edu.cn/rocky/8/AppStream/x86_64/os/repodata/repomd.xml [SSL certificate problem: certificate is not yet valid]
错误:为仓库 'appstream' 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决
查看服务器本地时间是否和现实时间存在时间差。
重启时间同步服务,同步时间完毕即可。
[root@zbx-agent1 ~]$systemctl restart chronyd.service