Renewing certificate is failing with proper dns settings

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., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: certbot --nginx --redirect --webroot-path /etc/nginx/ -d -d

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1):
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Waiting for verification…
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.

** - The following errors were reported by the server:**

** Domain:**
** Type: unauthorized**
** Detail: Invalid response from**
** : “\n\n\n\n<!–[if”**

** To fix these errors, please make sure that your domain name was**
** entered correctly and the DNS A/AAAA record(s) for that domain**
** contain(s) the right IP address.**

My web server is (include version): Centos

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

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot --version:- certbot 1.3.0
If I ping both the domains they are working fine and dns settings is also good and if I try to renew the certificate for both the domains it is not renewing properly

1 Like

Hi @Srinivasraodaram

your command is wrong. If you want to use webroot, you have to use --webroot, not --nginx.


Hi Juergen,
we are running the same command from past years it worked fine while generating and from the past few days while renewing for the sites we are using the same command and it is throwing with http-01 failed for one domain where the DNS settings for that domain are correct…

I tried with your solution but I am getting the same http-01 challenge error for www domain and the dns settings for www domain is fine
certbot certonly --webroot --nginx --redirect --webroot-path /etc/nginx/ -d -d

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