Last updated on

Let's Encrypt is a non-profit certificate authority run by Internet Security Research Group (ISRG) that provides X.509 certificates for Transport Layer Security (TLS) encryption at no charge. It provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. The certificate is valid for 90 days, during which renewal can take place at any time. Certbot automated the entire process and easy to install SSL certificates on both Apache and Nginx. In this article, we are going to explain how to obtain the free TLS/SSL certificate step by step on Ubuntu 18.04.


You should have access to an Ubuntu 18.04 server and created a non-root user account with sudo privileges. Both of the following DNS records set up for your server.

  • An A record with pointing to your server’s public IP address. 
  • An A record with pointing to your server’s public IP address.

Make sure you have an Nginx server block for your domain.

Install Certbot

Certbot is a free software tool to automate the Let's Encrypt certificates installation and enable the HTTPS on the websites. First, add the repository to Ubuntu repo using the below command: