This will create a certification file and send to free certification authority "https://certbot.eff.org" sponsored by linux foundation.
Following are for apache deployment on Ubuntu compatible.
For other configurations visit https://certbot.eff.org
sudo apt-get install python-letsencrypt-apache
sudo letsencrypt --apache