<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?rfc sortrefs="yes"?>
<?rfc subcompact="no"?>
<?rfc symrefs="yes"?>
<?rfc toc="yes"?>
<?rfc tocdepth="3"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-sidrops-rfc6482bis-01" ipr="trust200902" xml:lang="en" sortRefs="true" submissionType="IETF" consensus="true" obsoletes="6482" version="3">
  <front>
    <title>
      A Profile for Route Origin Authorizations (ROAs)
    </title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-sidrops-rfc6482bis"/>
    <author fullname="Job Snijders" initials="J." surname="Snijders">
      <organization>Fastly</organization>
      <address>
        <postal>
          <street/>
          <code/>
          <city>Amsterdam</city>
          <country>Netherlands</country>
        </postal>
        <email>job@fastly.com</email>
      </address>
    </author>
    <author fullname="Matthew Lepinski" initials="M." surname="Lepinski">
      <organization>New College Florida</organization>
      <address>
        <postal>
          <street/>
          <code/>
          <city/>
          <country/>
        </postal>
        <email>mlepinski@ncf.edu</email>
      </address>
    </author>
    <author fullname="Derrick Kong" initials="D." surname="Kong">
      <organization>Raytheon</organization>
      <address>
        <postal>
          <street/>
          <code/>
          <city/>
          <country/>
        </postal>
        <email>derrick.kong@raytheon.com</email>
      </address>
    </author>
    <author fullname="Stephen Kent" initials="S." surname="Kent">
      <organization>Independent</organization>
      <address>
        <postal>
          <street/>
          <code/>
          <city/>
          <country/>
        </postal>
        <email>kent@alum.mit.edu</email>
      </address>
    </author>
    <abstract>
      <t>
         This document defines a standard profile for Route Origin Authorizations (ROAs).
         A ROA is a digitally signed object that provides a means of verifying that an IP address block holder has authorized an Autonomous System (AS) to originate routes to one or more prefixes within the address block.
         This document obsoletes RFC 6482.
      </t>
    </abstract>
    <note>
      <name>Requirements Language</name>
      <t>
        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 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.
      </t>
    </note>
  </front>
  <middle>
    <section anchor="intro">
      <name>Introduction</name>
      <t>
        The primary purpose of the Resource Public Key Infrastructure (RPKI) is to improve routing security.
        (See <xref target="RFC6480"/> for more information.)
        As part of this system, a mechanism is needed to allow entities to verify that an AS has been given permission by an IP address block holder to advertise routes to one or more prefixes within that block.
        A ROA provides this function.
      </t>
      <t>
        The ROA makes use of the template for RPKI digitally signed objects [RFC6488], which defines a Crytopgraphic Message Syntax (CMS) <xref target="RFC5652"/> wrapper for the ROA content as well as a generic validation procedure for RPKI signed objects.
        Therefore, to complete the specification of the ROA (see Section 4 of <xref target="RFC6488"/>), this document defines:
      </t>
      <ul>
        <li>
          The OID that identifies the signed object as being a ROA.
          (This OID appears within the eContentType in the encapContentInfo object as well as the content-type signed attribute in the signerInfo object).
        </li>
        <li>
          The ASN.1 syntax for the ROA eContent.
          (This is the payload that specifies the AS being authorized to originate routes as well as the prefixes to which the AS may originate routes.)
          The ROA eContent is ASN.1 encoded using the Distinguished Encoding Rules (DER) <xref target="X.690"/>.
        </li>
        <li>
          Additional steps required to validate ROAs (in addition to the validation steps specified in <xref target="RFC6488"/>).
        </li>
      </ul>
      <section anchor="Changes">
        <name>Changes from RFC6482</name>
        <t>
          This section summarizes the significant changes between <xref target="RFC6482"/> and the profile described in this document.
        </t>
        <ul>
          <li>Clarifications on the requirements for IP Addresses and AS Identifiers X.509 certificate extension.</li>
          <li>Strengthening of ASN.1 formal notation.</li>
          <li>Incorporate errata.</li>
          <li>Add an example ROA payload and ROA as appendix.</li>
        </ul>
      </section>
    </section>
    <section anchor="Related">
      <name>Related Work</name>
      <t>
        It is assumed that the reader is familiar with the terms and concepts described in "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile" <xref target="RFC5280"/> and "X.509 Extensions for IP Addresses and AS Identifiers" <xref target="RFC3779"/>.
      </t>
      <t>
        Additionally, this document makes use of the RPKI signed object profile <xref target="RFC6488"/>; thus, familiarity with that document is assumed.
        Note that the RPKI signed object profile makes use of certificates adhering to the RPKI Resource Certificate Profile <xref target="RFC6487"/>; thus, familiarly with that profile is also assumed.
      </t>
    </section>
    <section anchor="content">
      <name>The ROA ContentType</name>
      <t>
        The content-type for a ROA is defined as routeOriginAuthz and has the numerical value of 1.2.840.113549.1.9.16.1.24.
      </t>
      <t>
        This OID MUST appear both within the eContentType in the encapContentInfo object as well as the ContentType signed attribute in the signerInfo object (see <xref target="RFC6488"/>).
      </t>
    </section>
    <section anchor="econtent">
      <name>The ROA eContent</name>
      <t>
        The content of a ROA identifies a single AS that has been authorized by the address space holder to originate routes and a list of one or more IP address prefixes that will be advertised.
        If the address space holder needs to authorize multiple ASes to advertise the same set of address prefixes, the holder issues multiple ROAs, one per AS number.
        A ROA is formally defined as:
      </t>
      <sourcecode type="asn.1" originalSrc="RouteOriginAttestation-2022.asn">RPKI-ROA-2022 { iso(1) member-body(2) us(840) rsadsi(113549)
  pkcs(1) pkcs9(9) smime(16) mod(0) id-mod-rpkiROA-2022(TBD) }

