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 with the domain you want an SSL certificate for.

sudo certbot –apache -d -d

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.


Useful Resources


By Andy Corby

Being quick to learn, I am a confident team member, who is responsible and easy to get on with; the kind of hardworking person who is always thinking ahead and using initiative.

Experience in a range of direct and digital marketing techniques. Google AdWords Certified and I hold a BA(Hons) Business & Finance degree (2:1).

Key skills include: Google AdWords PPC (aka Google Ads); search engine optimisation (SEO); LinkedIn lead generation; web design; user interface (UI) and user experience (UX) design; software development; server management; and development experience with: HTML, CSS, PHP, MySQL, JavaScript, JQuery, AJAX, BootStrap, PHPMyAdmin, PhantomJS, CasperJS, VPS/VPC(Ubuntu 16.04 LTS).

Special interest in maximising productivity through: agile working, productivity tools, levaging time, and automating set processes.

Leave a Reply

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

four × four =