Hello,
PS .. sorry I post this, as I was not really able to search for this....
I have several domain with Let's Encrypt, the website (Apache) domains works fine with renewal. But I also have a non Apache domain and was successful registering it etc. So I thought I'm done. Now I get a warning that domain is almost expired.
The cron job for the renewal is running, certbot:
0 */12 * * * root test -x /usr/bin/certbot -a ! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew
Just to be sure I also tried manually with this command:
certbot renew --manual
Both give this error message:
Processing /etc/letsencrypt/renewal/some-domain.conf
Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: 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.')
Attempting to renew cert (some-domain) from /etc/letsencrypt/renewal/some-domain.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/some-domain/fullchain.pem (failure)
I also check the /etc/letsencrypt/renewal/some-domain.conf
renew_before_expiry = 30 days
version = 0.40.0
archive_dir = /etc/letsencrypt/archive/some-domain
cert = /etc/letsencrypt/live/some-domain/cert.pem
privkey = /etc/letsencrypt/live/some-domain/privkey.pem
chain = /etc/letsencrypt/live/some-domain/chain.pem
fullchain = /etc/letsencrypt/live/some-domain/fullchain.pem
Options used in the renewal process
[renewalparams]
account = (some account string)
pref_challs = dns-01,
authenticator = manual
manual_public_ip_logging_ok = True
server = https://acme-v02.api.letsencrypt.org/directory
I notice for all other domains I have the option "authenticator = apache" as they are running Apache.
However the above domain has "pref_challs = dns-01", which is correct and also has an DNS entry, and the option "authenticator = manual".
This entry should be correct as I was able to register the first time.
So what do I need to do to get it working? It's not clear to me.
Or do I need 2 cron-jobs with different parameters? I hope not....
Thanks, any help is appreciated.
Matthijs