RFC 9598: Internationalized Email Addresses in X.509 Certificates
- A. Melnikov,
- W. Chuang,
- C. Bonnell
Abstract
This document defines a new name form for inclusion in the otherName
field of an X.509 Subject Alternative Name and Issuer Alternative
Name extension that allows a certificate subject to be associated
with an internationaliz
This document updates RFC 5280 and obsoletes RFC 8398.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://
1. Introduction
[RFC5280] defines the rfc822Name subjectAltName name type for
representing email addresses as described in [RFC5321]. The syntax
of rfc822Name is restricted to a subset of US-ASCII characters and
thus can't be used to represent internationaliz
This document obsoletes [RFC8398]. The primary motivation of this document is to simplify the encoding of domain labels
found in the domain part of internationaliz
2. Conventions Used in This Document
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
3. Name Definitions
The GeneralName structure [RFC5280] supports many
different name forms including otherName for extensibility. This
section specifies the SmtpUTF8Mailbox name form of otherName so that
internationaliz
When the subjectAltName (or issuerAltName) extension contains an
internationalizLocal-part,
Dot-string, Quoted-string, QcontentSMTP, Domain, and Atom.
In particular, Local-part was updated to also support
UTF8-non-ascii. UTF8-non-ascii was described by
Section 3.1 of [RFC6532]. Also, domain was extended to support U-labels, as defined
in [RFC5890].¶
This document further refines internationalizMailbox and has no phrase (such as a
common name) before it, has no comment (text surrounded in parentheses)
after it, and is not surrounded by "<" and ">" characters.¶
Due to name constraint compatibility reasons described in Section 6,
SmtpUTF8Mailbox subjectAltName MUST NOT be used unless the Local-part
of the email address contains non-ASCII characters. When the
Local-part is ASCII, rfc822Name subjectAltName MUST be used instead of
Smtp
SmtpUTF8Mailbox is encoded as UTF8String. The UTF8String encoding
MUST NOT contain a Byte Order Mark (BOM) [RFC3629] to aid consistency
across implementations
Non-ASCII Local-part values may additionally include ASCII characters.¶
4. IDNA2008
To facilitate comparison between email addresses, all email address domains in X.509 certificates MUST conform to IDNA2008 [RFC5890] (and avoid any "mappings" mentioned in that document). Use of non-conforming email address domains introduces the possibility of conversion errors between alternate forms. This applies to SmtpUTF8Mailbox and rfc822Name in subjectAltName, issuerAltName, and anywhere else that these are used.¶
5. Matching of Internationalized Email Addresses in X.509 Certificates
Equivalence comparisons with SmtpUTF8Mailbox consist of a domain part step and a Local-part step. The comparison form for Local-parts is always UTF-8. The comparison form for domain parts is always performed with the LDH label ([RFC5890]) encoding of the relevant domain labels. The comparison of LDH labels in domain parts reduces complexity for implementations of the certification path validation algorithm as defined in Section 6 of [RFC5280] by obviating the need to convert domain labels to their Unicode representation.¶
Comparison of two Smtp
Comparison of an SmtpUTF8Mailbox and rfc822Name will always fail. SmtpUTF8Mailbox values SHALL contain a Local-part that includes one or more non-ASCII characters, while rfc822Names only includes ASCII characters (including the Local-part). Thus, an SmtpUTF8Mailbox and rfc822Name will never match.¶
Comparison of SmtpUTF8Mailbox values with internationaliz
For the setup of the domain part, the following conversions SHALL be performed:¶
For the setup of the Local-part, the Local-part MUST be verified to
conform to the requirements of [RFC6530] and [RFC6531], including
being a string in UTF-8 form. In particular, the Local-
part MUST NOT be transformed in any way, such as by doing case
folding or normalization of any kind. The Local-part of an
internationaliz
To summarize non
This specification expressly does not define any wildcard characters,
and SmtpUTF8Mailbox comparison implementations MUST NOT interpret any
characters as wildcards. Instead, to specify multiple email
addresses through Smtp
6. Name Constraints in Path Validation
This section updates Section 4.2.1.10 of [RFC5280] to extend
rfc822Name name constraints to SmtpUTF8Mailbox subject
Both rfc822Name and SmtpUTF8Mailbox subject alternative names represent the same underlying email address namespace. Since legacy Certification Authorities (CAs) constrained to issue certificates for a specific set of domains would lack corresponding UTF-8 constraints, [RFC9549] updates, modifies, and extends rfc822Name name constraints defined in [RFC5280] to cover SmtpUTF8Mailbox subject alternative names. This ensures that the introduction of SmtpUTF8Mailbox does not violate existing name constraints. Since it is not valid to include non-ASCII UTF-8 characters in the Local-part of rfc822Name name constraints, and since name constraints that include a Local-part are rarely, if at all, used in practice, name constraints updated in [RFC9549] allow the forms that represent all addresses at a host, or all mailboxes in a domain and deprecates rfc822Name name constraints that represent a particular mailbox. That is, rfc822Name constraints with a Local-part SHOULD NOT be used.¶
Constraint comparison with SmtpUTF8Mailbox subjectAltName starts with
the setup steps defined in Section 5. Setup converts the inputs of
the comparison (which is one of a subject distinguished name, an
rfc822Name, or an SmtpUTF8Mailbox subjectAltName, and one of an
rfc822Name name constraint) to constraint comparison form. For both the
name constraint and the subject, this will convert all A-labels and
NR-LDH labels to lowercase. Strip the Local-part and "@"
separator from each rfc822Name and Smtp
Certificate Authorities that wish to issue CA certificates with email
address name constraints MUST use rfc822Name subject alternative
names only. These MUST be IDNA2008
The name constraint requirement with an SmtpUTF8Mailbox subject alternative name is illustrated in the non-normative diagram in Figure 1. The first example (1) illustrates a permitted rfc822Name ASCII-only host name name constraint and the corresponding valid rfc822Name subjectAltName and SmtpUTF8Mailbox subjectAltName email addresses. The second example (2) illustrates a permitted rfc822Name host name name constraint with an A-label, and the corresponding valid rfc822Name subjectAltName and SmtpUTF8Mailbox subjectAltName email addresses. Note that an email address with an ASCII-only Local-part is encoded as rfc822Name despite also having Unicode present in the domain.¶
7. Security Considerations
Use of SmtpUTF8Mailbox for certificate subjectAltName (and issuerAltName) will incur many of the same security considerations described in Section 8 of [RFC5280], but it introduces a new issue by permitting non-ASCII characters in the email address Local-part. This issue, as mentioned in Section 4.4 of [RFC5890] and in Section 4 of [RFC6532], is that use of Unicode introduces the risk of visually similar and identical characters that can be exploited to deceive the recipient. The former document references some means to mitigate against these attacks. See [WEBER] for more background on security issues with Unicode.¶
Additionally, it is possible to encode a string of Unicode
user-perceived characters in multiple ways. While various Unicode
normalization forms exist, [RFC6531] does not mandate the use of any
such forms for the encoding of the Local-part. Thus, it may be possible
to encode a Local-part value in multiple ways. To mitigate against
attacks where different encodings are used by the mail system and the
Certification Authority issues certificates containing
SmtpUTF8Mailbox values, this specification requires an octet-for-octet
comparison of the Local-part. However, requiring the use of binary
comparison may raise interoperabilit
8. Differences from RFC 8398
This document obsoletes [RFC8398]. There are three major changes defined in this specification:¶
9. IANA Considerations
IANA has updated the reference for the id
IANA has updated the reference for the SmtpUTF8Mailbox otherName in the
"SMI Security for PKIX Other Name Forms"
10. References
10.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC3629]
-
Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10
.17487 , , <https:///RFC3629 www >..rfc -editor .org /info /rfc3629 - [RFC5280]
-
Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10
.17487 , , <https:///RFC5280 www >..rfc -editor .org /info /rfc5280 - [RFC5321]
-
Klensin, J., "Simple Mail Transfer Protocol", RFC 5321, DOI 10
.17487 , , <https:///RFC5321 www >..rfc -editor .org /info /rfc5321 - [RFC5890]
-
Klensin, J., "Internationaliz
ed Domain Names for Applications (IDNA): Definitions and Document Framework" , RFC 5890, DOI 10.17487 , , <https:///RFC5890 www >..rfc -editor .org /info /rfc5890 - [RFC5891]
-
Klensin, J., "Internationaliz
ed Domain Names in Applications (IDNA): Protocol" , RFC 5891, DOI 10.17487 , , <https:///RFC5891 www >..rfc -editor .org /info /rfc5891 - [RFC6530]
-
Klensin, J. and Y. Ko, "Overview and Framework for Internationaliz
ed Email" , RFC 6530, DOI 10.17487 , , <https:///RFC6530 www >..rfc -editor .org /info /rfc6530 - [RFC6531]
-
Yao, J. and W. Mao, "SMTP Extension for Internationaliz
ed Email" , RFC 6531, DOI 10.17487 , , <https:///RFC6531 www >..rfc -editor .org /info /rfc6531 - [RFC6532]
-
Yang, A., Steele, S., and N. Freed, "Internationaliz
ed Email Headers" , RFC 6532, DOI 10.17487 , , <https:///RFC6532 www >..rfc -editor .org /info /rfc6532 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8398]
-
Melnikov, A., Ed. and W. Chuang, Ed., "Internationaliz
ed Email Addresses in X.509 Certificates" , RFC 8398, DOI 10.17487 , , <https:///RFC8398 www >..rfc -editor .org /info /rfc8398 - [RFC9549]
-
Housley, R., "Internationaliz
ation Updates to RFC 5280" , RFC 9549, DOI 10.17487 , , <https:///RFC9549 www >..rfc -editor .org /info /rfc9549
10.2. Informative References
- [RFC5912]
-
Hoffman, P. and J. Schaad, "New ASN.1 Modules for the Public Key Infrastructure Using X.509 (PKIX)", RFC 5912, DOI 10
.17487 , , <https:///RFC5912 www >..rfc -editor .org /info /rfc5912 - [WEBER]
-
Weber, C., "Unraveling Unicode: A Bag of Tricks for Bug Hunting", , <https://
www >..lookout .net /files /Chris _Weber _Character %20Transformatio ns %20v1 .7 _IUC33 .pdf
Appendix A. ASN.1 Module
The following ASN.1 module normatively specifies the SmtpUTF8Mailbox structure. This specification uses the ASN.1 definitions from [RFC5912] with the 2002 ASN.1 notation used in that document. [RFC5912] updates normative documents using older ASN.1 notation.¶
Appendix B. Example of SmtpUTF8Mailbox
This non-normative example demonstrates using SmtpUTF8Mailbox as an
otherName in GeneralName to encode the email address
"u+533Bu+751F
The hexadecimal DER encoding of the block is:¶
The text decoding is:¶
The example was encoded using Google's "der-ascii" program and the above text decoding is an output of Peter Gutmann's "dumpasn1" program.¶
Acknowledgments
The authors thank David Benjamin for providing the motivation for this document. Additionally, the authors thank Éric Vyncke, John Levine, Peter van Dijk, Rich Salz, Russ Housley, and Tim Hollebeek for their reviews and feedback, which meaningfully improved the document.¶
The authors also recognize and appreciate the following individuals for their contributions to [RFC8398]:¶
Thank you to Magnus Nystrom for motivating this document. Thanks to Russ Housley, Nicolas Lidzborski, Laetitia Baudoin, Ryan Sleevi, Sean Leonard, Sean Turner, John Levine, and Patrik Falstrom for their feedback. Also special thanks to John Klensin for his valuable input on internationaliz
ation, Unicode, and ABNF formatting; to Jim Schaad for his help with the ASN.1 example and his helpful feedback; and especially to Viktor Dukhovni for helping us with name constraints and his many detailed document reviews.¶