Failed authorization procedure. drammen.minby.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response

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: drammen.minby.net

I ran this command: sudo certbot certonly -a webroot --webroot-path=/home/ezhike_user/drammen_admin/public -d drammen.minby.net

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert is due for renewal, auto-renewing…
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for drammen.minby.net
Using the webroot path /home/ezhike_user/drammen_admin/public for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. drammen.minby.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://drammen.minby.net/.well-known/acme-challenge/RSXtcWSmA4Jm7xeUiuvvckUg9sz1s9ldxE9ix6d3h1Y [80.241.217.171]: “\r\n404 Not Found\r\n<body bgcolor=“white”>\r\n

404 Not Found

\r\n

IMPORTANT NOTES:

My web server is (include version):

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

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

Are you sure /home/ezhike_user/drammen_admin/public is the correct path?

What is in Nginx’s error log?

Yes, the path is correct

Hi @borsemangesh

then create the two subdirectories

/home/ezhike_user/drammen_admin/public/.well-known/acme-challenge

there a file (file name 1234), then try to load that file via

http://drammen.minby.net/.well-known/acme-challenge/1234

There is a nginx.

What says

nginx -T
1 Like

I have added a file and it is working with below URL.

http://drammen.minby.net/.well-known/acme-challenge/1234

What could be the issue?

That doesn't work - https://check-your-website.server-daten.de/?q=drammen.minby.net%2F.well-known%2Facme-challenge%2F1234

Domainname Http-Status redirect Sec. G
http://drammen.minby.net/.well-known/acme-challenge/1234
80.241.217.171 GZip used - 132 / 169 - 21,89 % 404 Html is minified: 109,03 % 0.043 M
Not Found
https://drammen.minby.net/.well-known/acme-challenge/1234
80.241.217.171 Inline-JavaScript (∑/total): 0/0 Inline-CSS (∑/total): 0/0 200 Html is minified: 140,00 % 3.153 A
http://drammen.minby.net/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de
80.241.217.171 GZip used - 132 / 169 - 21,89 % Inline-JavaScript (∑/total): 0/0 Inline-CSS (∑/total): 0/0 404 Html is minified: 109,03 % 0.043 A
Not Found
Visible Content: 404 Not Found nginx/1.10.3

https works, there is the expected result http status 200. But http doesn't work.

If you check that with your browser, your browser may use the preferred https version.

So use online tools to check such things.

So your http and https may have different root directories. Or there is an additional location definition.

Where can I check that?

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