EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server
open sourceApache-2.0self-hostablefree
Certbot is the Electronic Frontier Foundation's command-line ACME client: you run it on your web server, and it gets free domain-validated certificates from Let's Encrypt (or from any other ACME CA given with --server), installs them and renews them on a schedule. Its Apache and nginx plugins edit the server's configuration and can add an HTTP-to-HTTPS redirect, the webroot, standalone and manual plugins only obtain the certificate, and separately installed DNS plugins (Cloudflare, Route 53, Google Cloud DNS, DigitalOcean, RFC 2136 and others) answer dns-01 challenges, which wildcard certificates need; the docs list about 50 more third-party plugins. A systemd timer or cron job runs certbot renew with pre, post and deploy hooks, and it supports ACME Renewal Information, certificate profiles, External Account Binding and IP address certificates. It's written in Python under Apache-2.0 and installed mainly as a snap, with pip or as a Docker image.
Ways to install
App stores
Package managers
Problems it solves
- get a free HTTPS certificate for my website running on nginx on a Linux server
- my Let's Encrypt certificate expired because I forgot to renew it by hand
- renew TLS certificates automatically every couple of months without logging in to the server
- turn on HTTPS for an Apache site and redirect all HTTP traffic to it
- issue a wildcard certificate for *.example.com using my DNS provider's API
- get a certificate for a server that isn't reachable from the internet by proving control through DNS
- reload my web server or copy the new certificate to other services after each renewal
- get a TLS certificate for a mail server or another service with no web server, using a temporary listener on port 80
- request certificates from our company's internal ACME CA instead of Let's Encrypt
- use a commercial CA's ACME endpoint that needs external account binding credentials
- get a certificate for a bare IP address instead of a domain name
- revoke a TLS certificate whose private key leaked
- get HTTPS certificates from a Docker container without installing Python on the host
Features
- obtains certificates from Let's Encrypt or any ACME-compliant CA (--server)
- Apache 2.4+ and nginx plugins that install certificates and edit the server configuration
- optional HTTP-to-HTTPS redirect
- webroot, standalone and manual authenticators
- DNS plugins for Cloudflare, DigitalOcean, DNSimple, DNS Made Easy, Gehirn, Google Cloud DNS, Linode, LuaDNS, NS1, OVH, RFC 2136, Route 53 and Sakura Cloud
- about 50 third-party plugins listed in the docs (DNS providers, HAProxy, Proxmox and others)
- wildcard certificates through dns-01 validation
- automatic renewal with certbot renew from a systemd timer or cron job
- pre, post and deploy hooks on the command line or in renewal-hooks directories
- ACME Renewal Information (ARI) for CA-suggested renewal times
View 7 more
- certificate profiles with --preferred-profile and --required-profile
- External Account Binding (EAB) for CAs that require it
- IP address certificates with the standalone, manual and webroot plugins
- ECDSA (default) and RSA private keys, generated locally
- certificate revocation
- configuration changes are logged and can be reverted
- snap, Docker images (certbot/certbot and one per DNS plugin) and pip
Limitations
- Has no Windows installer: EFF stopped publishing its beta Windows installer with Certbot 2.10.0 in April 20244
- Doesn't get extended validation (EV) certificates: it gets domain-validated (DV) certificates56
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Certbot does.
- cert-manager Cloud native certificate management
- dehydrated letsencrypt/acme client implemented as a shell-script – just add water
- win-acme A simple ACMEv2 client for Windows (for use with Let's Encrypt et al.)
- acme.sh A pure Unix shell script ACME client for SSL / TLS certificate automation
- lego ACME client and library for Let's Encrypt and other ACME CAs written in Go
- Nginx UI Yet another WebUI for Nginx
