How to get SSL/HTTPS for your website on CentOS 7

The very first time when I heard about getting https enabled for our websites I thought it was going to have to be some long tedious process that I'll never have enough stamina to complete. Turned out it's the complete opposite 🙂

So my dad found this website that I went through https://letsencrypt.org/ which explains quite well what it does and I found this website https://certbot.eff.org/ which had everything I needed to install a program that would give our websites the SSL certificates. So here it is, all I did.


Enabling RedHat repositories (Thanks to Centos they are available to us for free)

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

Installing cerbot

sudo yum install certbot python2-certbot-apache

Running cerbot

certbot --apache

The program will ask you to put in your email so they can notify you of important updates. Then if I'm not mistaking it will ask you which website(s) you want to enable SSL on if you have more than one and then it will ask you whether or not you want to redirect all HTTP requests to HTTPS. After that if there are no errors or some unusual thing, it will process some stuff and now you got a website with HTTPS!



All the commands are copied straight from the certbot webpage where it has all the instructions, and it seems to me they updated it as those instructions are different from what they were just a few days ago.

One Reply to “How to get SSL/HTTPS for your website on CentOS 7”

Leave a Reply

Your email address will not be published.