I have the following set up via cron:
/usr/sbin/certbot-auto renew --force-renew --quiet --post-hook "/sbin/service httpd reload" >> /var/log/letsencrypt/letsencrypt.log 2>&1
I found out this is not renewing the certificate and when I tried running the command manually, I get:
Attempting to renew cert (foo.com) from /etc/letsencrypt/renewal/foo.com.conf produced an unexpected error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/foo.com/fullchain.pem (failure)
I couldn't find the original article that I used to set this up but I can't see why I would need to use --manual-auth-hook if I am trying to do this in an automated fashion. Can someone please let me know why this error message is popping up and what I would need to fix this so that the cron runs automatically w/o error? My guess is that I need to add some kind of script that would authenticate via dns or http but Im not 100% sure on that.