Enable HTTPS on your website with EFF’s Certbot
By Waleed Bin Saad & Mouath Bahattab
Instructions
first enable the EPEL repository:
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ``` 2. enable the optional
```bash
sudo yum -y install yum-utils sudo yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional ``` 3. install Certbot
```bash
sudo yum -y install python2-certbot-apache ``` 4. virtual hosts replace “waleed0.me” with your domin
```bash
sudo nano /etc/httpd/conf.d/waleed0.me.conf
<VirtualHost *:80>
ServerAdmin admin@waleed0.me
DocumentRoot “/var/www/html/waleed0.me/”
ServerName waleed0.me
ServerAlias waleed0.me
ErrorLog “/var/log/httpd/waleed0.me-error_log”
CustomLog “/var/log/httpd/waleed0.me-access_log” combined
<Directory "/var/www/html/waleed0.me/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
```
```bash
sudo mkdir /var/www/html/waleed0.me
sudo chown apache:apache -R /var/www/html/waleed0.me/
```
Get Started
sudo certbot –apache ``` 6. move index.html
```bash
cd /var/www/html/ sudo mv index.html ./waleed0.me/ ```