Skip to content
BENIBIX Learn

Certbot

Infrastructure🌍 Web Serving & NginxTLS Certificates

Also known as certbot renew, EFF Certbot

A free tool that gets certificates from Let's Encrypt. It renews them too.

Think of it like

It is like a helper who goes to the passport office for you. He goes back before the old one runs out.

Example

Jack types one command. Certbot gets a certificate for example.com, adds it to his Nginx settings and turns on HTTPS.

Why it matters

It turns HTTPS into a job of a few minutes. Its timer keeps certificates from running out.

Definition

Certbot is a free tool that gets TLS certificates from Let's Encrypt and keeps them renewed. It proves to Let's Encrypt that you control the domain. Then it saves the certificate and can set up Nginx or Apache to use it. Most installs also add a timer that checks for renewal on its own. It only renews a certificate when it is close to running out.

Example code

bash
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run
The first line gets a certificate and sets up Nginx. The second tests that renewal will work.
Certbot is the helper on the server. It asks for the certificate and asks again before it runs out.

Common mistake

Never testing renewal. Run certbot renew --dry-run once, so you know the timer will work.

Key takeaways

  1. 1
    Gets it. Proves the domain and fetches it.
  2. 2
    Installs it. Can update Nginx or Apache.
  3. 3
    Renews it. A timer keeps it fresh.

Compare