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
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
One Reply to “How to get SSL/HTTPS for your website on CentOS 7”