Open dandv opened 4 years ago
Seperate those two requests, run acme for each one.
And technically you don't need the first cryptoclimate.io
as you are requesting a wildcard for that domain.
Same with me. sometimes I get just only one TXT record for the base and wildcard domains , and it works well , but sometimes I get two TXT records for the same one _acme-challenge
host and it will fail .
@Rayzilt Can not seperate to two requests , and the base domain is needed , because we want to use the same one cert file for base and wild domain .
First issue it failed , try again it will success.
The same issue with yandex_dns
I spent about 4 hours troubleshooting this with the dns_gd API. Turns out the issue isn't the same TXT record with 2 entries. It is actually the DNS record cache on the LetsEncrypt challenge verification servers.
I even went so far as to specify a challenge alias for the wildcard domain so they wouldn't share the same record and I was still getting this error.
-d example.com --challenge-alias no --dns dns_gd -d *.example.com --challenge-alias wildcard-challenge-alias.example.com --dns dns_gd
[Fri Jun 3 02:41:35 PM EDT 2022] Verifying: example.com [Fri Jun 3 02:41:35 PM EDT 2022] Pending, The CA is processing your order, please just wait. (1/30) [Fri Jun 3 02:41:38 PM EDT 2022] example.com:Verify error:Incorrect TXT record
I even removed the wildcard domain to run it with just the base domain and found I was still getting this error, so it COULDN'T be tied to the wildcard part.
That's when I stumbled on someone else mentioning they had to set the time out to 500s to stop the error and it made me think of the DNS TTL. Acme.sh sets the TXT TTL to 600s. So I set the dnssleep to 1200s to be safe, and it worked.
[Fri Jun 3 02:44:14 PM EDT 2022] Sleep 1200 seconds for the txt records to take effect [Fri Jun 3 03:04:18 PM EDT 2022] Verifying: example.com [Fri Jun 3 03:04:18 PM EDT 2022] Pending, The CA is processing your order, please just wait. (1/30) [Fri Jun 3 03:04:21 PM EDT 2022] Pending, The CA is processing your order, please just wait. (2/30) [Fri Jun 3 03:04:25 PM EDT 2022] Pending, The CA is processing your order, please just wait. (3/30) [Fri Jun 3 03:04:28 PM EDT 2022] Pending, The CA is processing your order, please just wait. (4/30) [Fri Jun 3 03:04:31 PM EDT 2022] Success
So try throwing "--dnssleep 1200" into your --issue command. You might be able to bring that down to 600s, this was just to verify this was the actual issue.
I've just installed the script and got the error below with DigitalOcean. Detailed log attached.
acme-incorrect-TXT-record.log