New server, same domain name - Incorrect validation certificate for tls-sni-01 challenge

I’ve installed fresh certbot and wanted to issue certificate with command:

certbot certonly --email --agree-tos --standalone -d

But it failed with response:

Type: unauthorized
Detail: Incorrect validation certificate for tls-sni-01 challenge.
from XXX.YYY.YYY.YYY:443. Received 2 certificate(s), first
certificate had names “,

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 was using certbot on same server before but I’ve reinstalled it and didn’t backup letsencrypt keys.

What should I do now? Thanks!

This was caused by the wrong port forwarding setting (to another server). All is working now.

Alternatively you can use port 80 to check domain:

certbot certonly --email --agree-tos --standalone --standalone-supported-challenges http-01 -d

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