DEFINITIONS EXPLICIT TAGS ::=
BEGIN

IMPORTS
  CONTENT-TYPE
  FROM CryptographicMessageSyntax-2010 -- in [RFC6268]
    { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
      pkcs-9(9) smime(16) modules(0) id-mod-cms-2009(58) } ;

ct-routeOriginAttestation CONTENT-TYPE ::=
  { TYPE RouteOriginAttestation
    IDENTIFIED BY id-ct-routeOriginAuthz }

id-ct-routeOriginAuthz OBJECT IDENTIFIER ::=
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
    pkcs-9(9) id-smime(16) id-ct(1) routeOriginAuthz(24) }

RouteOriginAttestation ::= SEQUENCE {
  version [0]           INTEGER DEFAULT 0,
  asID                  ASID,
  ipAddrBlocks          SEQUENCE (SIZE(1..2)) OF ROAIPAddressFamily }

ASID ::= INTEGER (0..4294967295)

ROAIPAddressFamily ::= SEQUENCE {
  -- Note: addressFamily can only be '0001'H (IPv4) or '0002'H (IPv6) --
  addressFamily         OCTET STRING (SIZE(2)),
  addresses             SEQUENCE (SIZE(1..MAX)) OF ROAIPAddress
}

ROAIPAddress ::= SEQUENCE {
  address               IPAddress,
  -- Note: maxLength must be equal or larger than size of IPAddress, --
  -- and equal or smaller to what the AFI context permits --
  maxLength             INTEGER (0..128) OPTIONAL
}

-- Note: if the ROAIPAddressFamily's addressFamily is IPv4, the  --
-- IPAddress' size cannot exceed 32; conversely if addressFamily --
-- is IPv6, size can't exceed 128.                               --
IPAddress ::= BIT STRING (SIZE(0..128))

