How To Install certbot on Ubuntu 20.04
Introduction
In this tutorial we learn how to install certbot
on Ubuntu 20.04.
What is certbot
certbot is:
The objective of Certbot, Let’s Encrypt, and the ACME (Automated Certificate Management Environment) protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server.
This agent is used to:
- Automatically prove to the Let’s Encrypt CA that you control the website
- Obtain a browser-trusted certificate and set it up on your web server
- Keep track of when your certificate is going to expire, and renew it
- Help you revoke the certificate if that ever becomes necessary.
This package contains the main application, including the standalone and the manual authenticators.
Package: certbot Architecture: all Version: 0.40.0-1 Priority: extra Section: universe/web Source: python-certbot Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Let’s Encrypt [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 50 Provides: letsencrypt Depends: python3-certbot (= 0.40.0-1), python3:any Suggests: python3-certbot-apache, python3-certbot-nginx, python-certbot-doc Breaks: letsencrypt (<= 0.6.0) Replaces: letsencrypt Filename: pool/universe/p/python-certbot/certbot_0.40.0-1_all.deb Size: 17872 MD5sum: c0f63114bad249dfea2b718582c4d47f SHA1: 2a313bb204b6c30128d32d8740d5c5bcf475c575 SHA256: 63421abd142f53b3913faf838cde6e76ea83ef0d95ec83ebc53047ceb10bd0c2 Homepage: https://certbot.eff.org/ Description-en: automatically configure HTTPS using Let’s Encrypt The objective of Certbot, Let’s Encrypt, and the ACME (Automated Certificate Management Environment) protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server.
This agent is used to:
- Automatically prove to the Let’s Encrypt CA that you control the website
- Obtain a browser-trusted certificate and set it up on your web server
- Keep track of when your certificate is going to expire, and renew it
- Help you revoke the certificate if that ever becomes necessary.
This package contains the main application, including the standalone and the manual authenticators.
There are three methods to install certbot
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install certbot Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install certbot
using apt-get
by running the following command:
sudo apt-get -y install certbot
Install certbot Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install certbot
using apt
by running the following command:
sudo apt -y install certbot
Install certbot Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install certbot
using aptitude
by running the following command:
sudo aptitude -y install certbot
How To Uninstall certbot on Ubuntu 20.04
To uninstall only the certbot
package we can use the following command:
sudo apt-get remove certbot
Uninstall certbot And Its Dependencies
To uninstall certbot
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove certbot
Remove certbot Configurations and Data
To remove certbot
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge certbot
Remove certbot configuration, data, and all of its dependencies
We can use the following command to remove certbot
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge certbot
References
Summary
In this tutorial we learn how to install certbot
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.