Unauthorized Error well-known/acme-challenge

Followed this tutorial

Now I have a issue solving this problem. I fail to create a dummy folder and cannot access directory.
I am using google Cloud Platform

Thank you in advance!

root@cloudshell:/tmp/certbot$ ./certbot-auto certonly --webroot -w /var/www/html/ -d dolceblu.com -d www.
dolceblu.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for dolceblu.com
http-01 challenge for www.dolceblu.com
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.dolceblu.com (http-01): urn:acme:error:unauthorized :: The client lac
ks sufficient authorization :: Invalid response from http://www.dolceblu.com/.well-known/acme-challenge/Y
zSFmpAZSl6CR1-60zwHItOpQa3Xh2O6gAx_kE6SWTg: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p", dolceblu.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: 
Invalid response from http://dolceblu.com/.well-known/acme-challenge/zB3cRPuaclrR0qjQmC5GS2sjc07rkcHNgcY9
b8oBsCk: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p"
IMPORTANT NOTES:
 - The following errors were reported by the server:
   Domain: www.dolceblu.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.dolceblu.com/.well-known/acme-challenge/YzSFmpAZSl6CR1-60zwHItOpQa3Xh2O6gAx_kE6SWTg:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>404 Not Found</title>
   </head><body>
   <h1>Not Found</h1>
   <p"

   Domain: dolceblu.com
   Type:   unauthorized
   Detail: Invalid response from
   http://dolceblu.com/.well-known/acme-challenge/zB3cRPuaclrR0qjQmC5GS2sjc07rkcHNgcY9b8oBsCk:
   "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>404 Not Found</title>
   </head><body>
   <h1>Not Found</h1>
   <p"

   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.
root@cloudshell:/tmp/certbot$

Hi @marrrrrrco,

You should follow the updated one.

Could you please explain that?.

Are you sure your document root for dolceblu.com and www.dolceblu.com is /var/www/html/?.

Let's test it.

Create the needed dirs:

mkdir -p /var/www/html/.well-known/acme-challenge/

Put a test file there:

echo -n "Test file for dolceblu" > /var/www/html/.well-known/acme-challenge/test

Now try to reach that test file using your web browser:

or from command line using curl:

curl -ikL http://dolceblu.com/.well-known/acme-challenge/test
curl -ikL http://www.dolceblu.com/.well-known/acme-challenge/test

If you can't see the test file then something is not configured properly or your document root is no /var/www/html and you should not try to issue a certificate till this is resolved.

Cheers,
sahsanu

4 Likes

@sahsanu I cannot express how grateful I am, I fixed the issue. You guys do god’s work!

Saludos de Canada!

1 Like

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