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-nginx | Debian/Ubuntu 源安装,含 Nginx 插件 | |
yum install certbot python3-certbot-nginx | RHEL/CentOS 系安装 | |
pip install certbot certbot-nginx | pip 安装,注意与其他 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.com | Apache 一键申请并配置 | |
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 --nginx | run 是默认子命令,等价于不写子命令 | |
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-challenge | webroot 目录必须存在且可写 | |
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.com | AWS Route53 插件,凭据走 IAM 角色或环境变量 | |
certbot certonly -a dns-google --dns-google-credentials service-account.json -d example.com | Google Cloud DNS 插件 | |
certbot certonly -a dns-aliyun --dns-aliyun-credentials ~/.secrets/aliyun.ini -d example.com | 阿里云 DNS 第三方插件,国内环境常用 | |
--dns-cloudflare-propagation-seconds 30 | DNS 生效慢时延长等待,避免验证时记录还没同步 | |
--manual --preferred-challenges dns | 手工加 TXT 记录,适合无 API 权限的域名 | |
chmod 600 ~/.secrets/cloudflare.ini | DNS 凭据文件必须收紧权限,否则 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-renew | cron 中禁用随机延迟,便于对齐维护窗口 | |
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-renew | cron 每天两次续期,避开业务高峰 | |
crontab -l | 检查是否已有重复的续期任务 | |
crontab -e | 编辑当前用户定时任务 | |
--deploy-hook /usr/local/bin/reload-nginx.sh | 用脚本文件代替内联命令,便于版本管理 | |
--renew-hook 已改名 deploy-hook | 老写法仍兼容,新配置统一用 deploy-hook | |
--disable-hook-validation | hook 含复杂管道时跳过校验,慎用 | |
--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:80 | standalone 容器必须发布 80 端口,否则验证不通 | |
--config-dir /data/letsencrypt --work-dir /data/lib --logs-dir /data/log | K8s/容器中把三个目录都挂到持久卷 | |
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: 404 | webroot 写错或伪静态把路径拦了 | |
Invalid response from ...: 403 | 目录权限不足或被 WAF 拦截 | |
DNS problem: NXDOMAIN looking up TXT for _acme-challenge | TXT 未生效或记录名写错,注意不带 *. 前缀 | |
DNS problem: SERVFAIL looking up | 权威 DNS 异常或解析超时,加大 propagation 秒数 | |
CAA record for example.com prevents issuance | CAA 未放行 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 IPv6 | standalone 撞端口,先停 Nginx 或用 --http-01-port | |
nginx: [emerg] cannot load certificate | 路径错误、权限不足或证书内容被截断 | |
urn:ietf:params:acme:error:unauthorized | 验证未通过的通用错误,翻上面的 Challenge 详情 | |
No valid ip addresses found for example.com | DNS 无 A/AAAA 记录或解析失败 | |
An unexpected error occurred: requests.exceptions.SSLError | 系统时间偏差过大或缺根证书,先校时再重试 | |
Hook command "..." returned error code 1 | deploy-hook 执行失败,续期整体记为失败,但证书通常已更新 | |
Certificate not yet due for renewal | 不是错误,说明还没到续期窗口 | |
no certificate found for the provided cert-name | 证书名写错,用 certbot certificates 核对 | |
ImportError: No module named acme | pip 版本冲突,改用 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 缓存证书 |
运维常用组合
certbot --nginx -d example.com -d www.example.com --email admin@example.com --agree-tos → 自动改写 443 → nginx -t → systemctl reload nginxmkdir .well-known/acme-challenge → curl 自检可访问 → certbot certonly --webroot -w /var/www/html -d example.com → 配置 fullchain/privkeypip install certbot-dns-cloudflare → 写 cloudflare.ini 并 chmod 600 → certbot certonly -a dns-cloudflare --dns-cloudflare-credentials cf.ini -d "*.example.com" -d example.comcli.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
相关工具
Linux命令速查
文件、文本、权限、进程、网络、磁盘、systemd与防火墙等 Linux 常用命令速查手册
Docker命令速查
镜像、容器、网络、数据卷、Compose、Swarm、清理与排障等 Docker 常用命令速查手册
Nginx命令速查
服务管理、配置指令、反向代理、HTTPS、限流缓存、日志排查等 Nginx 常用命令速查手册
K8S命令速查
集群上下文、Pod调试、工作负载、Service与Ingress、存储、权限、排障等 kubectl 常用命令速查手册
Windows CMD命令速查
文件目录、网络诊断、进程服务、系统信息、用户权限、注册表、批处理等 Windows CMD 常用命令速查手册
systemctl服务管理速查
服务启停、开机自启、unit文件编写、日志查看、定时器、依赖分析与排障等 systemctl 命令速查手册
关于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 限流与验证失败定位,以及运维与安全工程师面试复习。