For context sub.example.dedyn.io DNS name belongs to example.dedyn.io authoritative zone. In caddy, while trying to solve DNS challenge the deSEC libns tries to make a record under sub.example.dedyn.io instead of example.dedyn.io resulting in
RRSets: unexpected status code 404: {\"detail\":\"Not found.\"}
May you update deSEC provider to support subdomain? For this case, I believe deSEC provider should send a record to example.dedyn.io with with a subname value of _acme-challenge.sub
2023/08/21 23:26:50.273 INFO tls.issuance.zerossl.acme_client trying to solve challenge
{
"identifier": "*.sub.example.dedyn.io",
"challenge_type": "dns-01",
"ca": "https://acme-staging-v02.api.letsencrypt.org/directory"
}
2023/08/21 23:26:51.180 ERROR tls.issuance.zerossl.acme_client cleaning up solver
{
"identifier": "*.sub.example.dedyn.io",
"challenge_type": "dns-01",
"error": "no memory of presenting a DNS record for \"_acme-challenge.sub.example.dedyn.io\" (usually OK if presenting also failed)"
}
2023/08/21 23:26:51.234 ERROR tls.obtain could not get certificate from issuer
{
"identifier": "*.sub.example.dedyn.io",
"issuer": "acme-staging-v02.api.letsencrypt.org-directory",
"error": "[*.sub.example.dedyn.io] solving challenges: presenting for challenge: adding temporary record for zone \"_acme-challenge.sub.example.dedyn.io.\": writing RRSets: unexpected status code 404: {\"detail\":\"Not found.\"} (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/115592954/10422849924) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)"
}
2023/08/21 23:26:51.235 ERROR tls.obtain will retry
{
"error": "[*.sub.example.dedyn.io] Obtain: [*.sub.example.dedyn.io] solving challenges: presenting for challenge: adding temporary record for zone \"_acme-challenge.sub.example.dedyn.io.\": writing RRSets: unexpected status code 404: {\"detail\":\"Not found.\"} (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/115592954/10422849924) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)",
"attempt": 1,
"retrying_in": 60,
"elapsed": 3.0121087,
"max_duration": 2592000
}