Forrest logo
back to the certbot tool

certbot:tldr:80301

certbot: Obtain a new certificate via nginx authorization, installing the new certificate automatically.
$ sudo certbot --nginx --domain ${subdomain-example-com}
try on your machine

This command is using the Certbot tool with sudo privileges to obtain an SSL/TLS certificate using the nginx plugin for the specified domain/subdomain.

Let's break down the command:

  • sudo: This is a prefix for running a command with superuser (root) privileges. It allows you to perform administrative tasks.

  • certbot: This is the Certbot tool which is used for obtaining and managing SSL/TLS certificates.

  • --nginx: This is a flag that tells Certbot to use the Nginx plugin. The Nginx plugin automates the process of installing the certificate, configuring HTTPS settings, and reloading the Nginx server.

  • --domain: This is a flag followed by the specified domain/subdomain for which you want to obtain the SSL/TLS certificate. In this command, ${subdomain-example-com} is a placeholder for the actual domain/subdomain. You should replace it with the actual domain you want to obtain the certificate for.

By executing this command, Certbot will use the Nginx plugin to automatically obtain and install an SSL/TLS certificate for the specified domain/subdomain.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the certbot tool