1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
|
<pre>Internet Engineering Task Force (IETF) A. Melnikov, Ed.
Request for Comments: 8398 Isode Ltd
Updates: <a href="./rfc5280">5280</a> W. Chuang, Ed.
Category: Standards Track Google, Inc.
ISSN: 2070-1721 May 2018
<span class="h1">Internationalized Email Addresses in X.509 Certificates</span>
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 internationalized email address.
This document updates <a href="./rfc5280">RFC 5280</a>.
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 <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc8398">https://www.rfc-editor.org/info/rfc8398</a>.
Copyright Notice
Copyright (c) 2018 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="https://trustee.ietf.org/license-info">https://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">Melnikov & Chuang Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions Used in This Document . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Name Definitions . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-4">4</a>. IDNA2008 . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
5. Matching of Internationalized Email Addresses in X.509
Certificates . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. Name Constraints in Path Validation . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-7">7</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-8">8</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-9">9</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-9.1">9.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-9.2">9.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#appendix-A">Appendix A</a>. ASN.1 Module . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#appendix-B">Appendix B</a>. Example of SmtpUTF8Mailbox . . . . . . . . . . . . . <a href="#page-11">11</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
[<a id="ref-RFC5280">RFC5280</a>] defines the rfc822Name subjectAltName name type for
representing email addresses as described in [<a href="./rfc5321" title=""Simple Mail Transfer Protocol"">RFC5321</a>]. The syntax
of rfc822Name is restricted to a subset of US-ASCII characters and
thus can't be used to represent internationalized email addresses
[<a href="./rfc6531" title=""SMTP Extension for Internationalized Email"">RFC6531</a>]. This document defines a new otherName variant to
represent internationalized email addresses. In addition this
document requires all email address domains in X.509 certificates to
conform to IDNA2008 [<a href="./rfc5890" title=""Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework"">RFC5890</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in This Document</span>
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
<a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] [<a href="./rfc8174" title=""Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words"">RFC8174</a>] when, and only when, they appear in all
capitals, as shown here.
The formal syntax uses the Augmented Backus-Naur Form (ABNF)
[<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>] notation.
<span class="grey">Melnikov & Chuang Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Name Definitions</span>
The GeneralName structure is defined in [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>] and supports many
different name forms including otherName for extensibility. This
section specifies the SmtpUTF8Mailbox name form of otherName so that
internationalized email addresses can appear in the subjectAltName of
a certificate, the issuerAltName of a certificate, or anywhere else
that GeneralName is used.
id-on-SmtpUTF8Mailbox OBJECT IDENTIFIER ::= { id-on 9 }
SmtpUTF8Mailbox ::= UTF8String (SIZE (1..MAX))
-- SmtpUTF8Mailbox conforms to Mailbox as specified
-- in <a href="./rfc6531#section-3.3">Section 3.3 of RFC 6531</a>.
When the subjectAltName (or issuerAltName) extension contains an
internationalized email address with a non-ASCII local-part, the
address MUST be stored in the SmtpUTF8Mailbox name form of otherName.
The format of SmtpUTF8Mailbox is defined as the ABNF rule
SmtpUTF8Mailbox. SmtpUTF8Mailbox is a modified version of the
internationalized Mailbox that was defined in <a href="./rfc6531#section-3.3">Section 3.3 of
[RFC6531]</a>, which was derived from Mailbox as defined in <a href="./rfc5321#section-4.1.2">Section 4.1.2
of [RFC5321]</a>. [<a href="./rfc6531" title=""SMTP Extension for Internationalized Email"">RFC6531</a>] defines the following ABNF rules for Mailbox
whose parts are modified for internationalization: <Local-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 <a href="./rfc6532#section-3.1">Section 3.1 of [RFC6532]</a>.
Also, domain was extended to support U-labels, as defined in
[<a href="./rfc5890" title=""Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework"">RFC5890</a>].
This document further refines internationalized Mailbox ABNF rules as
described in [<a href="./rfc6531" title=""SMTP Extension for Internationalized Email"">RFC6531</a>] and calls this SmtpUTF8Mailbox. In
SmtpUTF8Mailbox, labels that include non-ASCII characters MUST be
stored in U-label (rather than A-label) form [<a href="./rfc5890" title=""Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework"">RFC5890</a>]. This
restriction removes the need to determine which label encoding, A- or
U-label, is present in the domain. As per <a href="./rfc5890#section-2.3.2.1">Section 2.3.2.1 of
[RFC5890]</a>, U-labels are encoded as UTF-8 [<a href="./rfc3629" title=""UTF-8, a transformation format of ISO 10646"">RFC3629</a>] in Normalization
Form C and other properties specified there. In SmtpUTF8Mailbox,
domain labels that solely use ASCII characters (meaning neither A-
nor U-labels) SHALL use NR-LDH restrictions as specified by
<a href="./rfc5890#section-2.3.1">Section 2.3.1 of [RFC5890]</a> and SHALL be restricted to lowercase
letters. NR-LDH stands for "Non-Reserved Letters Digits Hyphen" and
is the set of LDH labels that do not have "--" characters in the
third and forth character position, which excludes "tagged domain
names" such as A-labels. Consistent with the treatment of rfc822Name
in [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>], SmtpUTF8Mailbox is an envelope <Mailbox> and has no
<span class="grey">Melnikov & Chuang Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
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 <a href="#section-6">Section 6</a>,
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
SmtpUTF8Mailbox. This is compatible with legacy software that
supports only rfc822Name (and not SmtpUTF8Mailbox). The appropriate
usage of rfc822Name and SmtpUTF8Mailbox is summarized in Table 1
below.
SmtpUTF8Mailbox is encoded as UTF8String. The UTF8String encoding
MUST NOT contain a Byte-Order-Mark (BOM) [<a href="./rfc3629" title=""UTF-8, a transformation format of ISO 10646"">RFC3629</a>] to aid consistency
across implementations, particularly for comparison.
+-----------------+-------------+--------------+-----------------+
| local-part char | domain char | domain label | subjectAltName |
+-----------------+-------------+--------------+-----------------+
| ASCII-only | ASCII-only | NR-LDH label | rfc822Name |
| non-ASCII | ASCII-only | NR-LDH label | SmtpUTF8Mailbox |
| ASCII-only | non-ASCII | A-label | rfc822Name |
| non-ASCII | non-ASCII | U-label | SmtpUTF8Mailbox |
+-----------------+-------------+--------------+-----------------+
Non-ASCII may additionally include ASCII characters.
Table 1: Email Address Formatting
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IDNA2008</span>
To facilitate comparison between email addresses, all email address
domains in X.509 certificates MUST conform to IDNA2008 [<a href="./rfc5890" title=""Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework"">RFC5890</a>] (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.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Matching of Internationalized Email Addresses in X.509 Certificates</span>
In equivalence comparison with SmtpUTF8Mailbox, there may be some
setup work on one or both inputs depending on whether the input is
already in comparison form. Comparing SmtpUTF8Mailboxes consists 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
depends on context. While some contexts such as certificate path
<span class="grey">Melnikov & Chuang Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
validation in [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>] specify transforming domain to A-label
(Sections <a href="#section-7.2">7.2</a> and <a href="#section-7.5">7.5</a> in [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>] as updated by [<a href="./rfc8399" title=""Internationalization Updates to RFC 5280"">RFC8399</a>]), this
document recommends transforming to UTF-8 U-label instead. This
reduces the likelihood of errors by reducing conversions as more
implementations natively support U-label domains.
Comparison of two SmtpUTF8Mailboxes is straightforward with no setup
work needed. They are considered equivalent if there is an exact
octet-for-octet match. Comparison with email addresses such as
internationalized email address or rfc822Name requires additional
setup steps for domain part and local-part. The initial preparation
for the email addresses is to remove any phrases, comments, and "<"
or ">" characters. This document calls for comparison of domain
labels that include non-ASCII characters to be transformed to
U-labels if not already in that form. The first step is to detect
use of the A-label by using <a href="./rfc5891#section-5.1">Section 5.1 of [RFC5891]</a>. Next, if
necessary, transform any A-labels (US-ASCII) to U-labels (Unicode) as
specified in <a href="./rfc5891#section-5.2">Section 5.2 of [RFC5891]</a>. Finally, if necessary,
convert the Unicode to UTF-8 as specified in <a href="./rfc3629#section-3">Section 3 of [RFC3629]</a>.
For ASCII NR-LDH labels, uppercase letters are converted to lowercase
letters. In setup for SmtpUTF8Mailbox, the email address local-part
MUST conform to the requirements of [<a href="./rfc6530" title=""Overview and Framework for Internationalized Email"">RFC6530</a>] and [<a href="./rfc6531" title=""SMTP Extension for Internationalized Email"">RFC6531</a>],
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> part of an
internationalized email address is already in UTF-8. For rfc822Name,
the local-part, which is IA5String (ASCII), trivially maps to UTF-8
without change. Once setup is complete, they are again compared
octet for octet.
To summarize non-normatively, the comparison steps, including setup,
are:
1. If the domain contains A-labels, transform them to U-labels.
2. If the domain contains ASCII NR-LDH labels, lowercase them.
3. Compare strings octet for octet for equivalence.
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 SmtpUTF8Mailbox, the certificate MUST use multiple
subjectAltNames or issuerAltNames to explicitly carry any additional
email addresses.
<span class="grey">Melnikov & Chuang Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Name Constraints in Path Validation</span>
This section updates <a href="./rfc5280#section-4.2.1.10">Section 4.2.1.10 of [RFC5280]</a> to extend
rfc822Name name constraints to SmtpUTF8Mailbox subjectAltNames.
SmtpUTF8Mailbox-aware path validators will apply name constraint
comparison to the subject distinguished name and both forms of
subject alternative names rfc822Name and SmtpUTF8Mailbox.
Both rfc822Name and SmtpUTF8Mailbox subject alternative names
represent the same underlying email address namespace. Since legacy
CAs constrained to issue certificates for a specific set of domains
would lack corresponding UTF-8 constraints, [<a href="./rfc8399" title=""Internationalization Updates to RFC 5280"">RFC8399</a>] updates,
modifies, and extends rfc822Name name constraints defined in
[<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>] 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
[<a href="./rfc8399" title=""Internationalization Updates to RFC 5280"">RFC8399</a>] 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 by <a href="#section-5">Section 5</a>. 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 an
rfc822Name name constraint, this will convert any domain A-labels to
U-labels. For both the name constraint and the subject, this will
lowercase any domain NR-LDH labels. Strip the local-part and "@"
separator from each rfc822Name and SmtpUTF8Mailbox, leaving just the
domain part. After setup, this follows the comparison steps defined
in <a href="./rfc5280#section-4.2.1.10">Section 4.2.1.10 of [RFC5280]</a> as follows. If the resulting name
constraint domain starts with a "." character, then for the name
constraint to match, a suffix of the resulting subject alternative
name domain MUST match the name constraint (including the leading
".") octet for octet. If the resulting name constraint domain does
not start with a "." character, then for the name constraint to
match, the entire resulting subject alternative name domain MUST
match the name constraint octet for octet.
Certificate Authorities that wish to issue CA certificates with email
address name constraints MUST use rfc822Name subject alternative
names only. These MUST be IDNA2008-conformant names with no mappings
and with non-ASCII domains encoded in A-labels only.
<span class="grey">Melnikov & Chuang Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
The name constraint requirement with 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 A-label, and the corresponding valid
rfc822Name subjectAltName and SmtpUTF8Mailbox subjectAltName email
addresses. Note that an email address with ASCII-only local-part is
encoded as rfc822Name despite also having Unicode present in the
domain.
+-------------------------------------------------------------------+
| Root CA Cert |
+-------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------+
| Intermediate CA Cert |
| Permitted |
| rfc822Name: elementary.school.example.com (1) |
| |
| rfc822Name: xn--pss25c.example.com (2) |
| |
+-------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------+
| Entity Cert (w/explicitly permitted subjects) |
| SubjectAltName Extension |
| rfc822Name: student@elemenary.school.example.com (1) |
| SmtpUTF8Mailbox: u+5B66u+751F@elementary.school.example.com |
| (1) |
| |
| rfc822Name: student@xn--pss25c.example.com (2) |
| SmtpUTF8Mailbox: u+533Bu+751F@u+5927u+5B66.example.com (2) |
| |
+-------------------------------------------------------------------+
Figure 1: Name Constraints with SmtpUTF8Name and rfc822Name
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
Use of SmtpUTF8Mailbox for certificate subjectAltName (and
issuerAltName) will incur many of the same security considerations as
in <a href="./rfc5280#section-8">Section 8 in [RFC5280]</a>, but it introduces a new issue by
permitting non-ASCII characters in the email address local-part.
This issue, as mentioned in <a href="./rfc5890#section-4.4">Section 4.4 of [RFC5890]</a> and in <a href="#section-4">Section 4</a>
<span class="grey">Melnikov & Chuang Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
of [<a href="./rfc6532" title=""Internationalized Email Headers"">RFC6532</a>], 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 [<a href="#ref-WEBER" title=""Attacking Software Globalization"">WEBER</a>] for more background on security
issues with Unicode.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
As described in <a href="#section-3">Section 3</a> and the ASN.1 module identifier defined in
<a href="#appendix-A">Appendix A</a>, IANA has assigned the values described here.
o For the LAMPS-EaiAddresses-2016 ASN.1 module, IANA has registered
value 92 for "id-mod-lamps-eai-addresses-2016" in the "SMI
Security for PKIX Module Identifier" (1.3.6.1.5.5.7.0) registry.
o For the SmtpUTF8Mailbox otherName, IANA has registered value 9 for
id-on-SmtpUTF8Mailbox in the "SMI Security for PKIX Other Name
Forms" (1.3.6.1.5.5.7.8) registry.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. References</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="https://www.rfc-editor.org/info/rfc2119">https://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC3629">RFC3629</a>] Yergeau, F., "UTF-8, a transformation format of ISO
10646", STD 63, <a href="./rfc3629">RFC 3629</a>, DOI 10.17487/RFC3629, November
2003, <<a href="https://www.rfc-editor.org/info/rfc3629">https://www.rfc-editor.org/info/rfc3629</a>>.
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>,
DOI 10.17487/RFC5234, January 2008,
<<a href="https://www.rfc-editor.org/info/rfc5234">https://www.rfc-editor.org/info/rfc5234</a>>.
[<a id="ref-RFC5280">RFC5280</a>] 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", <a href="./rfc5280">RFC 5280</a>, DOI 10.17487/RFC5280, May 2008,
<<a href="https://www.rfc-editor.org/info/rfc5280">https://www.rfc-editor.org/info/rfc5280</a>>.
[<a id="ref-RFC5321">RFC5321</a>] Klensin, J., "Simple Mail Transfer Protocol", <a href="./rfc5321">RFC 5321</a>,
DOI 10.17487/RFC5321, October 2008,
<<a href="https://www.rfc-editor.org/info/rfc5321">https://www.rfc-editor.org/info/rfc5321</a>>.
<span class="grey">Melnikov & Chuang Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
[<a id="ref-RFC5890">RFC5890</a>] Klensin, J., "Internationalized Domain Names for
Applications (IDNA): Definitions and Document Framework",
<a href="./rfc5890">RFC 5890</a>, DOI 10.17487/RFC5890, August 2010,
<<a href="https://www.rfc-editor.org/info/rfc5890">https://www.rfc-editor.org/info/rfc5890</a>>.
[<a id="ref-RFC5891">RFC5891</a>] Klensin, J., "Internationalized Domain Names in
Applications (IDNA): Protocol", <a href="./rfc5891">RFC 5891</a>,
DOI 10.17487/RFC5891, August 2010,
<<a href="https://www.rfc-editor.org/info/rfc5891">https://www.rfc-editor.org/info/rfc5891</a>>.
[<a id="ref-RFC6530">RFC6530</a>] Klensin, J. and Y. Ko, "Overview and Framework for
Internationalized Email", <a href="./rfc6530">RFC 6530</a>, DOI 10.17487/RFC6530,
February 2012, <<a href="https://www.rfc-editor.org/info/rfc6530">https://www.rfc-editor.org/info/rfc6530</a>>.
[<a id="ref-RFC6531">RFC6531</a>] Yao, J. and W. Mao, "SMTP Extension for Internationalized
Email", <a href="./rfc6531">RFC 6531</a>, DOI 10.17487/RFC6531, February 2012,
<<a href="https://www.rfc-editor.org/info/rfc6531">https://www.rfc-editor.org/info/rfc6531</a>>.
[<a id="ref-RFC6532">RFC6532</a>] Yang, A., Steele, S., and N. Freed, "Internationalized
Email Headers", <a href="./rfc6532">RFC 6532</a>, DOI 10.17487/RFC6532, February
2012, <<a href="https://www.rfc-editor.org/info/rfc6532">https://www.rfc-editor.org/info/rfc6532</a>>.
[<a id="ref-RFC8174">RFC8174</a>] Leiba, B., "Ambiguity of Uppercase vs Lowercase in <a href="./rfc2119">RFC</a>
<a href="./rfc2119">2119</a> Key Words", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc8174">RFC 8174</a>, DOI 10.17487/RFC8174,
May 2017, <<a href="https://www.rfc-editor.org/info/rfc8174">https://www.rfc-editor.org/info/rfc8174</a>>.
[<a id="ref-RFC8399">RFC8399</a>] Housley, R., "Internationalization Updates to <a href="./rfc5280">RFC 5280</a>",
<a href="./rfc8399">RFC 8399</a>, DOI 10.17487/RFC8399, May 2018,
<<a href="https://www.rfc-editor.org/info/rfc8399">https://www.rfc-editor.org/info/rfc8399</a>>.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-RFC5912">RFC5912</a>] Hoffman, P. and J. Schaad, "New ASN.1 Modules for the
Public Key Infrastructure Using X.509 (PKIX)", <a href="./rfc5912">RFC 5912</a>,
DOI 10.17487/RFC5912, June 2010,
<<a href="https://www.rfc-editor.org/info/rfc5912">https://www.rfc-editor.org/info/rfc5912</a>>.
[<a id="ref-WEBER">WEBER</a>] Weber, C., "Attacking Software Globalization", March 2010,
<<a href="https://www.lookout.net/files/Chris_Weber_Character%20Transformations%20v1.7_IUC33.pdf">https://www.lookout.net/files/</a>
<a href="https://www.lookout.net/files/Chris_Weber_Character%20Transformations%20v1.7_IUC33.pdf">Chris_Weber_Character%20Transformations%20v1.7_IUC33.pdf</a>>.
<span class="grey">Melnikov & Chuang Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. ASN.1 Module</span>
The following ASN.1 module normatively specifies the SmtpUTF8Mailbox
structure. This specification uses the ASN.1 definitions from
[<a href="./rfc5912" title=""New ASN.1 Modules for the Public Key Infrastructure Using X.509 (PKIX)"">RFC5912</a>] with the 2002 ASN.1 notation used in that document.
[<a href="./rfc5912" title=""New ASN.1 Modules for the Public Key Infrastructure Using X.509 (PKIX)"">RFC5912</a>] updates normative documents using older ASN.1 notation.
LAMPS-EaiAddresses-2016
{ iso(1) identified-organization(3) dod(6)
internet(1) security(5) mechanisms(5) pkix(7) id-mod(0)
id-mod-lamps-eai-addresses-2016(92) }
DEFINITIONS IMPLICIT TAGS ::=
BEGIN
IMPORTS
OTHER-NAME
FROM PKIX1Implicit-2009
{ iso(1) identified-organization(3) dod(6) internet(1) security(5)
mechanisms(5) pkix(7) id-mod(0) id-mod-pkix1-implicit-02(59) }
id-pkix
FROM PKIX1Explicit-2009
{ iso(1) identified-organization(3) dod(6) internet(1) security(5)
mechanisms(5) pkix(7) id-mod(0) id-mod-pkix1-explicit-02(51) } ;
--
-- otherName carries additional name types for subjectAltName,
-- issuerAltName, and other uses of GeneralNames.
--
id-on OBJECT IDENTIFIER ::= { id-pkix 8 }
SmtpUtf8OtherNames OTHER-NAME ::= { on-SmtpUTF8Mailbox, ... }
on-SmtpUTF8Mailbox OTHER-NAME ::= {
SmtpUTF8Mailbox IDENTIFIED BY id-on-SmtpUTF8Mailbox
}
id-on-SmtpUTF8Mailbox OBJECT IDENTIFIER ::= { id-on 9 }
SmtpUTF8Mailbox ::= UTF8String (SIZE (1..MAX))
-- SmtpUTF8Mailbox conforms to Mailbox as specified
-- in <a href="./rfc6531#section-3.3">Section 3.3 of RFC 6531</a>.
END
<span class="grey">Melnikov & Chuang Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
<span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. Example of SmtpUTF8Mailbox</span>
This non-normative example demonstrates using SmtpUTF8Mailbox as an
otherName in GeneralName to encode the email address
"u+8001u+5E2B@example.com".
The hexadecimal DER encoding of the email address is:
A022060A 2B060105 05070012 0809A014 0C12E880 81E5B8AB 40657861
6D706C65 2E636F6D
The text decoding is:
0 34: [0] {
2 10: OBJECT IDENTIFIER '1 3 6 1 5 5 7 0 18 8 9'
14 20: [0] {
16 18: UTF8String '..@example.com'
: }
: }
Figure 2
The example was encoded on the OSS Nokalva ASN.1 Playground and the
above text decoding is an output of Peter Gutmann's "dumpasn1"
program.
Acknowledgements
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 internationalization, 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.
<span class="grey">Melnikov & Chuang Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc8398">RFC 8398</a> I18N Mail Addresses in X.509 Certificates May 2018</span>
Authors' Addresses
Alexey Melnikov (editor)
Isode Ltd
14 Castle Mews
Hampton, Middlesex TW12 2NP
United Kingdom
Email: Alexey.Melnikov@isode.com
Weihaw Chuang (editor)
Google, Inc.
1600 Amphitheater Parkway
Mountain View, CA 94043
United States of America
Email: weihaw@google.com
Melnikov & Chuang Standards Track [Page 12]
</pre>
|