Certbot is an easy-to-use automatic client that fetches and deploys SSL/TLS certificates for your webserver. Certbot was developed by EFF and others as a client for Let’s Encrypt and was previously known as “the official Let’s Encrypt client” or “the Let’s Encrypt Python client.” Certbot will also work with any other CAs that support the ACME protocol.

Just choose your webserver, e.g. Apache, Nginx or IIS, as well as your operating system. Here’s the instruction for Ubuntu 16.04 LTS.

<pre lang="bash">
$ 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

To install the certificate

<pre lang="bash">
sudo certbot --apache

To renew certificate

<pre lang="bash">
$ sudo certbot renew