Error:The client lacks sufficient authorization


I have downloaded the client and i have tryed to get a cert for my domain with this command:
./letsencrypt-auto --agree-dev-preview --server certonly -d -v

But i get this error:

Failed authorization procedure. (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Correct zName not found for TLS SNI challenge. Found


  • The following ‘urn:acme:error:unauthorized’ errors were reported by
    the server:

Error: The client lacks sufficient authorization

Any Idea?

I’d start by checking if the /.well-known/acme-challenge/ directory exists currently … and that the permissions on both .well-known and acme-challenge are 755. I’d then add a test file ( just a onlne line text should be fine ) and check that you can reach it in your browser. If not, then it is an Apache config issue and needs debugging and correcting first.

Also, I assume that the line you used included your real domain name, i.e.

./letsencrypt-auto --agree-dev-preview --server certonly -d -d -v

rather that “” as you showed

Thx. I found the issue.
It was a wrong DNS Zone - Sorry

1 Like