Help! Failed authorization procedure

Hello, friends, I need your help. I’m trying to install from Ubuntu 18.04.1 LTS, but at the time of generating the certificate I have the following error:

sudo letsencrypt --apache


Saving debug log to Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Enabled Apache rewrite module
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 -known / acme-challenge / vXXNzsUKYyKWJqLxgxBsUbnmcBtL8Co3Es5JUCzpRt0: "<! DOCTYPE HTML PUBLIC " - // IETF // DTD HTML 2.0 // EN \ "> \ n \ n 404 Not Found </ title> \ n </ head> \ n

Not Found </ h1> \ n <p "


  • The following errors were reported by the server:

    Type: unauthorized
    Detail: Invalid response from
    2.0 // EN \ "> \ n \ n 404 Not
    Found </ title> \ n </ head> \ n

    Not Found </ h1> \ n <p "

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



Could you please try to place a random file (with random name & contents) into the following path and see if the file is viewable to public?

Please place the file to the document root/.well-known/acme-challenge/ and share us the link to the file

Thank you



What authenticator are you using? webroot or apache?

Thank you

Hi @peterzeta

but checking your http - version:

D:\temp>download -h
Error (1): Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden.
Connection: close
Content-Length: 312
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 17 Oct 2018 17:45:48 GMT
Server: Apache/2.2.22 (EL)

Status: 404 NotFound

That doesn't work. Letsencrypt checks port 80.

So your http may have another configuration.

PS: There are two different Apache - server:

Testing the https - version:

D:\temp>download -h
SSL error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Accept-Ranges: bytes
Content-Length: 30
Date: Wed, 17 Oct 2018 17:22:11 GMT
ETag: “1e-5786ed4d73dee”
Last-Modified: Wed, 17 Oct 2018 16:04:56 GMT
Server: Apache/2.4.29 (Ubuntu)

Status: 200 OK

813,01 milliseconds
0,81 seconds

http has an Apache/2.2.22, https a 2.4.29.

Tanks a lot! the http port (80) was being used by a different server. It was a configuration in the firewall that manages the network.

My certificate works great! Saved my day

1 Like

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