Error when requesting certificate


My domain is:

I ran this command: letsencrypt-vesta dulcecalvo

It produced this output:

Failed authorization procedure. (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: The key authorization file from the server did not match this challenge [F8u579CuGgPj3lI2n0TZGulrJv8adZfhpVx31gIJets.0bl5NhJDzpoDz_AZpvIcfR2tWojyiPNbujYRCC-n6VE] != [F8u579CuGgPj3lI2n0TZGulrJv8adZfhpVx31gIJets.VJiX50xcNEOMO6eyxr0aZq7LaciOJUXmNVBNj7Qfzyw]

The following errors were reported by the server:

Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge

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

The operating system my web server runs on is: Ubuntu

I can login to a root shell on my machine: Yes

The version of my client is: certbot 0.30.2


It appears to be a known issue with letsencrypt-vesta:

Since letsencrypt-vesta has not been updated in over 2 years, you might consider using the built-in support VestaCP offers for Let’s Encrypt, which is suggested in this comment:



the error says, that your website sends the wrong user key.

Your config ( ):

Domainname Http-Status redirect Sec. G 200 0.873 H 200 0.123 H 301 1.877 N
Certificate error: RemoteCertificateNameMismatch 301 1.644 N
Certificate error: RemoteCertificateNameMismatch 200 7.627 B 200 0.117 404 0.120 A
Not Found

Your website redirects to, but your cosmetica sends a status 200 checking a file under /.well-known/acme-challenge.

Oh - what’s that? Opening

the content is


So your webserver puts the random file name in the file and adds the key.

Is this the key of your hoster?

closed #4

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