GeekIt

Certbot命令速查

安装与账户、certonly 申请、验证插件、通配符 DNS-01、吊销删除、自动续期与 hook、文件路径与报错排查等 169 条命令

共 169 条命令 · 11 类场景 · 点击右侧图标可复制

命令 / 片段说明复制
certbot --version查看版本,2.x 起默认签发 ECDSA 证书
snap install --classic certbot官方推荐的安装方式,版本跟随上游
ln -s /snap/bin/certbot /usr/bin/certbot把 snap 版 certbot 放进 PATH
apt install certbot python3-certbot-nginxDebian/Ubuntu 源安装,含 Nginx 插件
yum install certbot python3-certbot-nginxRHEL/CentOS 系安装
pip install certbot certbot-nginxpip 安装,注意与其他 Python 包冲突
python3 -m venv /opt/certbot && /opt/certbot/bin/pip install certbot虚拟环境安装,避免污染系统 Python
certbot plugins列出已安装插件,确认 nginx/dns 插件是否可用
certbot --help all查看全部子命令与参数
certbot help certonly查看某个子命令的详细参数
certbot-auto 已停止维护老教程里的 certbot-auto 不要再用,改用 snap/pip
systemctl list-timers | grep certbot确认系统自带的续期定时器是否存在
which certbot && certbot --version排查多版本共存时实际执行的是哪个
命令 / 片段说明复制
certbot register --email admin@example.com --agree-tos --no-eff-email注册 ACME 账户,后续签发复用
certbot show_account查看当前账户 ID 与注册邮箱
certbot update_account --email new@example.com修改账户邮箱,到期提醒发到这里
certbot unregister注销账户,已签发证书不受影响但无法再续期
--non-interactive非交互模式,脚本与 CI 必加,等价于 -n
--agree-tos同意服务条款,非交互模式必须显式提供
--email admin@example.com指定联系邮箱,用于到期与吊销通知
--no-eff-email不订阅 EFF 邮件列表
--staging使用测试环境签发,不消耗正式配额(等价 --test-cert)
--server https://acme-v02.api.letsencrypt.org/directory显式指定 ACME 目录地址
--config-dir /etc/letsencrypt证书与账户存放目录,容器化常改
--work-dir /var/lib/letsencrypt临时工作目录
--logs-dir /var/log/letsencrypt日志目录,排障先看这里
--key-type ecdsa签发 ECDSA 证书,体积小、握手快
--elliptic-curve secp256r1指定曲线,兼容性最好的是 P-256
--rsa-key-size 4096需要 RSA 时指定长度,默认 2048
--must-staple在证书中写入 OCSP Must-Staple 扩展
-q静默模式,cron 中避免产生无意义输出
命令 / 片段说明复制
certbot certonly --standalone -d example.com -d www.example.com独立模式申请,会临时占用 80 端口
certbot certonly --webroot -w /var/www/html -d example.com网站已在跑时首选,只需能写入验证目录
certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com多域名共用一个 webroot
certbot certonly --webroot -w /var/www/a -d a.com -w /var/www/b -d b.com多站点多 webroot,按 -d 顺序对应
certbot certonly --nginx -d example.com借用 Nginx 配置完成验证,不改动站点配置
certbot --nginx -d example.com申请并自动改写 Nginx 配置、加 443 监听
certbot --apache -d example.comApache 一键申请并配置
certbot certonly --standalone -d example.com --staging正式申请前先用测试环境走通流程
certbot certonly --webroot -w /var/www/html -d example.com --dry-run演练验证流程,不真正签发
certbot certonly --nginx -d example.com --cert-name example-com自定义证书名,便于多环境区分
certbot certonly --nginx -d example.com -d www.example.com -d api.example.com一次申请多域名,证书名取第一个域名
certbot certonly --expand -d example.com -d www.example.com -d new.example.com为已有证书追加域名(新版本自动扩容)
certbot certonly --nginx -d example.com --preferred-challenges http-01指定验证方式,避免自动选到不支持的挑战
certbot certonly --standalone -d example.com --http-01-port 8080前面有反向代理时改验证端口
certbot certonly --nginx -d example.com --reuse-key续期时复用私钥,便于固定 HPKP/DANE 场景
certbot certonly --nginx -d example.com --allow-subset-of-names部分域名验证失败时仍为其余域名签发
certbot run -d example.com --nginxrun 是默认子命令,等价于不写子命令
certbot certonly --nginx -d example.com 2>&1 | tee /tmp/certbot.log保留完整输出,便于事后定位
命令 / 片段说明复制
HTTP-01 验证CA 访问 http://域名/.well-known/acme-challenge/,必须 80 端口可达
DNS-01 验证在 _acme-challenge 下加 TXT 记录,支持通配符,不要求 80 端口
TLS-ALPN-01 验证在 443 端口用特殊 ALPN 完成校验,需插件支持
mkdir -p /var/www/html/.well-known/acme-challengewebroot 目录必须存在且可写
echo ok > /var/www/html/.well-known/acme-challenge/test放测试文件,自检验证路径是否可访问
curl -I http://example.com/.well-known/acme-challenge/test外部能取到 200 才可能通过 HTTP-01
location ^~ /.well-known/acme-challenge/ { root /var/www/html; default_type text/plain; }Nginx 放行验证目录,避免被伪静态或跳转拦截
certbot plugins --text文本模式列出插件,脚本里可解析
pip install certbot-dns-cloudflare安装 Cloudflare DNS 插件
certbot certonly -a dns-cloudflare --dns-cloudflare-credentials ~/.secrets/cloudflare.ini -d example.com用 Cloudflare API 自动加 TXT 记录
certbot certonly -a dns-route53 -d example.comAWS Route53 插件,凭据走 IAM 角色或环境变量
certbot certonly -a dns-google --dns-google-credentials service-account.json -d example.comGoogle Cloud DNS 插件
certbot certonly -a dns-aliyun --dns-aliyun-credentials ~/.secrets/aliyun.ini -d example.com阿里云 DNS 第三方插件,国内环境常用
--dns-cloudflare-propagation-seconds 30DNS 生效慢时延长等待,避免验证时记录还没同步
--manual --preferred-challenges dns手工加 TXT 记录,适合无 API 权限的域名
chmod 600 ~/.secrets/cloudflare.iniDNS 凭据文件必须收紧权限,否则 certbot 会告警
命令 / 片段说明复制
certbot certonly --manual --preferred-challenges dns -d '*.example.com' -d example.com通配符必须用 DNS-01,泛域名与主域名一起签
certbot certonly --manual --preferred-challenges dns -d '*.example.com' --cert-name wildcard-example给通配符证书单独命名,便于区分管理
certbot certonly --manual --preferred-challenges dns --manual-auth-hook ./auth.sh --manual-cleanup-hook ./cleanup.sh -d "*.example.com"用脚本自动写/删 TXT 记录,实现无人值守
certbot certonly -a dns-cloudflare --dns-cloudflare-credentials cf.ini -d "*.example.com" -d example.com插件方式签发通配符,最省事
TXT 记录名:_acme-challenge.example.com通配符只校验主域名的 _acme-challenge,不再加 * 前缀
dig +short TXT _acme-challenge.example.com验证前自检 TXT 是否已生效
nslookup -type=TXT _acme-challenge.example.com 8.8.8.8换公共 DNS 查询,排除本地缓存影响
example.com. 300 IN CAA 0 issue "letsencrypt.org"域名有 CAA 时需放行 Let's Encrypt
dig CAA example.com检查 CAA 记录是否限制了签发机构
--manual-public-ip-logging-ok老版本手工模式的必须参数,新版本已移除,报未知参数删掉即可
certbot renew --cert-name wildcard-example --dry-run通配符续期前先演练,确认 hook 仍可用
*.example.com 只覆盖一级子域a.b.example.com 需要单独签发或用 *.* 不支持的方案
命令 / 片段说明复制
certbot certificates列出全部证书、证书名、域名与到期时间
certbot certificates --cert-name example.com只看指定证书的详情
certbot revoke --cert-name example.com --reason superseded按证书名吊销,superseded 表示已被替换
certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem --reason keycompromise私钥泄漏时按路径吊销,reason 便于审计
certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem --delete-after-revoke吊销后立即删除本地文件
certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem --no-delete-after-revoke保留本地文件,便于排查问题
certbot delete --cert-name example.com删除证书与续期配置,删除后不再自动续期
certbot delete --cert-name old.example.com清理测试或废弃证书,避免续期时报错
openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -dates -subject核对证书主题与有效期
openssl x509 -in /etc/letsencrypt/live/example.com/cert.pem -noout -ext subjectAltName确认 SAN 是否包含全部域名
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates对比线上实际生效的证书
grep -i "expire" /var/log/letsencrypt/letsencrypt.log从日志确认最近一次续期结果
ls -l /etc/letsencrypt/live/查看所有已签发证书目录
证书删除但站点 502/证书仍在Nginx 未 reload,或仍指向旧路径,重载后再看
命令 / 片段说明复制
certbot renew --dry-run续期演练,改配置后必做的一步
certbot renew续期全部临近到期的证书,未到期会自动跳过
certbot renew --cert-name example.com只续期指定证书,排障时避免影响其他站点
certbot renew --force-renewal强制重签,会消耗配额,非必要不用
certbot renew --deploy-hook "systemctl reload nginx"续期成功后重载服务,让新证书生效
certbot renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"standalone 模式续期需临时释放 80 端口
certbot renew --no-random-sleep-on-renewcron 中禁用随机延迟,便于对齐维护窗口
certbot renew -q静默续期,只输出错误
certbot renew --reuse-key续期复用原私钥,部分场景可减少证书更换影响
certbot renew --new-key强制换新私钥,密钥疑似泄漏时使用
certbot renew --key-type ecdsa --cert-name example.com把 RSA 证书切换为 ECDSA 后按新类型续期
Certificate not yet due for renewal正常提示:还没到续期时间(到期前 30 天)
certbot renew --deploy-hook "echo renewed $(date)"先用无害 hook 验证 hook 执行链路
certbot renew 只续期不签发新域名要加域名请重新执行 certonly -d 全部域名,不要用 renew
查看 /etc/letsencrypt/renewal/example.com.conf续期行为由该文件记录,手工改动容易出问题
命令 / 片段说明复制
systemctl status certbot.timer查看 systemd 定时器状态(snap/系统包自带)
systemctl enable --now certbot.timer启用自动续期定时器
systemctl start certbot.service立即执行一次续期任务
systemctl cat certbot.service查看 service 内容,确认调用的 certbot 路径
journalctl -u certbot.service -n 100 --no-pager查看定时任务执行日志
0 3,15 * * * /usr/bin/certbot renew -q --no-random-sleep-on-renewcron 每天两次续期,避开业务高峰
crontab -l检查是否已有重复的续期任务
crontab -e编辑当前用户定时任务
--deploy-hook /usr/local/bin/reload-nginx.sh用脚本文件代替内联命令,便于版本管理
--renew-hook 已改名 deploy-hook老写法仍兼容,新配置统一用 deploy-hook
--disable-hook-validationhook 含复杂管道时跳过校验,慎用
--no-directory-hooks不执行 /etc/letsencrypt/renewal-hooks 下的目录钩子
ls /etc/letsencrypt/renewal-hooks/{pre,deploy,post}/查看按目录约定生效的钩子脚本; 记得 chmod +x
hook 脚本返回非零会导致续期记为失败reload 命令写错是最常见的"续期失败"原因
命令 / 片段说明复制
/etc/letsencrypt/live/<域名>/fullchain.pem站点证书 + 中间证书,Nginx 的 ssl_certificate 用它
/etc/letsencrypt/live/<域名>/privkey.pem私钥,ssl_certificate_key 指向它
/etc/letsencrypt/live/<域名>/chain.pem仅中间证书,OCSP Stapling 的 ssl_trusted_certificate 用
/etc/letsencrypt/live/<域名>/cert.pem仅站点证书,一般不建议直接配置给 Nginx
/etc/letsencrypt/archive/<域名>/真实文件存放处,live 目录只是符号链接
/etc/letsencrypt/renewal/<域名>.conf续期配置,记录验证方式与插件参数
/var/log/letsencrypt/letsencrypt.log主日志,排障第一入口
ls -l /etc/letsencrypt/live/example.com/确认符号链接与文件属主
stat -c "%a %U:%G" /etc/letsencrypt/live/example.com/privkey.pem私钥默认 600 root,改属主前想清楚
install -m 640 -o root -g nginx /etc/letsencrypt/live/example.com/privkey.pem /etc/nginx/ssl/privkey.pem让 Nginx 以非 root 读取私钥的安全做法
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;Nginx 证书配置
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;Nginx 私钥配置
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;OCSP Stapling 需要它
ssl_stapling on; ssl_stapling_verify on;开启 OCSP Stapling,减少客户端校验开销
nginx -t && systemctl reload nginx改完配置先测再平滑重载
certbot certificates | grep -E "Certificate Name|Expiry"快速巡检所有证书到期时间
命令 / 片段说明复制
email = admin@example.com agree-tos = true no-eff-email = true key-type = ecdsa deploy-hook = systemctl reload nginx/etc/letsencrypt/cli.ini:把常用参数固化,命令行更短
certbot -c /path/to/cli.ini renew指定配置文件执行
docker run -it --rm --name certbot -v /etc/letsencrypt:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt certbot/certbot certonly --standalone -d example.com容器方式申请证书,注意端口映射
docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt -v /var/www/html:/var/www/html certbot/certbot renew --webroot -w /var/www/html容器方式续期,路径要与宿主机一致
docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt -v /var/log/letsencrypt:/var/log/letsencrypt certbot/certbot renew --dry-run容器内演练续期
-p 80:80standalone 容器必须发布 80 端口,否则验证不通
--config-dir /data/letsencrypt --work-dir /data/lib --logs-dir /data/logK8s/容器中把三个目录都挂到持久卷
kubectl create job --from=cronjob/certbot certbot-manual -n cert在 K8s 中手动触发一次续期 Job
kubectl logs job/certbot-manual -n cert查看 Job 输出定位失败原因
卷挂载后 fullchain 权限不对宿主机与容器 UID 不一致,证书读不到,检查属主
命令 / 片段说明复制
too many certificates already issued for exact set of domains同一组域名 5 份/周限流,测试务必用 --staging
too many failed authorizations recently验证失败 5 次/小时/账户/主机名,等 1 小时再试
too many registrations for this IP同 IP 账户注册超限(10 个/3 小时),复用已有账户
Timeout during connect (likely firewall problem)80 端口不可达,检查安全组、防火墙、CDN 回源
Invalid response from http://.../.well-known/acme-challenge/xxx: 404webroot 写错或伪静态把路径拦了
Invalid response from ...: 403目录权限不足或被 WAF 拦截
DNS problem: NXDOMAIN looking up TXT for _acme-challengeTXT 未生效或记录名写错,注意不带 *. 前缀
DNS problem: SERVFAIL looking up权威 DNS 异常或解析超时,加大 propagation 秒数
CAA record for example.com prevents issuanceCAA 未放行 letsencrypt.org,先改 DNS
Client with the currently selected authenticator does not support any combination of challenges通配符必须用 DNS-01,换成 --preferred-challenges dns
Problem binding to port 80: Could not bind to IPv4 or IPv6standalone 撞端口,先停 Nginx 或用 --http-01-port
nginx: [emerg] cannot load certificate路径错误、权限不足或证书内容被截断
urn:ietf:params:acme:error:unauthorized验证未通过的通用错误,翻上面的 Challenge 详情
No valid ip addresses found for example.comDNS 无 A/AAAA 记录或解析失败
An unexpected error occurred: requests.exceptions.SSLError系统时间偏差过大或缺根证书,先校时再重试
Hook command "..." returned error code 1deploy-hook 执行失败,续期整体记为失败,但证书通常已更新
Certificate not yet due for renewal不是错误,说明还没到续期窗口
no certificate found for the provided cert-name证书名写错,用 certbot certificates 核对
ImportError: No module named acmepip 版本冲突,改用 snap 或独立虚拟环境
PermissionError: /var/log/letsencrypt日志目录权限不足,修正属主或用 --logs-dir
nginx: duplicate listen options for ...certbot 重复写 443 配置,手工合并 listen 指令
certbot-auto is no longer supported迁移到 snap 或 pip 安装的 certbot
续期成功了但浏览器还是旧证书服务未 reload,或前面有 CDN/LB 缓存证书

