Every three months, my Let's Encrypt certificate expires, and my customers get an invalid https certificate.
So I recently placed the following cron task :
@weekly certbot renew --quiet && service nginx reload
From my understanding, when certbot renew
successfully update the certificate, it returns a success state (exit(0)), so the &&
is followed, and so nginx is reloaded.
Yes but it doesn't work. I recently had my server showing again an expired certificate, so I certainly misunderstood something, and/or my cron task is not good.
Could you show me the path please? :)