Obtain and configure a certificate through the Nginx plugin; replace the example domain.
certbot --nginx -d example.comObtain and configure a certificate through the Nginx plugin; replace the example domain.
certbot --nginx -d example.comObtain and configure a certificate through the Nginx plugin; replace the example domain.
certbot --nginx -d example.com| Option / clause | Description |
|---|---|
--nginx | Use the Nginx installer and authenticator plugin; it must be installed. |
-d, --domains <domain> | Specify domain names that resolve to this server. |
--email <address> | Set the account contact email. |
--agree-tos | Agree to the certificate authority terms. |
--redirect | Configure HTTP traffic to redirect to HTTPS where supported. |
--non-interactive | Run without interactive prompts; all required options must be supplied. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.