END
</sourcecode>
      <section>
        <name>version</name>
        <t>
          The version number of the RouteOriginAttestation MUST be 0.
        </t>
      </section>
      <section>
        <name>asID</name>
        <t>
          The asID field contains the AS number that is authorized to originate routes to the given IP address prefixes.
        </t>
      </section>
      <section>
        <name>ipAddrBlocks</name>
        <t>
          The ipAddrBlocks field encodes the set of IP address prefixes to which the AS is authorized to originate routes.
          Note that the syntax here is more restrictive than that used in the IP Address Delegation extension defined in RFC 3779.
          That extension can represent arbitrary address ranges, whereas ROAs need to represent only prefixes.
        </t>
        <t>
          Within the ROAIPAddressFamily structure, addressFamily contains the Address Family Identifier (AFI) of an IP address family.
          This specification only supports IPv4 and IPv6.
          Therefore, addressFamily MUST be either 0001 or 0002.
          There MUST be only one instance of ROAIPAddressFamily per unique AFI.
          The ROAIPAddressFamily structure MUST NOT appear more than twice.
        </t>
        <t>
          Within a ROAIPAddress structure, the addresses field represents prefixes as a sequence of type IPAddress.
          (See [RFC3779] for more details).
          If present, the maxLength MUST be an integer greater than or equal to the length of the accompanying prefix, and less than or equal to the length (in bits) of an IP address in the address family (32 for IPv4 and 128 for IPv6).
          When present, the maxLength specifies the maximum length of the IP address prefix that the AS is authorized to advertise.
          (For example, if the IP address prefix is 203.0.113/24 and the maxLength is 26, the AS is authorized to advertise any more specific prefix with a maximum length of 26.
          In this example, the AS would be authorized to advertise 203.0.113/24, 203.0.113.128/25, or 203.0.113.0/25, but not 203.0.113.0/27.)
          When the maxLength is not present, the AS is only authorized to advertise the exact prefix specified in the ROA.
        </t>
        <t>
          Note that a valid ROA may contain an IP address prefix (within a ROAIPAddress element) that is encompassed by another IP address prefix (within a separate ROAIPAddress element).
          For example, a ROA may contain the prefix 203.0.113/24 with maxLength 26, as well as the prefix 203.0.113.0/28 with maxLength 28.
          (Such a ROA would authorize the indicated AS to advertise any prefix beginning with 203.0.113 with a minimum length of 24 and a maximum length of 26, as well as the specific prefix 203.0.113.0/28.)
          Additionally, a ROA MAY contain two ROAIPAddress elements, where the IP address prefix is identical in both cases.
          However, this is NOT RECOMMENDED as, in such a case, the ROAIPAddress with the shorter maxLength grants no additional privileges to the indicated AS and thus can be omitted without changing the meaning of the ROA.
        </t>
      </section>
    </section>
    <section>
      <name>ROA Validation</name>
      <t>
          Before a relying party can use a ROA to validate a routing announcement, the relying party MUST first validate the ROA.
          To validate a ROA, the relying party MUST perform all the validation checks specified in <xref target="RFC6488"/> as well as the following additional ROA-specific validation steps.
      </t>
      <ul>
        <li>
            The IP Address Delegation extension <xref target="RFC3779"/> is present in the end-entity (EE) certificate (contained within the ROA), and every IP address prefix(es) in the ROA payload is contained within the set of IP addresses specified by the EE certificate's IP Address Delegation extension.
          </li>
        <li>
            The EE certificate MUST NOT use "inherit" elements as described in <xref target="RFC3779"/>.
          </li>
        <li>
            The Autonomous System Identifier Delegation Extension described in <xref target="RFC3779"/> is not used in Route Origin Authorizations and MUST NOT be present.
          </li>
      </ul>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>
        There is no assumption of confidentiality for the data in a ROA; it is anticipated that ROAs will be stored in repositories that are accessible to all ISPs, and perhaps to all Internet users.
        There is no explicit authentication associated with a ROA, since the PKI used for ROA validation provides authorization but not authentication.
        Although the ROA is a signed, application-layer object, there is no intent to convey non-repudiation via a ROA.
      </t>
      <t>
        The purpose of a ROA is to convey authorization for an AS to originate a route to the prefix(es) in the ROA.
        Thus, the integrity of a ROA MUST be established.
        The ROA specification makes use of the RPKI signed object format; thus, all security considerations in <xref target="RFC6488"/> also apply to ROAs.
        Additionally, the signed object profile uses the CMS signed message format for integrity; thus, ROAs inherit all security considerations associated with that data structure.
      </t>
      <t>
        The right of the ROA signer to authorize the target AS to originate routes to the prefix(es) is established through use of the address space and AS number PKI described in <xref target="RFC6480"/>.
        Specifically, one MUST verify the signature on the ROA using an X.509 certificate issued under this PKI, and check that the prefix(es) in the ROA are contained within those in the certificate's IP Address Delegation Extension.
      </t>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <section>
        <name>SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1)</name>
        <t>
          The IANA has allocated for this document in the "SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1)" registry:
        </t>
        <artwork>
