How to Setup Lets Encrypt SSL on Ubuntu 18.04


-> Ubuntu 18.04 should installed with sudo privileges shell access.
-> Domain name should registered and pointed to your ip address.

Update the repository package lists/available package lists,

apt update

Next we install the LetsEncrypt Client,

apt install certbot


update-alternatives: using /usr/bin/python3-pasteurize to provide /usr/bin/pasteurize (pasteurize) in auto mode
Processing triggers for man-db (2.8.3-2) ...
Setting up python3-josepy (1.1.0-1) ...
Setting up python3-tz (2018.3-2) ...
Setting up python-pyicu (1.9.8-0ubuntu1) ...
Setting up python3-parsedatetime (2.4-2) ...
Setting up python3-rfc3339 (1.0-4) ...
Setting up python3-zope.component (4.3.0-1) ...
Setting up python3-acme (0.22.2-1ubuntu0.1) ...
Setting up python3-certbot (0.23.0-1) ...
Setting up certbot (0.23.0-1) ...
Created symlink /etc/systemd/system/ → /lib/systemd/system/certbot.timer.

Generating the SSL Certificate

Replace the 2 values below, With your actual domain name,

certbot-auto certonly --standalone -d  -d

When you run the above command it will ask for your email address, which is used to send SSL certificate alerts and prompt for other permission.

Next Check SSL Certificate.

cd /etc/letsencrypt/live/domain name


cert.pem  chain.pem  fullchain.pem  privkey.pem  README

To renew your SSL certificate,

/usr/sbin/certbot-auto renew

Installation of Let's Encrypt SSL on Ubuntu is now complete!