HTTP-01 error at renewed nginx

The certificate is not renewed, I have no record of any changes being made on the server.

Port 80 are open in server and in firewall.

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. crt.sh | 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:comnetsa.com

I ran this command: certbot renew --dry-run -v

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/comnetsa.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Simulating renewal of an existing certificate for comnetsa.com
Performing the following challenges:
http-01 challenge for comnetsa.com
Waiting for verification...
Challenge failed for domain comnetsa.com
http-01 challenge for comnetsa.com

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: comnetsa.com
  Type:   connection
  Detail: During secondary validation: 170.239.59.232: Fetching http://comnetsa.com/.well-known/acme-challenge/C_W3QE8_g-XHJqRzulFbuwKt8nmdENeE0Y8cl6Ow-yk: Timeout during connect (likely firewall problem)

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.

Cleaning up challenges
Failed to renew certificate comnetsa.com with error: Some challenges have failed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/services.comnetsa.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Simulating renewal of an existing certificate for services.comnetsa.com
Performing the following challenges:
http-01 challenge for services.comnetsa.com
Waiting for verification...
Challenge failed for domain services.comnetsa.com
http-01 challenge for services.comnetsa.com

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

Cleaning up challenges
Failed to renew certificate services.comnetsa.com with error: Some challenges have failed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/www.comnetsa.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Simulating renewal of an existing certificate for www.comnetsa.com
Performing the following challenges:
http-01 challenge for www.comnetsa.com
Waiting for verification...
Challenge failed for domain www.comnetsa.com
http-01 challenge for www.comnetsa.com

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: www.comnetsa.com
  Type:   connection
  Detail: During secondary validation: 170.239.59.232: Fetching http://www.comnetsa.com/.well-known/acme-challenge/0-NEUxV1lHjvL2T_CX1umOtM_OWDGOCgauxC6klXarc: Timeout during connect (likely firewall problem)

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.

Cleaning up challenges
Failed to renew certificate www.comnetsa.com with error: Some challenges have failed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
  /etc/letsencrypt/live/comnetsa.com/fullchain.pem (failure)
  /etc/letsencrypt/live/services.comnetsa.com/fullchain.pem (failure)
  /etc/letsencrypt/live/www.comnetsa.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3 renew failure(s), 0 parse failure(s)
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 version: nginx/1.18.0 (Ubuntu)

The operating system my web server runs on is (include version): Ubuntu 20.04.4 LTS

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 2.10.0

It looks like you have geo-blocking that is preventing the secondary validation from succeeding .

3 Likes

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