certbot is amazing tool to automate SSL certificates
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
https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache