centos在使用curl或者wget时可能会遇到了一个 SSL 证书错误:
Could not do request to updater server: SSL certificate problem: certificate has expired
联想到不久前的 Let’s Encrypt 根证书过期,所以我估计是服务器上的 ca 证书过期了,所以可以使用以下命令更新服务器上的 ca 证书
yum install ca-certificates
update-ca-trust force-enable
update-ca-trust extract
- https://manuals.gfi.com/en/kerio/connect/content/server-configuration/ssl-certificates/adding-trusted-root-certificates-to-the-server-1605.html
- https://curl.se/docs/caextract.html
IT火车![Linux easy-rsa制作证书[实测最简步骤]-IT火车](https://idc.birk.cn/wp-content/uploads/2024/02/5c9c04de835c4a4c8ceb13e457a0c4e2-220x150.gif)
最新评论