certbot certonly --nginx -d example.com

Category: Web Servers & Proxies

certbot certonly --nginx -d example.com

Obtain a certificate without changing nginx config

Uses the nginx plugin only to pass the HTTP-01 challenge, then saves the certificate to /etc/letsencrypt/live/example.com without touching your server config. You wire the cert paths into the vhost yourself. Use --nginx without certonly to have certbot edit the config for you.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.