"end in a dot (.)" requirement for CNAME record data is breaking DNS-validated ACME for cert issuers that use CNAME instead of TXT records. #884
Labels
feedback
General API feedback (not OpenAPI specific)
The caddy-dns/digitalocean provider plugin works beautifully for DNS validation required by wildcard certs, as long as the cert issuer uses TXT records. letsencrypt is a good example. As letsencrypt is the default issuer for caddy server, a relevant Caddyfile snippet would look like this:
and the requested wildcard cert is automatically acquired without difficulty. However, with a certificate issuer who uses CNAME records like ZeroSSL, things are not as smooth. Here is the relevant Caddyfile snippet:
and here is what is output:
The problem stems from the mismatch of the challenge CNAME target URL sent back from the issuer, a comodoca.com URL that does not end with a dot (.), and your API's requirement that CNAME record_data must end with a dot.
I don't believe your API's requirement that CNAME record_data must end with a dot is unreasonable; after all, the actual format of a CNAME record in an ANSWER SECTION does end in a dot. But I will also note that DigitalOcean does not enforce this requirement on CNAME targets added via DO's Networking->Domains->[domain]->Create New Record UI, while still correctly saving the data with the dot appended:
Would you consider aligning your API functionality with your UI functionality with regard to CNAME record data input requirements? If it's good enough for the UI, it should be sufficient for the API as well, and it would allow DigitalOcean to serve as a DNS validator for ACME wildcard cert issuers that prefer CNAME records to TXT records for their validation.
The text was updated successfully, but these errors were encountered: