v1.0.0

Let's Encrypt

# Install Snap & Certbot

Install Snap service

sudo dnf install -y snapd

Enable and start Snap service

sudo systemctl enable --now snapd.socket

Create shortcut

sudo ln -s /var/lib/snapd/snap /snap

Install certbot

sudo snap install --classic certbot

Create shortcut

sudo ln -s /snap/bin/certbot /usr/bin/certbot

Install mod_ssl

sudo dnf install -y mod_ssl

Generate SSL

sudo openssl req -new -x509 -days 365 -nodes -out /etc/pki/tls/certs/localhost.crt -keyout /etc/pki/tls/private/localhost.key

Run Certbot

sudo certbot

Restart httpd service

sudo systemctl restart httpd

# Auto renew SSL

Create Crontab

sudo crontab -e

Crontab content

# Run at 3AM on the 1st of every month
0 3 1 * * /usr/bin/certbot renew --quiet && systemctl reload httpd