Certbot is an command line utility for managing Let’s Encrypt SSL certificates on a Linux system. It allows you to request a new SSL certificate, do the authorization and configure your web server for SSL settings. It also helps you to renew certificates issued by the Let’s Encrypt certificate authority.
This tutorial help you to install Let’s Encrypt client on Ubuntu 20.04 LTS Linux system.
You must fulfill the followings:
Certbot is a tool to obtain certificates from Let’s Encrypt and configure on your web server. Snap package is the easist way for installing certbot on Ubuntu system.
Open a terminal and execute below command to install certbot:
sudo snap install --classic certbot
Now, You can request SSL certificates from Let’s encrypt based on the web server.
sudo certbot --apache
sudo certbot --nginx
This command will ask you for domain name and document root for the domain.
sudo certbot certonly --webroot
sudo certbot certonly --standalone
In all of the above cases, the domain must be pointed to your server from dns. Also insure that /.well-known/acme-challenge are served by the webserver.
Once the SSL certificate is installed on the web server, visit https://your-domain.com/ in a web browser and look for the SSL lock icon in the URL bar. You can also do a security scan for the SSL setup on https://www.ssllabs.com/ssltest/.
Let’s encrypt certificates are issues for 3 months only. You can renew certificate before 30 days of expiry. Certbot allows you a hassle free renewal just by running a single command.
Run the below command to renew all the certificates on that system.
sudo certbot renew
You can also run a dry run without actual renewal. This will help you to test if SSL renewal perform well.
sudo certbot renew --dry-run
In this tutorial, you have learned to install certbot on Ubuntu system. Also helped you to create new certificates for your web servers.
The post How to Setup Let’s Encrypt (Certbot) on Ubuntu 20.04 appeared first on TecAdmin.
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…
One of my favourite authors, Douglas Adams, once said that “we are stuck with technology…