Certbot Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS
certbot
Maintainer: Debian Let's Encrypt
Email: [email protected] .
Website: https://certbot.eff.org/
Section: web
Install certbot
-
Debian
apt-get install certbotClick to copy -
Ubuntu
apt-get install certbotClick to copy -
Alpine OS
apk add certbotClick to copy -
Arch Linux
pacman -S certbotClick to copy -
Kali Linux
apt-get install certbotClick to copy -
Fedora
dnf install certbotClick to copy -
Raspbian
apt-get install certbotClick to copy -
macOS
brew install certbotClick to copy
The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. Successor to `letsencrypt`.
How to use certbot?
Below are few example commands for certbot that you can use in the terminal.
Obtain a new certificate via webroot authorization, but do not install it automatically:sudo certbot certonly --webroot --webroot-path path/to/webroot --domain subdomain.example.comClick to copyObtain a new certificate via nginx authorization, installing the new certificate automatically:sudo certbot --nginx --domain subdomain.example.comClick to copyObtain a new certificate via apache authorization, installing the new certificate automatically:sudo certbot --apache --domain subdomain.example.comClick to copyRenew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards):sudo certbot renewClick to copySimulate the obtaining of a new certificate, but don't actually save any new certificates to disk:sudo certbot --webroot --webroot-path path/to/webroot --domain subdomain.example.com --dry-runClick to copyObtain an untrusted test certificate instead:sudo certbot --webroot --webroot-path path/to/webroot --domain subdomain.example.com --test-certClick to copy
To install the latest version of certbot in your favorite operating system just copy the certbot installation command from above and paste it into terminal. It will download and install the latest version of certbot 2026 package in your OS.