<![CDATA[
Decimal   Description             References
---------------------------------------------------------------
  24      id-ct-routeOriginAuthz  [RFC6482][RFC-to-be]
]]>
        </artwork>
        <t>
          Upon publication of this document, IANA is requested to reference the RFC publication instead of this draft.
        </t>
      </section>
      <section>
        <name>RPKI Signed Objects sub-registry</name>
        <t>
          The IANA has registered the OID for the RPKI Signed Checklist in the "RPKI Signed Objects" registry created by <xref target="RFC6488"/> as follows:
        </t>
        <artwork>
<![CDATA[
Name              OID                         Specification
-------------------------------------------------------------
ROA               1.2.840.113549.1.9.16.1.24  [RFC6482][RFC-TBD]
]]>
        </artwork>
      </section>
      <section>
        <name>File Extension</name>
        <t>
          The IANA has added an item for the ROA file extension to the "RPKI Repository Name Schemes" registry created by <xref target="RFC6481"/> as follows:
        </t>
        <artwork>
<![CDATA[
Filename Extension  RPKI Object                     Reference
------------------------------------------------------------------------
       .roa         Route Origination Authorization [RFC6481][RFC-to-be]
]]>
        </artwork>
        <t>
          Upon publication of this document, IANA is requested to make this addition permanent and to reference the RFC publication instead of this draft.
        </t>
      </section>
      <section>
        <name>SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)</name>
        <t>
          The IANA is requested to allocate for this document in the "SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)" registry:
        </t>
        <artwork>
<![CDATA[
Decimal  Description                      References
-----------------------------------------------------------------------
    TBD  id-mod-rpkiROA-2022              [RFC-to-be]
]]>
        </artwork>
      </section>
      <section>
        <name>Media Type</name>
        <t>
          The IANA is requested to update the media type application/rpki-roa in the "Media Type" registry as follows:
        </t>
        <artwork>
