How to setup a Free SSL in Apache Ubuntu 20.04

Enabling stable conversation to your Apache net server is one of the first matters which you ought to do even as placing it up. This does now no longer ought to value a fortune. As a count of fact, you could truely acquire SSL/TLS certificate from Let’s Encrypt and also you do now no longer ought to pay anything. Let’s Encrypt is a nonprofit initiative (courtesy: Internet Security Research Group) that pursuits to offer loose virtual certificate to allow HTTPS for web sites. In this tutorial, we are able to display you a way to allow HTTPS for Apache2 hosted web sites jogging on Ubuntu 20.04.


  • Apache2 hosted internet site running on Ubuntu 20.04
  • A user account with sudo capabilities

Install Certbot Snap

Put simply, snaps are self-contained apps that could run on more than one Linux distributions. The Certbot snap is a tool that automates the venture of acquiring loose SSL/TLS certificate from Let’s Encrypt. You handiest want to run the Certbot device as soon as and you’ll revel in loose SSL/TLS certificate forever. Snap comes pre-mounted on Ubuntu 20.04. Firstly, run the instructions beneath to replace snapd that’s a historical past system that manages snaps.

$ sudo snap install core
$ sudo snap refresh core

If applicable, run the subsequent command to dispose of any current certbot apps which can also additionally were formerly hooked up the use of the apt or apt-get utility. This is to keep away from conflicts.

$ sudo apt remove certbot

After that, the Certbot snap may be without difficulty hooked up with the command below.

$ sudo snap install --classic certbot

To make sure that the certbot command works properly, create a symbolic hyperlink as follows.

$ sudo ln -s /snap/bin/certbot /usr/bin/certbot

Install Certificates from Let’s Encrypt

And right here comes the high-quality part. When you run the simple command below, you may get a certificates from Let’s Encrypt. In addition, Certbot will mechanically replace your Apache configuration to permit HTTPS on your websites.

$ sudo certbot --apache

Once executed, you’ll be requested to offer primary statistics together with your e mail cope with in which certificates renewal notices have to be despatched to. Most importantly, certbot will ask you to select the domains for that you would really like to permit HTTPS.

After the Certbot device runs successfully, a message can be displayed indicating that HTTPS become enabled on your detailed domains.

Run the following command and you may see that certbot routinely created SSL configuration documents accordingly.

$ sudo ls /etc/apache2/sites-available

To take a look at the SSL configuration, go to your website in a web browser. If you notice a lock icon, the whole thing is in order.

Also Read: How to find when a Linux file is created (Super Geeky Stuff)

How to create your own Minecraft Server

How to setup PhpPgAdmin in CentOS

How to Renew Let’s Encrypt Certificates

Your certificate could be saved in /etc/letsencrypt/live/ Certbot will robotically renew your certificate earlier than they expire. Nevertheless, you could run the subsequent command to check the automated renewal process.

$ sudo certbot renew --dry-run


In this guide, we confirmed the way to stable Apache with unfastened SSL/TLS certificate from Let’s Encrypt on Ubuntu 20.04. By the use of certbot, you could rest confident that HTTPS will continually be enabled to your web sites as you do now no longer even must fear approximately guide renewals.


free ssl certificate, free ssl, free ssl cert, let’s encrypt ssl, lets encrypt ssl, free ssl certificate generator, free ssl certificate for website, free certificate authority, free certificate https,free ssl certificate 1 year, generate free certificate