Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: ordertest.dmcontact.com
I ran this command: certbot-auto --nginx -d ordertest.dmcontact.com
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ordertest.dmcontact.com
Cleaning up challenges
Certbot could not find a block to include challenges in /etc/nginx/nginx.conf.
My web server is (include version): nginx/1.14.2
The operating system my web server runs on is (include version): Debian 10.5
My hosting provider, if applicable, is:
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): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 1.7.0
I’ve been reading some others posts and I’m quite certain this is due to the nginx conf file (we have no issues with a similar server running Apache). I’ve tried using both certbot and certbot-auto, and they both return the same error.
I did find that I could create a manual certificate with a TXT record, revoke that certificate completely and then it would seem to get the certificate, but a dry-run shows it would fail for renewal.