To access your instance using HTTPS through NGINX, you need to follow these steps:
Step 1 : Install the Let's Encrypt client, certbot
Step 2 : Request a certificate from Let's Encrypt
Step 3 : Enter an email address
Step 4 : Press A and ENTER to agree to the Terms of Service
Step 5 : Press N and ENTER
Step 6 : Select your choice then ENTER. (Press 2 and ENTER to redirect all traffic to HTTPS)
Step 7 : You’re done!
Step 8 : You can now go to https://example.com
Step 9 : Let's Encrypt's certificates are only valid for 90 days. Certbot will run twice a day and automatically renew any certificate that’s within thirty days of expiration. To test the renewal process, you can run: