系统学习 Linux 学习路径:从文件与进程到排障与安全

certbot

Let's Encrypt 证书申请与续期客户端

补充说明

certbot 通过 HTTP-01/DNS-01 等方式申请和续期 TLS 证书。生产环境要区分 staging/production,避免触发速率限制。

常用示例

certbot certonly --standalone -d example.com
certbot certonly --webroot -w /var/www/html -d example.com
certbot renew --dry-run
certbot certificates

挑战方式与取舍

易错点与排错

相关命令

参考链接

读完自测

合上页面,先回答,再展开对照。

  1. 为什么建议先用 staging/dry-run?
  2. HTTP-01 和 DNS-01 的前提分别是什么?
  3. 证书续期后还要做什么?
答案
  1. 避免在生产环境反复失败触发限流。
  2. HTTP-01 需要 80 端口可达;DNS-01 需要 DNS API 凭据。
  3. 确认 timer/cron 正常,并 reload Web 服务器让新证书生效。
微信小程序码:扫码打开命令速查小程序

小程序版

微信扫码,随时查命令