Unable to renew Let's Encrypt certificate for Nginx

My domain is: example.com, example2.com , example3.com

I ran this command: certbot certonly --force-renew -d example.com -d example2.com -d example3.com

It produced this output: :~# certbot certonly --force-renew -d example.com -d example2.com -d example3.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?


1: Apache Web Server plugin (apache)
2: Nginx Web Server plugin (nginx)
3: Spin up a temporary webserver (standalone)
4: Place files in webroot directory (webroot)


Select the appropriate number [1-4] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate for example.com and 3 more domains

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: example.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for example.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for example.com - check that a DNS record exists for this domain

Domain: example2.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for example2.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for example2.com - check that a DNS record exists for this domain

Domain: example3.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for example3.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for example3.com - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version): Nginx

The operating system my web server runs on is (include version): nginx version: nginx/1.18.0 (Ubuntu)

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.26.0

The error message contains the information you need to solve this problem. We can't help you if you redact the domains.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.