Solving The client lacks sufficient authorization error

Hey,
i tried to issue a certificate for the domain sc-schwielochsee.de with the following command:

./letsencrypt-auto --agree-dev-preview -d sc-schwielochsee.de --server https://acme-v01.api.letsencrypt.org/directory auth --verbose

but I'm getting the following error:

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

Domains: sc-schwielochsee.de
Error: The client lacks sufficient authorization

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

I checked the records but everything seems to be fine.

How can I fix this?

Hello @rahxam,
I had this same issue on a RHEL server hosted on Amazon EC2 running Apache.
Try changing the ‘auth’ switch to ‘cert only’ and add the -d flags for your white-listed domains.

Here’s what I used:
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory certonly -d yourdomain.name -d www.yourdomain.name -v

Afterwards, I used the certificate symlinks in /etc/letsencrypt/live/yoursitename.com/ for the SSL config file at /etc/httpd/config.d/ssl.conf

Also made sure letsencrypt client was updated with: git pull

Good luck!

1 Like