I realize I'm a little late to the game, but I had a question on the maximum
length. If I'm reading this correctly, it looks like you applied the max
length of 63 to the LABEL. Should it actually be to FQDN and WILDCARD? Is it
63 or 64?
> I'm using to check dNSNames in GeneralNames:
>
> LABEL = "((?!-)[A-Za-z0-9-]{1,63}(?<!-))"
> FQDN = "(#{LABEL}\.)*#{LABEL}"
> WILDCARD_DN = "\\*\\.#{FQDN}"
> DNSNAME = "(#{FQDN}|#{WILDCARD_DN})"
>
> dNSName =~ /\A#{DNSNAME}\z/
_______________________________________________
dev-security-policy mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-security-policy