Infolinks

Breaking

Adsense

Tuesday, January 8, 2019

Installing Certbot in Apache on Ubuntu 14.04 (Trusty) Free SSL


Prerequisites

Apache should be install in your system. Check link here on How to Install Apache in Ubuntu 14.04/16.04/18.04

Certbot Installation

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache 

Run certbot

sudo certbot --apache

Enter Email Address


Press A to agree and proceed.



Press Y for Yes and proceed.




Enter the domain that you already pointed to the server's IP. Example, mydomain.com, or sub.domain.com.



Select 2 for force redirection. All non https will be redirected to https. 

After that, Congratulations message will appear if you have successfully installed the SSL using certbot.

You can visit this site to check for your site's expiration or ssl details. SSL Labs

To autorenew your SSL, add this to your cron.

crontab -e

Insert below line at the bottom

45 2 * * 6 certbot renew && /etc/init.d/apache2 restart

Installing Certbot in Apache on Ubuntu 14.04 (Trusty) Free SSL

No comments:

Post a Comment

Adbox