代码速记 / 3 / 5 / 创建于 1年前
sudo yum install certbot python3-certbot-nginx
sudo certbot --nginx
输入电子邮件并同意条款,然后选择要配置站点的证书。
sudo certbot renew --dry-run
如果测试成功,添加定时任务,以便自动续订证书:
sudo crontab -e
在文件中添加:
0 0 * * * certbot renew
每天0点检查要到期的证书,并自动续订。
收藏了 :+1:
这个用过一两次,后面都是用 acme.sh/
按照官网 certbot.eff.org/ 配置后(snap 方式安装),不用 crontab 了,自己就自动执行续了
我要举报该,理由是:
推荐文章: