How to Install Let's Encrypt SSL in Apache on Rocky Linux 9

To install Let's Encrypt SSL in Apache on Rocky Linux 9, follow the steps below.

Step 1 : Ensure the domain is configured in DNS for verification.

Step 2 : Update your system using the following command:

Step 3 : Install Certbot and the Apache plugin for Certbot:

Step 4 : Create a configuration file for your domain (e.g., example.devtutorial.io):

Add the following lines, replacing "example.devtutorial.io" with your domain:

Step 5 : Create the directory for your domain and an index.html file:

Add some content to index.html.

Step 6 : Restart Apache:

Step 7 : Obtain an SSL certificate using Certbot:

- Enter your email address.

- Agree to the terms of service by entering "y".

- Share your email address by entering "y".

- Wait for Certbot to complete successfully.

Step 8 : Test the certificate renewal process:

Step 9 : Visit your domain in a web browser to check the SSL installation.

Congratulations, you have successfully installed Let's Encrypt SSL in Apache on Rocky Linux 9.