<![CDATA[
   Type name: application
   Subtype name: rpki-roa
   Required parameters: N/A
   Optional parameters: N/A
   Encoding considerations: binary
   Security considerations: Carries an RPKI ROA [RFC-to-be].
       This media type contains no active content. See
       Section 6 of [RFC-to-be] for further information.
   Interoperability considerations: None
   Published specification: [RFC-to-be]
   Applications that use this media type: RPKI operators
   Additional information:
     Content: This media type is a signed object, as defined
         in [RFC6488], which contains a payload of a list of
         prefixes and an AS identifer as defined in [RFC-to-be].
     Magic number(s): None
     File extension(s): .roa
     Macintosh file type code(s):
   Person & email address to contact for further information:
     Job Snijders <job@fastly.com>
   Intended usage: COMMON
   Restrictions on usage: None
   Change controller: IETF
]]>
        </artwork>
      </section>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized.  This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
          <format target="https://www.rfc-editor.org/info/rfc2119" type="TXT"/>
        </reference>
        <reference anchor="RFC3779" target="https://www.rfc-editor.org/info/rfc3779" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3779.xml">
          <front>
            <title>X.509 Extensions for IP Addresses and AS Identifiers</title>
            <author fullname="C. Lynn" initials="C." surname="Lynn"/>
            <author fullname="S. Kent" initials="S." surname="Kent"/>
            <author fullname="K. Seo" initials="K." surname="Seo"/>
            <date month="June" year="2004"/>
            <abstract>
              <t>This document defines two X.509 v3 certificate extensions.  The first binds a list of IP address blocks, or prefixes, to the subject of a certificate.  The second binds a list of autonomous system identifiers to the subject of a certificate.  These extensions may be used to convey the authorization of the subject to use the IP addresses and autonomous system identifiers contained in the extensions. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3779"/>
          <seriesInfo name="DOI" value="10.17487/RFC3779"/>
          <format target="https://www.rfc-editor.org/info/rfc3779" type="TXT"/>
        </reference>
        <reference anchor="RFC5652" target="https://www.rfc-editor.org/info/rfc5652" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5652.xml">
          <front>
            <title>Cryptographic Message Syntax (CMS)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="September" year="2009"/>
            <abstract>
              <t>This document describes the Cryptographic Message Syntax (CMS).  This syntax is used to digitally sign, digest, authenticate, or encrypt arbitrary message content. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="70"/>
          <seriesInfo name="RFC" value="5652"/>
          <seriesInfo name="DOI" value="10.17487/RFC5652"/>
          <format target="https://www.rfc-editor.org/info/rfc5652" type="TXT"/>
        </reference>
        <reference anchor="RFC6481" target="https://www.rfc-editor.org/info/rfc6481" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6481.xml">
          <front>
            <title>A Profile for Resource Certificate Repository Structure</title>
            <author fullname="G. Huston" initials="G." surname="Huston"/>
            <author fullname="R. Loomans" initials="R." surname="Loomans"/>
            <author fullname="G. Michaelson" initials="G." surname="Michaelson"/>
            <date month="February" year="2012"/>
            <abstract>
              <t>This document defines a profile for the structure of the Resource Public Key Infrastructure (RPKI) distributed repository.  Each individual repository publication point is a directory that contains files that correspond to X.509/PKIX Resource Certificates, Certificate Revocation Lists and signed objects.  This profile defines the object (file) naming scheme, the contents of repository publication points (directories), and a suggested internal structure of a local repository cache that is intended to facilitate synchronization across a distributed collection of repository publication points and to facilitate certification path construction. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6481"/>
          <seriesInfo name="DOI" value="10.17487/RFC6481"/>
          <format target="https://www.rfc-editor.org/info/rfc6481" type="TXT"/>
        </reference>
        <reference anchor="RFC6482" target="https://www.rfc-editor.org/info/rfc6482" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6482.xml">
          <front>
            <title>A Profile for Route Origin Authorizations (ROAs)</title>
            <author fullname="M. Lepinski" initials="M." surname="Lepinski"/>
            <author fullname="S. Kent" initials="S." surname="Kent"/>
            <author fullname="D. Kong" initials="D." surname="Kong"/>
            <date month="February" year="2012"/>
            <abstract>
              <t>This document defines a standard profile for Route Origin Authorizations (ROAs).  A ROA is a digitally signed object that provides a means of verifying that an IP address block holder has authorized an Autonomous System (AS) to originate routes to one or more prefixes within the address block. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6482"/>
          <seriesInfo name="DOI" value="10.17487/RFC6482"/>
          <format target="https://www.rfc-editor.org/info/rfc6482" type="TXT"/>
        </reference>
        <reference anchor="RFC6487" target="https://www.rfc-editor.org/info/rfc6487" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6487.xml">
          <front>
            <title>A Profile for X.509 PKIX Resource Certificates</title>
            <author fullname="G. Huston" initials="G." surname="Huston"/>
            <author fullname="G. Michaelson" initials="G." surname="Michaelson"/>
            <author fullname="R. Loomans" initials="R." surname="Loomans"/>
            <date month="February" year="2012"/>
            <abstract>
              <t>This document defines a standard profile for X.509 certificates for the purpose of supporting validation of assertions of "right-of-use" of Internet Number Resources (INRs).  The certificates issued under this profile are used to convey the issuer's authorization of the subject to be regarded as the current holder of a "right-of-use" of the INRs that are described in the certificate.  This document contains the normative specification of Certificate and Certificate Revocation List (CRL) syntax in the Resource Public Key Infrastructure (RPKI).  This document also specifies profiles for the format of certificate requests and specifies the Relying Party RPKI certificate path validation procedure. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6487"/>
          <seriesInfo name="DOI" value="10.17487/RFC6487"/>
          <format target="https://www.rfc-editor.org/info/rfc6487" type="TXT"/>
        </reference>
        <reference anchor="RFC6488" target="https://www.rfc-editor.org/info/rfc6488" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6488.xml">
          <front>
            <title>Signed Object Template for the Resource Public Key Infrastructure (RPKI)</title>
            <author fullname="M. Lepinski" initials="M." surname="Lepinski"/>
            <author fullname="A. Chi" initials="A." surname="Chi"/>
            <author fullname="S. Kent" initials="S." surname="Kent"/>
            <date month="February" year="2012"/>
            <abstract>
              <t>This document defines a generic profile for signed objects used in the Resource Public Key Infrastructure (RPKI).  These RPKI signed objects make use of Cryptographic Message Syntax (CMS) as a standard encapsulation format. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6488"/>
          <seriesInfo name="DOI" value="10.17487/RFC6488"/>
          <format target="https://www.rfc-editor.org/info/rfc6488" type="TXT"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
          <format target="https://www.rfc-editor.org/info/rfc8174" type="TXT"/>
        </reference>
        <reference anchor="X.690">
          <front>
            <title>Information Technology -- ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)</title>
            <author>
              <organization>ITU-T</organization>
            </author>
            <date year="2015"/>
          </front>
          <seriesInfo name="ITU-T" value="Recommendation X.690"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5280.xml">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author fullname="D. Cooper" initials="D." surname="Cooper"/>
            <author fullname="S. Santesson" initials="S." surname="Santesson"/>
            <author fullname="S. Farrell" initials="S." surname="Farrell"/>
            <author fullname="S. Boeyen" initials="S." surname="Boeyen"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="W. Polk" initials="W." surname="Polk"/>
            <date month="May" year="2008"/>
            <abstract>
              <t>This memo profiles the X.509 v3 certificate and X.509 v2 certificate revocation list (CRL) for use in the Internet.  An overview of this approach and model is provided as an introduction.  The X.509 v3 certificate format is described in detail, with additional information regarding the format and semantics of Internet name forms.  Standard certificate extensions are described and two Internet-specific extensions are defined.  A set of required certificate extensions is specified.  The X.509 v2 CRL format is described in detail along with standard and Internet-specific extensions.  An algorithm for X.509 certification path validation is described.  An ASN.1 module and examples are provided in the appendices. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5280"/>
          <seriesInfo name="DOI" value="10.17487/RFC5280"/>
          <format target="https://www.rfc-editor.org/info/rfc5280" type="TXT"/>
        </reference>
        <reference anchor="RFC6480" target="https://www.rfc-editor.org/info/rfc6480" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6480.xml">
          <front>
            <title>An Infrastructure to Support Secure Internet Routing</title>
            <author fullname="M. Lepinski" initials="M." surname="Lepinski"/>
            <author fullname="S. Kent" initials="S." surname="Kent"/>
            <date month="February" year="2012"/>
            <abstract>
              <t>This document describes an architecture for an infrastructure to support improved security of Internet routing.  The foundation of this architecture is a Resource Public Key Infrastructure (RPKI) that represents the allocation hierarchy of IP address space and Autonomous System (AS) numbers; and a distributed repository system for storing and disseminating the data objects that comprise the RPKI, as well as other signed objects necessary for improved routing security.  As an initial application of this architecture, the document describes how a legitimate holder of IP address space can explicitly and verifiably authorize one or more ASes to originate routes to that address space.  Such verifiable authorizations could be used, for example, to more securely construct BGP route filters.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6480"/>
          <seriesInfo name="DOI" value="10.17487/RFC6480"/>
          <format target="https://www.rfc-editor.org/info/rfc6480" type="TXT"/>
        </reference>
        <reference anchor="RFC4648" target="https://www.rfc-editor.org/info/rfc4648" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4648.xml">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
            <date month="October" year="2006"/>
            <abstract>
              <t>This document describes the commonly used base 64, base 32, and base 16 encoding schemes.  It also discusses the use of line-feeds in encoded data, use of padding in encoded data, use of non-alphabet characters in encoded data, use of different encoding alphabets, and canonical encodings. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4648"/>
          <seriesInfo name="DOI" value="10.17487/RFC4648"/>
          <format target="https://www.rfc-editor.org/info/rfc4648" type="TXT"/>
        </reference>
      </references>
    </references>
    <section anchor="acknowledgements">
      <name>Acknowledgements</name>
      <t>
        The authors wish to thank Charles Gardiner and Russ Housley for their help and contributions.
        Additionally, the authors thank Rob Austein, Roque Gagliano, Danny McPherson, and Sam Weiler for their careful reviews and helpful comments.
      </t>
    </section>
    <section anchor="example">
      <name>Example ROA eContent Payload</name>
      <t>
        Below an example of a DER encoded ROA eContent is provided with annotation following the '#' character.
      </t>
      <artwork>
