joohoi / acme-dns

Limited DNS server with RESTful HTTP API to handle ACME DNS challenges easily and securely.
MIT License
2.19k stars 234 forks source link

acme-dns only saves a single TXT record, not 2 #331

Open Exagone313 opened 1 year ago

Exagone313 commented 1 year ago

Hello,

I have acme-dns v1.0 self-hosted and I'm trying to use it along with dehydrated to create a wildcard certificate (with both foo.example and *.foo.example in alt names in the same certificate).

This requires being able to return two different TXT records for solving both challenges at the same time.

However, each time I call the /update endpoint, the TXT record is updated and acme-dns will only send a single TXT record for my domain. This means that when the challenges are checked, the first challenge will be invalid (since only the second one is returned).

Unfortunately, dehydrated doesn't support handling one challenge at once (see the issue here), unlike cert-manager on Kubernetes (by specifying --max-concurrent-challenges=1). dehydrated requires all challenges to be valid at once, before it asks the server to check the challenges.

This seems like a regression from #28.

Do you have the same issue?