Certbot

Certbot: certbot --nginx -d example.com — Linux

Obtain and configure a certificate through the Nginx plugin; replace the example domain.

Availability: Tool and version dependent; install separately where required.中文

Syntax

certbot --nginx -d example.com

Examples

Obtain and configure a certificate through the Nginx plugin; replace the example domain.

certbot --nginx -d example.com

Parameters, options and clauses

Option / clauseDescription
--nginxUse 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-tosAgree to the certificate authority terms.
--redirectConfigure HTTP traffic to redirect to HTTPS where supported.
--non-interactiveRun without interactive prompts; all required options must be supplied.
Safety note

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.

Official reference ↗Back to directory