运维常用组合

Nginx 站点首次上线certbot --nginx -d example.com -d www.example.com --email admin@example.com --agree-tos → 自动改写 443 → nginx -t → systemctl reload nginx
已有站点 webroot 申请mkdir .well-known/acme-challenge → curl 自检可访问 → certbot certonly --webroot -w /var/www/html -d example.com → 配置 fullchain/privkey
通配符 + Cloudflarepip install certbot-dns-cloudflare → 写 cloudflare.ini 并 chmod 600 → certbot certonly -a dns-cloudflare --dns-cloudflare-credentials cf.ini -d "*.example.com" -d example.com
续期自动化cli.ini 写 deploy-hook → certbot renew --dry-run 验证 → systemctl enable --now certbot.timer → 每月抽查 certbot certificates
容器化续期挂载 /etc/letsencrypt 与 webroot → 定时任务执行 docker run certbot/certbot renew --webroot -w ... → 成功后 reload 外层 Nginx
续期失败排查看 /var/log/letsencrypt/letsencrypt.log → certbot renew --cert-name x --dry-run → 检查 80 端口与 .well-known 访问 → 核对 renewal/*.conf 与 hook 权限

实战要点

1. 先 staging 再正式

任何新配置都用 --staging 或 --dry-run 走通一遍,正式环境一周只有 5 次配额

2. 有效期 90 天

certbot 在到期前 30 天自动续期,renew 只处理临近到期的证书

3. 通配符只能 DNS-01

*.example.com 无法用 HTTP-01 校验,必须能改 DNS 或使用 DNS 插件

4. Hook 失败等于续期失败

deploy-hook 返回非零会让 certbot 报失败,reload 命令要确保幂等可重跑

5. 别频繁 force-renewal

每强制重签一次都算一份配额,调试阶段很容易触发限流

6. 私钥最小权限

privkey.pem 保持 600 root,需要给 Nginx 用时复制并改属主,不要直接 chmod 644

共 169 条 Certbot 命令 · 示例中的域名、邮箱与路径请替换为实际环境

关于Certbot命令速查

在线 Certbot 命令速查手册,按安装与版本、账户注册、证书申请 certonly、验证插件 nginx/apache/webroot/standalone、通配符与 DNS-01、证书查看与吊销删除、自动续期 renew、hook 与 systemd timer、文件路径与权限、cli.ini 常用配置、性能与实战组合、常见报错与排查等 11 类场景整理 150 余条常用命令与配置片段,每条附中文说明与可直接复制的写法,支持关键词搜索、分类折叠和一键复制,打开网页即可查阅。涵盖 certbot --version 与 certificates 与 plugins/show_account 与 register/update_account/unregister、certonly 的 --nginx/--apache/--webroot -w/--standalone/--manual/--dns-cloudflare/--dns-route53 与 -d 多域名与 --cert-name 与 --expand 与 --staging/--dry-run 与 --agree-tos/--non-interactive/--email 与 --key-type ecdsa 与 --rsa-key-size 与 --must-staple 与 --preferred-challenges http-01/dns-01 与 --http-01-port 与 --manual-auth-hook/--manual-cleanup-hook 与 dns 通配符 *.example.com、renew 的 --dry-run/--force-renewal/--cert-name/--deploy-hook/--pre-hook/--post-hook/--no-random-sleep-on-renew 与 systemctl status certbot.timer 与 crontab 定时任务与 cli.ini 配置、revoke 的 --cert-path/--cert-name/--reason keycompromise/superseded 与 delete --cert-name 与 install/enhance --redirect/--hsts、/etc/letsencrypt/live|archive|renewal 目录与 fullchain.pem/privkey.pem/chain.pem 与 Nginx ssl_certificate 配置与私钥权限、Docker 运行 certbot/certbot 与 --config-dir/--work-dir/--logs-dir 自定义路径与 --server 切换 ACME 目录,以及 too many certificates already issued、too many failed authorizations、Timeout during connect、Invalid response from .well-known/acme-challenge、DNS problem NXDOMAIN、CAA record prevents issuance、Problem binding to port 80、Client with the currently selected authenticator does not support any combination of challenges、Certificate not yet due for renewal、nginx cannot load certificate、urn:ietf:params:acme:error:unauthorized、clock skew 等报错排查。适用于免费 HTTPS 证书申请与自动化续期、通配符证书签发、Nginx/Apache 一键配置、内网与容器化环境签发、证书轮换与到期巡检、ACME 限流与验证失败定位,以及运维与安全工程师面试复习。

核心能力

  • 涵盖 certbot --version 与 certificates 与 plugins/show_account 与 register/update_account/unregister、certonly 的 --nginx/--apache/--webroot -w/--standalone/--manual/--dns-cloudflare/--dns-route53 与 -d 多域名与 --cert-name 与 --expand 与 --staging/--dry-run 与 --agree-tos/--non-interactive/--email 与 --key-type ecdsa 与 --rsa-key-size 与 --must-staple 与 --preferred-challenges http-01/dns-01 与 --http-01-port 与 --manual-auth-hook/--manual-cleanup-hook 与 dns 通配符 *.example.com、renew 的 --dry-run/--force-renewal/--cert-name/--deploy-hook/--pre-hook/--post-hook/--no-random-sleep-on-renew 与 systemctl status certbot.timer 与 crontab 定时任务与 cli.ini 配置、revoke 的 --cert-path/--cert-name/--reason keycompromise/superseded 与 delete --cert-name 与 install/enhance --redirect/--hsts、/etc/letsencrypt/live|archive|renewal 目录与 fullchain.pem/privkey.pem/chain.pem 与 Nginx ssl_certificate 配置与私钥权限、Docker 运行 certbot/certbot 与 --config-dir/--work-dir/--logs-dir 自定义路径与 --server 切换 ACME 目录,以及 too many certificates already issued、too many failed authorizations、Timeout during connect、Invalid response from .well-known/acme-challenge、DNS problem NXDOMAIN、CAA record prevents issuance、Problem binding to port 80、Client with the currently selected authenticator does not support any combination of challenges、Certificate not yet due for renewal、nginx cannot load certificate、urn:ietf:params:acme:error:unauthorized、clock skew 等报错排查

适用场景

适用于免费 HTTPS 证书申请与自动化续期、通配符证书签发、Nginx/Apache 一键配置、内网与容器化环境签发、证书轮换与到期巡检、ACME 限流与验证失败定位,以及运维与安全工程师面试复习。Certbot命令速查全程在浏览器中完成,无需安装插件,可放心用于日常办公与排障。

常见问题

Certbot命令速查是免费的吗?需要注册或安装吗?
Certbot命令速查完全免费,无需注册、无需下载安装任何软件,用浏览器打开网页即可直接使用,也不限制使用次数。
Certbot命令速查支持哪些功能?
涵盖 certbot --version 与 certificates 与 plugins/show_account 与 register/update_account/unregister、certonly 的 --nginx/--apache/--webroot -w/--standalone/--manual/--dns-cloudflare/--dns-route53 与 -d 多域名与 --cert-name 与 --expand 与 --staging/--dry-run 与 --agree-tos/--non-interactive/--email 与 --key-type ecdsa 与 --rsa-key-size 与 --must-staple 与 --preferred-challenges http-01/dns-01 与 --http-01-port 与 --manual-auth-hook/--manual-cleanup-hook 与 dns 通配符 *.example.com、renew 的 --dry-run/--force-renewal/--cert-name/--deploy-hook/--pre-hook/--post-hook/--no-random-sleep-on-renew 与 systemctl status certbot.timer 与 crontab 定时任务与 cli.ini 配置、revoke 的 --cert-path/--cert-name/--reason keycompromise/superseded 与 delete --cert-name 与 install/enhance --redirect/--hsts、/etc/letsencrypt/live|archive|renewal 目录与 fullchain.pem/privkey.pem/chain.pem 与 Nginx ssl_certificate 配置与私钥权限、Docker 运行 certbot/certbot 与 --config-dir/--work-dir/--logs-dir 自定义路径与 --server 切换 ACME 目录,以及 too many certificates already issued、too many failed authorizations、Timeout during connect、Invalid response from .well-known/acme-challenge、DNS problem NXDOMAIN、CAA record prevents issuance、Problem binding to port 80、Client with the currently selected authenticator does not support any combination of challenges、Certificate not yet due for renewal、nginx cannot load certificate、urn:ietf:params:acme:error:unauthorized、clock skew 等报错排查。
Certbot命令速查适合哪些场景使用?
适用于免费 HTTPS 证书申请与自动化续期、通配符证书签发、Nginx/Apache 一键配置、内网与容器化环境签发、证书轮换与到期巡检、ACME 限流与验证失败定位,以及运维与安全工程师面试复习。