To install Let's Encrypt SSL in Nginx on Fedora 40, follow the steps below:
Step 1 : Ensure the domain has DNS records set up for verification.
Step 2 : Update your system:
Step 3 : Install Certbot and python3-certbot-nginx:
Step 4 : Create a configuration file for your domain:
Add the following configuration details:
Step 5 : Create a directory for your domain and an index.html file:
Add some content to the index.html file.
Step 6 : Test your Nginx configuration:
Step 7 : Restart Nginx to apply the changes:
Step 8 : Obtain SSL certificate:
- Enter your email address when prompted.
- Agree to the terms of service by typing 'y'.
- Choose whether to share your email address for updates and security notices by typing 'y'.
- Once successful, you'll receive a confirmation message.
Step 9 : Test certificate renewal:
Step 10 : Visit your domain to check if SSL is correctly installed and working.
Congratulations! You have successfully installed Let's Encrypt SSL in Nginx on Fedora 40.