https://certbot.eff.org/#ubuntuxenial-apache

Prepare

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

sudo certbot –apache

sudo certbot renew –dry-run