Network Working GroupInternet Engineering Task Force (IETF) G. HustonInternet-DraftRequest for Comments: 8630 APNIC Obsoletes: 7730(if approved)S. WeilerIntended status:Category: Standards Track W3C/MITExpires: November 1, 2019ISSN: 2070-1721 G. Michaelson APNIC S. Kent Unaffiliated T. Bruijnzeels NLnet LabsApril 30,August 2019 Resource Public Key Infrastructure (RPKI) Trust Anchor Locatordraft-ietf-sidrops-https-tal-08Abstract This document defines a Trust Anchor Locator (TAL) for the Resource Public Key Infrastructure (RPKI).TALs allowThe TAL allows Relying Parties in the RPKI to download the current Trust Anchor (TA)CACertification Authority (CA) certificate from one or morelocations,locations and verify that the key of this self-signed certificate matches the key on the TAL. Thus, Relying Parties can be configured with TAkeys,keys but can allow these TAs to change the content of their CA certificate. Inparticularparticular, it allows TAs to change the set of IP Address Delegations and/or Autonomous System Identifier Delegations included in theRFC3779 extensionextension(s) (RFC 3779) of their certificate. This document obsoletes the previous definition ofTrust Anchor Locatorsthe TAL as provided in RFC 7730 by adding support forRFC3986Uniform Resource Identifiers (URIs) (RFC 3986) that useHTTPSHTTP over TLS (HTTPS) (RFC 7230) as the scheme. Status of This Memo ThisInternet-Draftissubmitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documentsan Internet Standards Track document. This document is a product of the Internet Engineering Task Force (IETF).Note that other groups may also distribute working documents as Internet-Drafts. The listIt represents the consensus ofcurrent Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents validthe IETF community. It has received public review and has been approved fora maximumpublication 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 ofsix monthsthis document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany 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 November 1, 2019.https://www.rfc-editor.org/info/rfc8630. Copyright Notice Copyright (c) 2019 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://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 1.1. Terminology. . . . . . . . . . . . . . . . . . . . . . . 3................................................3 1.2. Changes fromRFC7730 . . . . . . . . . . . . . . . . . . 3RFC 7730 ......................................3 2. Trust Anchor Locator. . . . . . . . . . . . . . . . . . . . 3............................................3 2.1. Trust Anchor Locator Motivation. . . . . . . . . . . . . 3............................3 2.2. Trust Anchor Locator File Format. . . . . . . . . . . . 4...........................4 2.3. TAL andTrust AnchorTA Certificate Considerations. . . . . 4......................4 2.4. Example. . . . . . . . . . . . . . . . . . . . . . . . . 6....................................................6 3. Relying Party Use. . . . . . . . . . . . . . . . . . . . . . 6...............................................6 4. URI Scheme Considerations. . . . . . . . . . . . . . . . . . 7.......................................7 5. Security Considerations. . . . . . . . . . . . . . . . . . . 8.........................................8 6. IANA Considerations. . . . . . . . . . . . . . . . . . . . . 8.............................................8 7.Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 8 8.References. . . . . . . . . . . . . . . . . . . . . . . . . 9 8.1.......................................................8 7.1. Normative References. . . . . . . . . . . . . . . . . . 9 8.2........................................8 7.2. Informative References. . . . . . . . . . . . . . . . . 10....................................10 Acknowledgements ..................................................10 Authors' Addresses. . . . . . . . . . . . . . . . . . . . . . . 10................................................11 1. Introduction This document defines a Trust Anchor Locator (TAL) for the Resource Public Key Infrastructure (RPKI) [RFC6480]. This format may be used to distributetrust anchorTrust Anchor (TA) material using a mix of out-of-band and online means. Procedures used by Relying Parties (RPs) to verify RPKI signed objects SHOULD support this format to facilitate interoperability between creators oftrust anchorTA material and RPs. This document obsoletes [RFC7730] by adding support forHTTPS URIsUniform Resource Identifiers (URIs) [RFC3986] that use HTTP over TLS (HTTPS) [RFC7230]in a TAL.as the scheme. 1.1. Terminology 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. 1.2. Changes fromRFC7730RFC 7730 The TAL format defined in this document differs from the definition in [RFC7730] in that: o it allows for the use of the HTTPS scheme in URIs[RFC7230];[RFC7230], and o it allows for the inclusion of an optional comment section. Note that currentRelying PartiesRPs may not support this new format yet.ThereforeTherefore, it is RECOMMENDED that aTrust AnchorTA operatormaintainsmaintain a[RFC7730]TAL file as defined in [RFC7730] for a time aswellwell, until they are satisfied that RP tooling has been updated. 2. Trust Anchor Locator 2.1. Trust Anchor Locator Motivation This document does not propose a new format fortrust anchorTA material. Atrust anchorTA in the RPKI is represented by a self-signed X.509 Certification Authority (CA) certificate, a format commonly used in PKIs and widely supported by RP software. This document specifies a format for data used to retrieve and verify the authenticity of atrust anchorTA in a very simple fashion. That data is referred to as the TAL. The motivation for defining the TAL is to enable selected data in thetrust anchorTA to change, without needing to redistribute thetrust anchorTA per se. In the RPKI, certificates containan RFC3779 extension,one or more extensions [RFC3779] that can contain a set of IP Address Delegations and/or Autonomous System Identifier Delegations. In thisdocumentdocument, we refer to these delegations as the Internet Number Resources(INR)(INRs) contained in an RPKI certificate. The set of INRs associated with an entity acting as atrust anchorTA is likely to change over time. Thus, if one were to use the common PKI convention of distributing atrust anchorTA to RPs in a secure fashion, then this procedure would need to be repeated whenever the INR set for the entity acting as atrust anchorTA changed. By distributing the TAL (in a securefashion),fashion) instead of distributing thetrust anchor,TA, this problem is avoided, i.e., the TAL is constant so long as thetrust anchor'sTA's public key and its location do not change. The TAL is analogous to the TrustAnchorInfo data structure specified in [RFC5914], which is on the Standards Track. That specification could be used to represent the TAL, if one defined an rsync or HTTPS URI extension for that data structure. However, the TAL format was adopted by RPKI implementors prior to the PKIXtrust anchorTA work, and the RPKIimplementerimplementor community has elected to utilize the TALformat,format rather than define the requisite extension. The community also prefers the simplicity of the ASCII encoding of the TAL, versus the binary (ASN.1) encoding for TrustAnchorInfo. 2.2. Trust Anchor Locator File Format In thisdocumentdocument, we define aTrust AnchorTA URI as a URI that can be used toretrievedretrieve a currentTrust AnchorTA certificate. This URI MUST be either an rsync URI[RFC5781],[RFC5781] or an HTTPS URI [RFC7230]. The TAL is an ordered sequence of: 1. an optional comment section consisting of one or more lines each starting with the'#'"#" character, followed byhuman readablehuman-readable informational UTF-8 text, conforming to the restrictions defined insectionSection 2 of [RFC5198], and ending with a line break, 2. a URIsection,section that is comprised of one or more ordered lines, each containing aTrust AnchorTA URI, and ending with a line break, 3. a line break, and 4. a subjectPublicKeyInfo [RFC5280] in DER format [X.509], encoded inBase64base64 (see Section 4 of [RFC4648]). To avoid long lines, line breaks MAY be inserted into theBase64-encodedbase64-encoded string. Note that line breaks in this file can use either "<CRLF>" or "<LF>". 2.3. TAL andTrust AnchorTA Certificate Considerations EachTrust AnchorTA URI in the TAL MUST reference a single object. It MUST NOT reference a directory or any other form of collection of objects. The referenced object MUST be a self-signed CA certificate that conforms to the RPKI certificate profile [RFC6487]. This certificate is thetrust anchorTA in certification path discovery [RFC4158] and validation [RFC5280] [RFC3779]. The validity interval of thistrust anchorTA is chosen such that (1) the "notBefore" time predates the moment that this certificate ispublished,published and (2) the "notAfter" time is after the planned time ofre- issuancereissuance of this certificate. The INR extension(s) of thistrust anchorTA MUST contain a non-empty set of number resources. It MUST NOT use the "inherit" form of the INR extension(s). The INR set described in this certificate is the set of number resources for which the issuing entity is offering itself as a putativetrust anchorTA in the RPKI [RFC6480]. The public key used to verify thetrust anchorTA MUST be the same as the subjectPublicKeyInfo in the CA certificate and in the TAL. Thetrust anchorTA MUST contain a stable keywhichthat does not change when the certificate is reissued due to changes in the INR extension(s), when the certificate is renewed prior to expiration. Because the public key in the TAL and thetrust anchorTA MUST be stable, this motivates operation of that CA in an offline mode. In thatcasecase, a subordinate CA certificate containing the same INRs,oror, intheorytheory, anysub-setsubset of INRs, can be issued for online operations. This allows the entity that issues thetrust anchorTA to keep the corresponding private key of this certificate offline, while issuing all relevant child certificates under the immediate subordinate CA. This measure also allows the Certificate Revocation List (CRL) issued by that entity to be used to revoke the subordinate CA certificate in the event of suspected key compromise of this online operational key pair that is potentially more vulnerable. Thetrust anchorTA MUST be published at a stable URI. When thetrust anchorTA is reissued for any reason, the replacement CA certificate MUST be accessible using the same URI. Because thetrust anchorTA is a self-signed certificate, there is no corresponding CRL that can be used to revoke it, nor is there a manifest [RFC6486] that lists this certificate. If an entity wishes to withdraw a self-signed CA certificate as a putativetrust anchor,TA, for any reason, including key rollover, the entity MUST remove the object from the location referenced in the TAL. Where the TAL contains two or moreTrust AnchorTA URIs,thenthe same self-signed CA certificate MUST be found at each referenced location. In order to increase operational resilience, it is RECOMMENDED that (1) the domain name parts of each of these URIs resolve to distinct IP addresses that are used by a diverse set of repository publicationpoints,points and (2) these IP addresses be included in distinct Route OriginAuthorizations (ROAs)Authorization (ROA) objects signed by different CAs. 2.4. Example # This TAL is intended for documentation purposes only. # Do not attempt to use this in a production setting. rsync://rpki.example.org/rpki/hedgehog/root.cer https://rpki.example.org/rpki/hedgehog/root.cer MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAovWQL2lh6knDx GUG5hbtCXvvh4AOzjhDkSHlj22gn/1oiM9IeDATIwP44vhQ6L/xvuk7W6 Kfa5ygmqQ+xOZOwTWPcrUbqaQyPNxokuivzyvqVZVDecOEqs78q58mSp9 nbtxmLRW7B67SJCBSzfa5XpVyXYEgYAjkk3fpmefU+AcxtxvvHB5OVPIa BfPcs80ICMgHQX+fphvute9XLxjfJKJWkhZqZ0v7pZm2uhkcPx1PMGcrG ee0WSDC3fr3erLueagpiLsFjwwpX6F+Ms8vqz45H+DKmYKvPSstZjCCq9 aJ0qANT9OtnfSDOS+aLRPjZryCNyvvBHxZXqj5YCGKtwIDAQAB 3. Relying Party Use In order to use the TAL to retrieve and validate a (putative)trust anchor,TA, an RP SHOULD: 1. Retrieve the object referenced by (one of) theTrust AnchorTA URI(s) contained in the TAL. 2. Confirm that the retrieved object is a current, self-signed RPKI CA certificate that conforms to the profile as specified in [RFC6487]. 3. Confirm that the public key in the TAL matches the public key in the retrieved object. 4. Perform other checks, as deemed appropriate (locally), to ensure that the RP is willing to accept the entity publishing thisself- signedself-signed CA certificate to be atrust anchor.TA. These tests apply to the validity of attestations made in the context of the RPKI relating to all resources described in the INRextensionextension(s) of this certificate. An RP SHOULD perform these functions for each instance of a TAL that it is holding for this purpose every time the RP performs a resynchronization across the local repository cache. In any case, an RP also SHOULD perform these functions prior to the expiration of the locally cached copy of the retrievedtrust anchorTA referenced by the TAL. In the case where a TAL contains multipleTrust AnchorTA URIs, an RP MAY use a locally defined preference rule to select the URI to retrieve the self-signed RPKI CA certificate that is to be used as atrust anchor.TA. Some examples are: o Using the order provided in the TAL o Selecting theTrust AnchorTA URI randomly from the available list o Creating a prioritized list of URIs based on RP-specific parameters, such as connection establishment delay If the connection to the preferred URIfails,fails or the retrieved CA certificate public key does not match the TAL public key, the RP SHOULD retrieve the CA certificate from the next URI, according to the local preference ranking of URIs. 4. URI Scheme Considerations Please note that the RSYNC protocol provides neither transport security nor any means by which theRelying PartyRP can validate that they are connected to the proper host.ThereTherefore, it is RECOMMENDED that HTTPSisbe used as the preferred scheme. Note that, although a Man in the Middle (MITM) cannot produce a CA certificate that would be considered valid according to the process described in Section 3, this type of attack can preventthattheRelying Party learnsRP from learning about an updated CA certificate.Relying PartiesRPs MUST do TLS certificate and host name validation when they fetch a CA certificate using an HTTPS URI on a TAL. RPs SHOULD log any TLS certificate or host name validation issuesfound,found so that an operator can investigate the cause. It is RECOMMENDED thatRelying PartiesRPs and Repository Servers follow the Best Current Practices outlined in [RFC7525] on the use ofHTTP over TLS (HTTPS)HTTPS [RFC7230].Relying PartiesRPs SHOULD do TLS certificate and host name validation using subjectAltName dNSName identities as described in [RFC6125]. The rules and guidelines defined in [RFC6125] apply here, with the following considerations: oRelying PartiesRPs and Repository Servers SHOULD support the DNS-ID identifier type. The DNS-ID identifier type SHOULD be present in Repository Server certificates. o DNS names in Repository Server certificates SHOULD NOT contain the wildcard character "*". oA Common Name (CN) field may be present in a Repository Server certificate's subject name but SHOULD NOT be used for authentication within the rules described in [RFC6125]. oThis protocol does not require the use of SRV-IDs. o This protocol does not require the use of URI-IDs. 5. Security Considerations Compromise of atrust anchorTA private key permits unauthorized parties to masquerade as atrust anchor,TA, with potentially severe consequences. Reliance on an inappropriate or incorrecttrust anchorTA has similar potentially severe consequences. This TAL does not directly provide a list of resources covered by the referenced self-signed CA certificate. Instead, the RP is referred to thetrust anchorTA itself and the INR extension(s) within this certificate. This provides necessary operational flexibility, but it also allows the certificate issuer to claim to be authoritative for any resource.Relying partiesRPs should either (1) have great confidence in the issuers of such certificates that they are configuring astrust anchors,TAs orthey should(2) issue their own self-signed certificate as atrust anchorTA and, in doing so, impose constraints on the subordinate certificates. 6. IANA Considerations This document has noactions for IANA.IANA actions. 7.Acknowledgements This approach to trust anchor material was originally described by Robert Kisteleki. The authors acknowledge the contributions of Rob Austein and Randy Bush, who assisted with drafting this document and with helpful review comments. The authors acknowledge work of Roque Gagliano, Terry Manderson, and Carlos Martinez Cagnazzo in developing the ideas behind the inclusion of multiple URIs in the TAL. The authors acknowledge Job Snijders for suggesting the inclusion of comments at the start of the TAL. 8.References8.1.7.1. 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, <https://www.rfc-editor.org/info/rfc2119>. [RFC3779] Lynn, C., Kent, S., and K. Seo, "X.509 Extensions for IP Addresses and AS Identifiers", RFC 3779, DOI 10.17487/RFC3779, June 2004, <https://www.rfc-editor.org/info/rfc3779>. [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, January 2005, <https://www.rfc-editor.org/info/rfc3986>. [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, October 2006, <https://www.rfc-editor.org/info/rfc4648>. [RFC5198] Klensin, J. and M. Padlipsky, "Unicode Format for Network Interchange", RFC 5198, DOI 10.17487/RFC5198, March 2008, <https://www.rfc-editor.org/info/rfc5198>. [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, <https://www.rfc-editor.org/info/rfc5280>. [RFC5781] Weiler, S., Ward, D., and R. Housley, "The rsync URI Scheme", RFC 5781, DOI 10.17487/RFC5781, February 2010, <https://www.rfc-editor.org/info/rfc5781>. [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, <https://www.rfc-editor.org/info/rfc6125>. [RFC6480] Lepinski, M. and S. Kent, "An Infrastructure to Support Secure Internet Routing", RFC 6480, DOI 10.17487/RFC6480, February 2012, <https://www.rfc-editor.org/info/rfc6480>. [RFC6487] Huston, G., Michaelson, G., and R. Loomans, "A Profile for X.509 PKIX Resource Certificates", RFC 6487, DOI 10.17487/RFC6487, February 2012, <https://www.rfc-editor.org/info/rfc6487>. [RFC7230] Fielding, R., Ed. and J. Reschke, Ed., "Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing", RFC 7230, DOI 10.17487/RFC7230, June 2014, <https://www.rfc-editor.org/info/rfc7230>. [RFC7525] Sheffer, Y., Holz, R., and P. Saint-Andre, "Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)", BCP 195, RFC 7525, DOI 10.17487/RFC7525, May 2015, <https://www.rfc-editor.org/info/rfc7525>. [RFC7730] Huston, G., Weiler, S., Michaelson, G., and S. Kent, "Resource Public Key Infrastructure (RPKI) Trust Anchor Locator", RFC 7730, DOI 10.17487/RFC7730, January 2016, <https://www.rfc-editor.org/info/rfc7730>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>. [X.509] ITU-T,"The"Information technology - Open Systems Interconnection - The Directory: Public-key and attribute certificate frameworks", ITU-T Recommendation X.509, October2012. 8.2.2016, <https://www.itu.int/rec/T-REC-X.509>. 7.2. Informative References [RFC4158] Cooper, M., Dzambasow, Y., Hesse, P., Joseph, S., and R. Nicholas, "Internet X.509 Public Key Infrastructure: Certification Path Building", RFC 4158, DOI 10.17487/RFC4158, September 2005, <https://www.rfc-editor.org/info/rfc4158>. [RFC5914] Housley, R., Ashmore, S., and C. Wallace, "Trust Anchor Format", RFC 5914, DOI 10.17487/RFC5914, June 2010, <https://www.rfc-editor.org/info/rfc5914>. [RFC6486] Austein, R., Huston, G., Kent, S., and M. Lepinski, "Manifests for the Resource Public Key Infrastructure (RPKI)", RFC 6486, DOI 10.17487/RFC6486, February 2012, <https://www.rfc-editor.org/info/rfc6486>. Acknowledgements This approach to TA material was originally described by Robert Kisteleki. The authors acknowledge the contributions of Rob Austein and Randy Bush, who assisted with drafting this document and with helpful review comments. The authors acknowledge the work of Roque Gagliano, Terry Manderson, and Carlos Martinez-Cagnazzo in developing the ideas behind the inclusion of multiple URIs in the TAL. The authors acknowledge Job Snijders for suggesting the inclusion of comments at the start of the TAL. Authors' Addresses Geoff Huston APNIC Email: gih@apnic.net URI: https://www.apnic.net Samuel Weiler W3C/MIT Email: weiler@csail.mit.edu George Michaelson APNIC Email: ggm@apnic.net URI: https://www.apnic.net Stephen Kent Unaffiliated Email: kent@alum.mit.edu Tim Bruijnzeels NLnet Labs Email: tim@nlnetlabs.nl URI: https://www.nlnetlabs.nl