Nginx with Let’s Encrypt SSL Manual Setup Let’s Encrypt SSL on Ubuntu

This tutorial will help you to install Let’s encrypt client on Ubuntu system. Also issue a free ssl certificate and configure with Apache server.

Step 1 – Prerequisites

Before starting work on this task, I assume you already have:

Running Ubuntu system with sudo privileges shell access. A domain name registered and pointed to your server’s public IP address. For this tutorial, we use and, which is pointed to our server. Running Apache2 server with VirtualHost configured for and for Port 80.

Step 2 – Install Let’s Encrypt Client

You can download the certbot-auto Let’s Encrypt client and save it in /usr/sbin directory. Use the following command to do it.

Step 3 – Issue SSL from Let’s Encrypt

Let’s Encrypt performs Domain Validation (DV) automatically with multiple challenges. Once the Certificate Authority (CA) verified the authenticity of your domain, SSL certificate will be issued. You don’t need to create VirtualHost for SSL/HTTPS, Let’s encrypt will create it. You only need to create VirtualHost for port 80 only. Above command will prompt for an email address, which is used for sending email alerts related to SSL renewal and expiration. Also, asks a few more questions. After completion, it will issue an SSL certificate and will also create a new VirtualHost configuration file on your system.

Step 4 – Configure SSL Auto Renew

At the end, configure the following job on your server crontab to auto-renew SSL certificate if required. You may like:

Apache – Redirect to HTTPS Nginx – Redirect to HTTPS


In this tutorial, you have learned to configure free ssl certificate using let’s encrypt on Apache server.