Learn How to Configure Let’s Encrypt Free SSL Certificate (Certbot) For Apache On Ubuntu 16.04 Or 18.04 LTS

Let’s Encrypt is a certificate authority that provides free SSL certificates that are just as secure as current paid certificates. In this guide we will configure an SSL certificate for Apache on Ubuntu. We recommend to view Part 1 as well.

26. Install Let’s Encrypt client Certbot. Run below mentioned commands.

sudo apt-get update && sudo apt-get install software-properties-common

sudo add-apt-repository universe && sudo add-apt-repository ppa:certbot/certbot

sudo apt-get update && sudo apt-get install certbot python-certbot-apache

sudo apachectl stop

27. Get an SSL Certificate. Run below mentioned command. Make sure you change example.com to your website’s domain name.

sudo letsencrypt –authenticator standalone –installer apache -d example.com,www.example.com

28. Follow the below mentioned instructions.

Enter an email address where you can be contacted in case of urgent renewal and security notices.

Press a and ENTER to agree to the Terms of Service.

Press n and ENTER to not share your email address with EFF

If you have multiple domains already configured on your server, you will see a list of them. For only one domain select option 1 if you don’t want to use the www. prefix in your website address, otherwise select option 2.

Press 2 and ENTER to redirect all traffic to HTTPS.

29. Start Apache. As we stopped it before.

sudo service apache2 start

sudo service apache2 restart

Now done with this part 2. In the next part we will learn how to install FTP server vsftpd on Ubuntu 16.04 Or 18.04 LTS. Do not forget to follow all steps correctly step by step. Click Here to see next part.