I had originally created my certificate using below command:
sudo certbot certonly --manual -d *.slackservices.com -d slackservices.com --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
My domain is: slackservices.com
I ran this command:
sudo certbot renew --pre-hook “sudo service nginx stop” --post-hook “sudo service nginx start”
&
sudo certbot renew --manual --preferred-challenges dns-01 --pre-hook “sudo service nginx stop” --post-hook “sudo service nginx start”
It produced this output:
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 (slackservices.com) from /etc/letsencrypt/renewal/slackservices.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/slackservices.com/fullchain.pem (failure)
My web server is (include version): nginx version: nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version): Linux/Ubuntu
My hosting provider, if applicable, is:
Route 53
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 0.26.1