Categories
Development Ubuntu 16.04 Server

How to Install a Free LetsEncrypt SSL Certificate on Ubuntu 16.04 Apache Server

Here are the terminal commands to set up a free LetsEncrypt SSL certificate on Ubuntu 16.04 Apache server.

First run these commands in terminal:

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache

Now you will be able to install multiple free LetsEncrypt SSL certificates by running the following terminal command for each of the domains on your server, replacing example.com with the domain you want an SSL certificate for.

sudo certbot –apache -d example.com -d www.example.com

If you want to force HTTPS then don’t forgot to update the .htaccess file for each website your want to force HTTPS on.

It’s also worth noting that when installing multiple LetsEncrypt SSL certificates on a server you may need to edit the following file manually to ensure each of the domains is included in this file. I’ve found when installing multiple LetsEncrypt SSL certificates on the same server it can overwrite the first entry in this file.

/etc/apache2/sites-available/000-default-le-ssl.config

Useful Resources

By Andy Corby

Hi, I'm Andy and I am a Digital Marketer and Full Stack Web Developer, with a BA (Honours) Business & Finance Degree (2:1) and 10+ Years Experience in Marketing and Development.

4 replies on “How to Install a Free LetsEncrypt SSL Certificate on Ubuntu 16.04 Apache Server”

Hey would you mind sharing which blog platform you’re working with?
I’m going to start my own blog soon but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems different then most blogs and
I’m looking for something completely unique.
P.S Sorry for being off-topic but I had to ask!

I just like the helpful info you provide to your articles.
I will bookmark your blog and check again here frequently.
I am moderately sure I will be told many new stuff proper right here!
Good luck for the following!

Remarkable! Its genuinely amazing paragraph, I have got
much clear idea concerning from this post.

Howdy! This is my first comment here so I just
wanted to give a quick shout out and say I really enjoy reading your blog posts.
Can you recommend any other blogs/websites/forums that cover the same topics?
Many thanks!

Leave a Reply

Your email address will not be published.

2 × five =