Everything worked well and I also created the renew script which was scheduled to renew on 1st of May, but unfortunately it didn’t auto-renew. After digging deep I found that there is a another crontab under the user “bitnami” which was empty.
Could this be the reason it was not renewed? Would you suggest that I should add the crontab to both these locations?
No I used sudo to execute that file, so I reckon it should have worked? Unless letsencrypt decided not to renew the certificates? Here is the certificates I have in the origin. So it was last renewed by the script on April 11, but I made the script so that it auto-renews via crontab.
I believe Lego (the client you used) will renew the certificate a bit longer… It should renew around 60 days after the previous one is issued.
The command renew is intended for people to use in crontab or automated fashion, so they can set it to run once per day and it’ll check if a certificate need to renew.
By the way, you should consider running the crontab as Bitnami user, and check the file permission (to Bitnami user/group).