Error:The client lacks sufficient authorization

Hi.

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 https://acme-v01.api.letsencrypt.org/directory certonly -d mydomain.com -v

But i get this error:

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

IMPORTANT NOTES:

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

Domains: heisl.org
Error: The client lacks sufficient authorization

Any Idea?
Thx

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 https://acme-v01.api.letsencrypt.org/directory certonly -d heisl.org -d www.heisl.org -v

rather that "mydomain.com" as you showed

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

1 Like