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
nginxauthorization, 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。离线整理了版式、链接和媒体显示。
