高频命令
高频命令
certbot certificates # 列出已管理证书与到期时间
certbot renew --dry-run # 预演全部续期
certbot renew --deploy-hook 'systemctl reload nginx'
certbot delete --cert-name example.com # 删除某证书
openssl x509 -in /etc/letsencrypt/live/example.com/fullchain.pem -noout -enddate| 自动续期 | 系统自带 systemd timer/cron(certbot renew) |
|---|---|
| 路径 | /etc/letsencrypt/live/<name>/ 下 cert.pem/chain/fullchain/privkey |
| 钩子 | --deploy-hook 用于重载服务 |
续期成功但没 reload 服务 = 服务仍用旧证书:务必配置 deploy hook 或改用一个共享证书路径。