Solving The client lacks sufficient authorization error

i tried to issue a certificate for the domain with the following command:

./letsencrypt-auto --agree-dev-preview -d --server auth --verbose

but I'm getting the following error:

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

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 certonly -d -d -v

Afterwards, I used the certificate symlinks in /etc/letsencrypt/live/ 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