I do not need a Load Balancer, and thus don’t want to pay for one.
How do I get the SSL certificate to automatically renew itself ? I do not want to have to SSH every 2 months to repeat all these steps…
`certbot renew` apparently does the trick. But when I run it, it says that the certificate isn’t yet set to expire. This leads me to think that it’s a simple command that I’ll have to run every 2 months, rather than a command which takes care of running the appropriate set of commands automatically every 2 months.
Based off your link I am assuming you are using the Lightsail “WordPress” instance. Which is running Bitnami. Refer to bitnami documentation https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/ bottom of the page has the guide to auto renew with cron job as above.
While you are there bitnami has great documentation and will pretty much have the answer to all of these type of questions.
at the end of the file, saved (Ctrl+O), and exited (Ctrl+X).
I was prompted to choose the destination of the crontab, and I pressed enter for the default value, which pointed to a “tmp” folder. This is what made me think I hadn’t done it properly.
Typing `contrab -l` from within where I created “renew-certificate”, says there are no crontab.
Not sure that its location matters (it varies by OS, but is often at /var/spool/cron/crontabs/root).
What happens when you type “sudo crontab -e”? Can you see the cron job? It will display a path at the top like it’s in a tmp file, but that’s not something you need to remember - it’s accessed by the “crontab -e” command, not the path.
To see if it’s working, add a log file, and change the cron runtime to something soon, like