https://certbot.eff.org/lets-encrypt/debianother-nginx.html
This worked. For renewing the cert automatically, I used this in crontab:
23 0,12 * * * ./opt/certbot/certbot-auto renew --nginx
When using --dry-run
, without the --nginx
flag, I received this error:
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 (example.com) from /etc/letsencrypt/renewal/example.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.
The following certs could not be renewed:
/etc/letsencrypt/live/example.com/fullchain.pem (failure)