Description

Install CertBot to automatically generate Let's Encrypt SSL certificates in your server.
Make sure that you have opened the :443 port before you begin

You must have a LAMP stack installation in your server before you begin. See here how to install LAMP.

Debian Distros

The following steps have been tested on Ubuntu 16.04. Should work in any Debian distro.

Installation

The certbot repo is not available by default. You have to add it before continuing.

Add Repo

sudo add-apt-repository ppa:certbot/certbot

sudo apt-get update

Install certbot for Apache

sudo apt-get install python-certbot-apache

Enable the certbot for you domain

sudo certbot --apache -d domain.com

Make sure the certbot will automatically renew the certificate

sudo certbot renew --dry-run