<![CDATA[
$ echo 302402023CCA301E301C04020002301630090307002001067C208C30090307002A0EB2400000 \
  | xxd -r -ps \
  | openssl asn1parse -i -dump -inform DER
    0:d=0  hl=2 l=  36 cons: SEQUENCE                   # RouteOriginAttestation
    2:d=1  hl=2 l=   2 prim:  INTEGER           :3CCA   # asID 15562
    6:d=1  hl=2 l=  30 cons:  SEQUENCE                  # ipAddrBlocks
    8:d=2  hl=2 l=  28 cons:   SEQUENCE                 #  ROAIPAddressFamily
   10:d=3  hl=2 l=   2 prim:    OCTET STRING            #   addressFamily
      0000 - 00 02                              ..      #    IPv6
   14:d=3  hl=2 l=  22 cons:    SEQUENCE                #   addresses
   16:d=4  hl=2 l=   9 cons:     SEQUENCE               #    ROAIPAddress
   18:d=5  hl=2 l=   7 prim:      BIT STRING            #     address
      0000 - 00 20 01 06 7c 20 8c               . ..| . #      2001:67c:208c::/48
   27:d=4  hl=2 l=   9 cons:     SEQUENCE               #    ROAIPAddress
   29:d=5  hl=2 l=   7 prim:      BIT STRING            #     address
      0000 - 00 2a 0e b2 40                     .*..@   #      2a0e:b240::/48
      0007 - <SPACES/NULS>
]]>
      </artwork>
      <t>
        Below is a complete <xref target="RFC4648">Base64</xref> encoded RPKI ROA Signed Object.
      </t>
      <artwork>
<![CDATA[
MIIHCwYJKoZIhvcNAQcCoIIG/DCCBvgCAQMxDTALBglghkgBZQMEAgEwNwYLKoZIhvcNAQkQ
ARigKAQmMCQCAjzKMB4wHAQCAAIwFjAJAwcAIAEGfCCMMAkDBwAqDrJAAACgggT7MIIE9zCC
A9+gAwIBAgIDAIb5MA0GCSqGSIb3DQEBCwUAMDMxMTAvBgNVBAMTKDM4ZTE0ZjkyZmRjN2Nj
ZmJmYz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