Letsencrypt with Amazon Linux 2 ( CentOS 7 )
Commands to Run
sudo yum update -y
sudo yum install amazon-linux-extras -y
sudo amazon-linux-extras enable php7.4
sudo yum install httpd mod_ssl -y
sudo yum install php php-cli php-mysqlnd php-pdo php-common -y
After that Enable EPEL
cd /tmp
wget -O epel.rpm –nv
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ./epel.rpm
Install Cerbot
sudo yum install certbot python2-certbot-apache
Request and install SSL certificate
sudo certbot –apache
centos 7