TBD Working Group R. Salz Internet-Draft Akamai Technologies Intended status: Standards Track 4 February 2021 Expires: 8 August 2021 Use the SAN field draft-rsalz-use-san-00 Abstract In the decade since [RFC6125] was published, the subjectAltName extension, as defined in [RFC5280] has become ubiquitous. This document updates [RFC6125] to specify that the fall-back techniques of using commonName attribute to identify the service MUST NOT be used. Discussion Venues This note is to be removed before publishing as an RFC. Source for this draft and an issue tracker can be found at https://github.com/richsalz/draft-rsalz-use-san. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 8 August 2021. Copyright Notice Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved. Salz Expires 8 August 2021 [Page 1] Internet-Draft Use the SAN field February 2021 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 2 3. The New Rules . . . . . . . . . . . . . . . . . . . . . . . . 3 3.1. Designing Application Protocols . . . . . . . . . . . . . 3 3.2. Representing Server Identity . . . . . . . . . . . . . . 3 3.3. Verifying Service Identity . . . . . . . . . . . . . . . 3 4. Constraints on Wildcards . . . . . . . . . . . . . . . . . . 3 5. Security Considerations . . . . . . . . . . . . . . . . . . . 4 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 4 7. Normative References . . . . . . . . . . . . . . . . . . . . 4 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 4 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 5 1. Introduction In the decade since [RFC6125] was published, the subjectAltName extension, as defined in [RFC5280] has become ubiquitous. This document updates [RFC6125] to specify that the fall-back techniques of using commonName attribute to identify the service MUST NOT be used. 2. Conventions and Definitions 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. The terminology from [RFC6125] is used here. Specifically, the following terms and brief definition (as a reminder): * CN-ID: the Common Name element from a Distingiushed Name. * DNS-ID, SRV-ID, URI-ID: different types of entries in a subjectAltName extension. Salz Expires 8 August 2021 [Page 2] Internet-Draft Use the SAN field February 2021 3. The New Rules The CN-ID MUST NOT be used. The appropriate value in the subjectAltName extension MUST be used to get the presented identity of the server. While not discussed in [RFC6125], this section also implicitly prohibits the use of the Domain Component or emailAddress RDN's. The following sections repeat the above rule in other forms, for the purpose of updating [RFC6125]. 3.1. Designing Application Protocols Applications should determine which form of name they want to use, and specify the appropriate subjectAltName extension. Unless there are reasons to do otherwise, applications SHOULD use the DNS-ID form. 3.2. Representing Server Identity Severs either MUST NOT issue a CN-ID, or MUST use a form for the Common Name RDN that cannot be mistaken for an identifier. Not using Common Name is preferred. 3.3. Verifying Service Identity When constructing a list of reference identifiers, the client MUST NOT include any CN-ID present in the certificate. This means that section 6.4.4 of [RFC6125] MUST be ignored. 4. Constraints on Wildcards Wildcard certificates are discussed in section 7.2 of [RFC6125], which says that the specifications "are not clear or consistent" about where a wildcard can appear. This documents specifies that a wildcard can appear * only as the left-most label; or * as the last character in a left-most label Salz Expires 8 August 2021 [Page 3] Internet-Draft Use the SAN field February 2021 5. Security Considerations The CN-ID, domainComponent, and emailAddress RDN fields are unstructured free text, and using them is dependant on ordering and encoding concerns. In addition, their evaluation when PKIX nameConstraints are present is ambiguous. This document removes those fields from use, so a source of possible errors is removed. Because of the ambiguity around wildcards, [RFC6125] mentions that it is possible to have exploitable differences in behavior. By simplifying those practices to one rule, this source of errors should be avoided. All other security considerations of [RFC6125] and its dependant documents are still relevant. 6. IANA Considerations This document has no IANA actions. 7. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [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/RFC5280, May 2008, . [RFC6125] Saint-Andre, P. and J. Hodges, "Representation and Verification of Domain-Based Application Service Identity within Internet Public Key Infrastructure Using X.509 (PKIX) Certificates in the Context of Transport Layer Security (TLS)", RFC 6125, DOI 10.17487/RFC6125, March 2011, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . Acknowledgments TODO acknowledge. Salz Expires 8 August 2021 [Page 4] Internet-Draft Use the SAN field February 2021 Author's Address Rich Salz Akamai Technologies Email: rsalz@akamai.com Salz Expires 8 August 2021 [Page 5]