How to Install Let's Encrypt SSL in Nginx on Fedora 39

To install Let's Encrypt SSL on Nginx in Fedora 39.

Step 1 : Ensure that the domain has DNS records set up for verification.

Step 2 : Update your system:

Step 3 : Install Certbot and the Nginx plugin:

Step 4 : Create a configuration file for your domain (e.g., example.devtutorial.io) and add the necessary configurations:

Add configurations for your domain:

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

Add some content to index.html.

Step 6 : Test the Nginx configuration:

Step 7 : Restart Nginx:

Step 8 : Obtain SSL certificate:

Follow the prompts:

- Enter your email address.

- Agree to the terms of service by typing 'y'.

- Share your email address with the Electronic Frontier Foundation if you wish.

- You should see a success message.

Step 9 : Test certificate renewal:

Step 10 : Visit your domain to check the results.

Congratulations, you have successfully installed Let's Encrypt SSL on Nginx in Fedora 39 for your domain example.devtutorial.io.