K
K
khodos_dmitry2020-03-12 19:13:34
Digital certificates
khodos_dmitry, 2020-03-12 19:13:34

Error "_acme-challenge.site.ru - check that a DNS record exists for this domain" when installing a wildcard certificate from lets encrypt?

I enter the command in the terminal:

certbot certonly --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory --manual-public-ip-logging-ok -d '*.site.ru' -d site.ru

An error occurs:
Waiting for verification...
Challenge failed for domain site.ru
dns-01 challenge for site.ru
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: site.ru
   Type:   dns
   Detail: DNS problem: NXDOMAIN looking up TXT for
   _acme-challenge.site.ru - check that a DNS record exists
   for this domain

When I check the TXT record, then:
;; ANSWER SECTION:
site.ru.        86400   IN      TXT     "_acme-challenge.site.ru=ZIgjpsHA1P8uyrnyAa5fSzT3thLe4q0sBn5dxPTmEeE"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
arto, 2020-03-20
@artopp

# host -t txt site.ru.
site.ru has no TXT record

N
Nikita Tratorov, 2021-08-26
@NikitaTratorov

And the answer should be

_acme-challenge.site.ru 300 IN TXT "ZIgjpsHA1P8uyrnyAa5fSzT3thLe4q0sBn5dxPTmEeE"

Such an entry must be added to the list of entries on your DNS server to which the domain is delegated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question