在打印窗口把「目标」选为「另存为 PDF」即可保存,页面已带 awsgood.com 版权水印。 返回原文

www.awsgood.com

certbot 自动申请与续期 Let's Encrypt 证书

2026-11-09 约 1 分钟

1. 安装

apt install certbot python3-certbot-nginx

2. 签发

certbot --nginx -d example.com -d www.example.com

3. 自动续期

certbot 会自动安装 systemd timer,手动验证:

certbot renew --dry-run

常见问题