Be aware that SSL certificates expire. You can run the following command to view the expiration dates of all certificates issued to your server
sudo ./certbot-auto certificates
certbot SSL certificates are usually issued for only 90 days, at which point they must be renewed or they’ll become invalid and you site will break. We’ll setup a cron job to automatically run certbot-auto’s certificate renewal program once per week. You can read more about the certbot-auto “renew” command in the Certbot Instructions
Then add this row to your cron table
0 12 * * 6 sudo /home/ec2-user/certbot-auto renew
And now you’re set! Your site is running over HTTPS and certbot-auto will automatically renew your SSL certificate for you on an as-needed basis.