Can't obtain new certificate

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: sudo certbot --nginx -d -d

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
http-01 challenge for
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [2606:4700:30::681c:cd4]: "\n\n<!–[if IE 7]> <html class="no-js "


My web server is (include version): nginx

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

My hosting provider, if applicable, is: OVH

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

Hi @Is0lated

there is a check of your domain -

First, you use Cloudflare. Sometimes it's better to deactivate Cloudflare, then create a certificate, then reactivate Cloudflare again.

You have redirects http -> https, that's ok. But your non-www + https works, your www + https doesn't work.

If you use nginx as authenticator, normally, the not working https + www shouldn't be relevant.

But your Cloudflare redirects that to https, there it doesn't work.

Try to find your root (in your port 443 vHost). Then use it:

certbot run -a webroot -i nginx -w yourRoot -d -d

But it may not work because of your not working https + www.

1 Like

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