Install required compontents for Let's Encrypt

# Step 1: Installing dependent modules
sudo yum install -y epel-release mod_ssl


# Step 2: Downloading the Let’s Encrypt client
sudo yum install -y python-certbot-apache


Create SSL certificate

certbot --apache -d example.com
certbot --apache -d example.com -d www.example.com