# Certbot

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

**Field:** Infrastructure  
**Category:** Web Serving & Nginx  
**Also known as:** certbot renew, EFF Certbot

## 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.

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

- **Gets it.** Proves the domain and fetches it.
- **Installs it.** Can update Nginx or Apache.
- **Renews it.** A timer keeps it fresh.

## Related terms

- [Let's Encrypt](https://learn.benibix.com/term/infrastructure/lets-encrypt)
- [TLS Certificate](https://learn.benibix.com/term/infrastructure/tls-certificate)
- [Nginx](https://learn.benibix.com/term/infrastructure/nginx)
- [Certificate Authority (CA)](https://learn.benibix.com/term/infrastructure/certificate-authority)

## Told apart from

- [Let's Encrypt vs Certbot](https://learn.benibix.com/compare/lets-encrypt-vs-certbot): People think Certbot is Let's Encrypt, and it is not. Let's Encrypt is the free authority that checks your domain and signs the file. Certbot is a tool on your server. It asks Let's Encrypt for the file, puts it in place and renews it. Other tools can talk to Let's Encrypt too.

![On a web server, Certbot asks Let's Encrypt for a certificate. Let's Encrypt checks that the server controls the domain, then signs the certificate. A browser that visits the site checks that signature against the list of certificate authorities it already trusts, and shows the lock.](https://learn.benibix.com/diagrams/inf2-certificates.svg)

---

Source: https://learn.benibix.com/term/infrastructure/certbot
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
