How To Secure Nginx with Let’s Encrypt on Ubuntu 16.04 | 18.04 | 20.04

We should Let’s Encrypt is a Certificate Authority (CA) that gives a simple method to acquire and introduce free TLS/SSL declarations, along these lines empowering encoded HTTPS on web servers. It rearranges the procedure by giving a product customer, Certbot, that endeavors to mechanize most (if not the entirety) of the necessary advances. At present, the whole procedure of getting and introducing a declaration is completely mechanized on both Apache and Nginx.

In this post, We will install and configure Let’s Encrypt ssl using nginx Web Server.

Your domain must pointing with nginx Web server public IP, To verify domain pointing by using the command.

$ nslookup

You should get the your nginx server public ip, in my case i am using

Step 1: Update  System

You need to update the ubuntu current repository by using the command.

$ sudo apt-get update

Step 2: Install Certbot

You need to install Certbot tool that help you auto configure on nginx Web Server by using the command.

$ sudo apt install certbot python3-certbot-nginx -y

Step 3: Activation of SSL Certificate

You the following command for activation of your domain ssl certification.

$ sudo certbot --nginx -d -d

Its auto verify the domain and its will create all required files to configure in virtualhost ssl parameter, After installation and configuration, You will get the successful message, Now you can access with

How To Secure Nginx with Let’s Encrypt on Ubuntu 16.04 | 18.04 | 20.04

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top