Hi, I was reviewing a some code implementing dns-persist-01 and was surprised to see it brought in IDNA dependencies. I see the draft specifies some Unicode-aware processing: https://www.ietf.org/archive/id/draft-ietf-acme-dns-persist-01.html#name-domain-name-normalization-a
> 9.2. Domain Name Normalization Algorithm > 1. Case-folding: Apply Unicode-aware, locale-independent case-folding to the entire domain name string to convert it to lowercase. > 2. Unicode Normalization: Normalize the string to Unicode Normalization Form C (NFC). > 3. Punycode Conversion: Convert each label of the domain name to its A-label (Punycode) representation as specified in [RFC5890]. > 4. Trailing Dot Removal: Remove any trailing dot from the final string. This processing is performed on `issuer-domain-name`s and also on the FQDN being validated, before inclusion in the hash. I think the Unicode aspects of this should be deleted. ACME "dns" identifiers are already specified to be A-labels (by reference to RFC 5280). The definition of `issuer-domain-name` in the draft also specifies A-labels. Proposed rewrite 1: 9.2 Domain Name Normalization Algorithm 1. Case-folding: all uppercase US-ASCII letters are replaced by the corresponding lowercase US-ASCII letters. 2. Trailing dot removal: Remove any trailing dot from the final string. Separately, can we remove the need for normalization entirely? When the CA validates an issuer-domain-name during domain validation, it should be strict. Case-folding `issuer.EXAMPLE.com` to `issuer.example.com` leads the CA to be less strict. Simple String Comparison is preferable. When constructing the TXT record, one of the inputs to hashing is "the FQDN being validated: the Validation Domain Name with its leading _validation-persist label removed and no trailing dot, in the normalized lowercase A-label form produced by Section 9.2." Instead we could be more precise and say it's the authorization object's identifier.value field. Though since the draft envisions pre-provisioning these records before making any request, I guess we don't have that option. So, color me convinced that we need canonicalization for the hash input at least. But it should be specified over US-ASCII.
_______________________________________________ Acme mailing list -- [email protected] To unsubscribe send an email to [email protected]
