Failed authorization procedure (one of many websites)


#1

One of my websites is producing this error message, even though I have dozens of other websites that were verified without problem. I’ve searched similar posts trying to find similarities but couldn’t find a solution.

My domain is: http://www.souzafloriano.com

I ran this command: sudo certbot certonly -d www.sousafloriano.com -d m.sousafloriano.com -d sousafloriano.com

It produced this output:

Failed authorization procedure. m.souzafloriano.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://m.souzafloriano.com/.well-known/acme-challenge/1fe_KQ9Gw9saLxDzVym6bLNuPzI10Vh9C1DLn-qkvyQ: "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13 17:25:56", www.souzafloriano.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.souzafloriano.com/.well-known/acme-challenge/CY7IKcYCsej9WcUjd4UEeT5pMUde15rAkS2eZrstERU: "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13 17:25:56", souzafloriano.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://souzafloriano.com/.well-known/acme-challenge/vAbw6nLTA1ndMvQeI6ECxJiT3PX95dEpzUKwwtd9j0k: "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13 17:25:56"

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: m.souzafloriano.com
   Type:   unauthorized
   Detail: Invalid response from
   http://m.souzafloriano.com/.well-known/acme-challenge/1fe_KQ9Gw9saLxDzVym6bLNuPzI10Vh9C1DLn-qkvyQ:
   "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html
   lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta
   charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13
   17:25:56"

   Domain: www.souzafloriano.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.souzafloriano.com/.well-known/acme-challenge/CY7IKcYCsej9WcUjd4UEeT5pMUde15rAkS2eZrstERU:
   "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html
   lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta
   charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13
   17:25:56"

   Domain: souzafloriano.com
   Type:   unauthorized
   Detail: Invalid response from
   http://souzafloriano.com/.well-known/acme-challenge/vAbw6nLTA1ndMvQeI6ECxJiT3PX95dEpzUKwwtd9j0k:
   "<!DOCTYPE HTML>\n\t\t\t\t\t\t<html
   lang=\"pt-br\">\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t<meta
   charset=utf-8>\n\t\t\t\t\t\t<title>Log de erro [ 2018-11-13
   17:25:56"

   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): Apache/2.4.7 (Ubuntu)

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

My hosting provider, if applicable, is: Amazon

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


#2

Hi,

Could you please try to make a file at the following path?
$your_document_root/.well-known/acme-challenge/testxieh

Please also check if that file exists when you view it in the browser.

Thank you


#3

I’m able to create it but I can’t view it in the browser.


#4

You need to handle the requests on /.well-known/acme-challenge/ differently than all other requests.


#5

managed to make the file visible by putting it on the public folder


#6

Hi,

In this case, could you please try to use the following commands:

sudo certbot certonly --webroot -w [your path] -d www.sousafloriano.com -d m.sousafloriano.com -d sousafloriano.com

Replace the [your path] with the path of the public folder you mentioned.

Thank you


#7

Thank you it worked.


#8

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