Let's Encrypt is a non-profit certificate authority run by Internet Security Research Group that provides X.509 certificates for Transport Layer Security encryption at no charge. In this article, we are going to learn how to install Let's Encrypt SSL on Rocky Linux 8. So, let’s get started.
Checkout the Let's Encrypt SSL Project Here.
Get started with $5 VPS from CrownCloud. Check our latest offers : CrownCloud VPS [ 24x7 In-House Customer Support ]
A system with Rocky Linux 8 installed and running.
rootaccess to the system.
- LEMP Stack installed and running, for this, you can refer to one of our guides on installing the LEMP Stack (Nginx, MariaDB, and PHP).
Once you're all set, we'll proceed with Let's Encrypt SSL installation and configuration.
Let's issue an SSL certificate for the domain. For this, we will need the EPEL repository and the mod_ssl package on Rocky Linux 8 operating system.
Update and install EPEL repository and the mod_ssl package on the system using the below command:
dnf install epel-release mod_ssl -y
Next, we will install the certbot client which is used to create Let's Encrypt certificates:
dnf install python3-certbot-nginx -y
Install SSL Certificate
Use the certbot command to issue a Let's Encrypt certificate. Replace
email@example.com with your domain name and email :
certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email firstname.lastname@example.org -d dev1.domainhere.info
SSL certificates are valid for 90 days. The renewal process is now automated, you do not have to renew this manually.
firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload
Restart apache to avoid getting error messages.
systemctl restart nginx
Now you have successfully installed Let's Encrypt SSL with LEMP Stack on Rocky Linux 8.