大网数据广告活动
Linux 与通用命令

certbot · 常用命令示例

· 52CE 我爱测

The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. > Successor to `letsencrypt`. > More information: <https://eff-certbot.readthedocs.io/en/latest/using.html>.

certbot

The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. Successor to letsencrypt. More information: https://eff-certbot.readthedocs.io/en/latest/using.html.

  • Obtain a new certificate via webroot authorization, but do not install it automatically:

sudo certbot certonly --webroot

  • Obtain a new certificate via nginx authorization, installing the new certificate automatically:

sudo certbot --nginx

  • Obtain a new certificate via apache authorization, installing the new certificate automatically:

sudo certbot --apache

  • Renew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards):

sudo certbot renew

  • Simulate the obtaining of a new certificate without actually saving any new certificates to disk:

sudo certbot --webroot --dry-run

  • Obtain an untrusted test certificate instead:

sudo certbot --webroot --test-cert

来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
tldr-pages contributors
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。