<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-sidrops-aspa-profile-24" ipr="trust200902" consensus="true" submissionType="IETF">
  <front>
    <title abbrev="RPKI ASPA Profile">
      A Profile for Autonomous System Provider Authorization
    </title>
    <author fullname="Job Snijders" initials="J." surname="Snijders">
      <organization abbrev="BSD">BSD Software Development</organization>
      <address>
        <postal>
          <street/>
          <city>Amsterdam</city>
          <code/>
          <country>NL</country>
        </postal>
        <email>job@bsd.nl</email>
        <uri>https://www.bsd.nl</uri>
      </address>
    </author>
    <author fullname="Alexander Azimov" initials="A" surname="Azimov">
      <organization>Yandex</organization>
      <address>
        <email>a.e.azimov@gmail.com</email>
      </address>
    </author>
    <author fullname="Eugene Uskov" initials="E" surname="Uskov">
      <organization>JetLend</organization>
      <address>
        <email>eu@jetlend.ru</email>
      </address>
    </author>
    <author fullname="Randy Bush" initials="R" surname="Bush">
      <organization>Internet Initiative Japan</organization>
      <address>
        <email>randy@psg.com</email>
      </address>
    </author>
    <author fullname="Russ Housley" initials="R" surname="Housley">
      <organization abbrev="Vigil Security">Vigil Security, LLC</organization>
      <address>
        <postal>
          <street>918 Spring Knoll Drive</street>
          <city>Herndon</city>
          <region>VA</region>
          <code>20170</code>
          <country>USA</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <author fullname="Ben Maddison" initials="B" surname="Maddison">
      <organization abbrev="Workonline">Workonline</organization>
      <address>
        <postal>
          <street/>
          <city>Cape Town</city>
          <country>South Africa</country>
        </postal>
        <email>benm@workonline.africa</email>
      </address>
    </author>
    <date/>
    <keyword>BGP</keyword>
    <keyword>Route leak</keyword>
    <keyword>Hijacks</keyword>
    <abstract>
      <t>
        This document defines a Cryptographic Message Syntax (CMS) protected content type for Autonomous System Provider Authorization (ASPA) objects for use with the Resource Public Key Infrastructure (RPKI).
        An ASPA is a digitally signed object through which the issuer (the holder of an Autonomous System identifier), can authorize one or more other Autonomous Systems (ASes) as its transit providers.
        When validated, an ASPA's eContent can be used for detection and mitigation of route leaks.
      </t>
    </abstract>
    <note title="Requirements Language">
      <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 title="Introduction" anchor="intro">
      <t>
        The primary purpose of the Resource Public Key Infrastructure (RPKI) <xref target="RFC6480"/> is to improve security in the global Internet routing system.
        As part of this infrastructure, a mechanism is needed for Autonomous Systems (AS) operators, in their capacity as customer, to designate and authorize other ASes as their Provider(s).
        A Provider AS (PAS) is a network providing connectivity between networks - it provides transit services to the customer, that is:
        <list style="letters">
          <t>the provider may propagate Network Layer Reachability Information (NLRI) received from any direction (e.g., routes the provider learned from its own providers, lateral peers, and other customers), or default route advertisements, towards the customer;</t>
          <t>the provider may propagate NLRI received from the customer towards any direction (e.g. towards the provider's providers, lateral peers, and other customers).</t>
        </list>
      </t>
      <t>
        The digitally signed Autonomous System Provider Authorization (ASPA) object profile specified in this document provides the authorization mechanism mentioned above and can be used to facilitate detection and mitigation of route leaks.
      </t>
      <t>
        An ASPA object is a cryptographically verifiable attestation signed by the holder of an Autonomous System identifier (hereafter called the "Customer AS", or CAS).
        An ASPA contains a list of one or more ASes, each entry meaning the listed AS is authorized to act as Provider network for the CAS.
        When the CAS makes use of multiple providers, all Provider ASes are to be listed in the ASPA, including any non-transparent Internet Exchange Point (IXP) Route Server (RS) ASes.
        Note that the common case for RS ASes at IXPs is to operate transparently (see Section 2.2.2.1 <xref target="RFC7947"/>), and transparent IXP Route Servers need not be listed as PAS in ASPAs.
      </t>
      <t>
        The BGP Roles that an Autonomous System (AS) may have in its peering relationships with eBGP neighbors are discussed in <xref target="I-D.ietf-sidrops-aspa-verification"/>.
        The details of ASPA registration requirements for ASes in different scenarios are also specified in that document.
        In addition, the procedures for verifying AS_PATHs in BGP UPDATE messages using Validated ASPA Payloads (VAPs) are described in that document.
      </t>
      <t>
        This CMS <xref target="RFC5652"/> protected content type definition conforms to the <xref target="RFC6488"/> template for RPKI signed objects.
        In accordance with Section 4 of <xref target="RFC6488"/>, this document defines:
        <list style="numbers">
          <t>
            The object identifier (OID) that identifies the ASPA signed object.
            This OID appears in the eContentType field of the encapContentInfo object as well as the content-type signed attribute within the signerInfo structure.
          </t>
          <t>
            The ASN.1 syntax for the ASPA content, which is the payload signed by the CAS.
            The ASPA content is encoded using the ASN.1 <xref target="X.680"/> Distinguished Encoding Rules (DER) <xref target="X.690"/>.
          </t>
          <t>
            The steps required to validate an ASPA beyond the validation steps specified in <xref target="RFC6488"/>.
          </t>
        </list>
      </t>
    </section>
    <section title="ASPA Content Type" anchor="content-type">
      <t>
        The content-type for an ASPA is defined as id-ct-ASPA, which has the numerical value of 1.2.840.113549.1.9.16.1.49.
        This OID MUST appear both within the eContentType in the encapContentInfo structure as well as the content-type signed attribute within the signerInfo structure (see <xref target="RFC6488"/>).
      </t>
    </section>
    <section title="ASPA eContent" anchor="content">
      <t>
        The content of an ASPA identifies the Customer AS (CAS) as well as the Set of Provider ASes (SPAS) that are authorized by the CAS to be its Providers.
      </t>
      <t>
        A user registering ASPA(s) must be cognizant of Sections 2, 3, and 4 of <xref target="I-D.ietf-sidrops-aspa-verification"/> and the user (or their software tool) must comply with the ASPA registration recommendations in Section 4 of that document.
      </t>
      <t>
        It is highly recommended that for a given Customer AS, a single ASPA object be maintained which contains all providers, including any non-transparent RS ASes.
        Such a practice helps prevent race conditions during ASPA updates.
        Otherwise, said race conditions might affect route propagation.
        The software that provides hosting for ASPA records SHOULD support enforcement of this recommendation.
        In the case of the transition process between different CA registries, the ASPA records SHOULD be kept identical in all registries in terms of their authorization contents.
      </t>
      <t>
        The eContent of an ASPA is an instance of ASProviderAttestation, formally defined by the following ASN.1 <xref target="X.680"/> module:
      </t>
      <sourcecode type="asn.1" originalSrc="RPKI-ASPA-2023.asn">RPKI-ASPA-2023
  { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
     pkcs-9(9) smime(16) modules(0) id-mod-rpki-aspa-2023(TBD) }

DEFINITIONS EXPLICIT TAGS ::=
BEGIN

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

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

ct-ASPA CONTENT-TYPE ::=
  { TYPE ASProviderAttestation IDENTIFIED BY id-ct-ASPA }

ASProviderAttestation ::= SEQUENCE {
  version [0]   INTEGER DEFAULT 0,
  customerASID  CAS,
  providers     ProviderASSet }

CAS ::= INTEGER (1..4294967295)

ProviderASSet ::= SEQUENCE (SIZE(1..MAX)) OF ASID

ASID ::= INTEGER (0..4294967295)

END
</sourcecode>
      <t>
        Note that this content appears as the eContent within the encapContentInfo as specified in <xref target="RFC6488"/>.
      </t>
      <section title="version">
        <t>
          The version number of the ASProviderAttestation that complies with this specification MUST be 1 and MUST be explicitly encoded.
        </t>
      </section>
      <section title="customerASID">
        <t>
          The customerASID field contains a positive integer that represents the AS number of the Customer Autonomous System that is the authorizing entity.
        </t>
      </section>
      <section title="providers">
        <t>
          The providers field contains the listing of ASes that are authorized as providers.
        </t>
        <t>
          Each element contained in the providers field is an instance of ASID.
          Each ASID element contains the AS number of an AS that has been authorized by the customer AS as its provider or RS.
        </t>
        <t>
          In addition to the constraints described by the formal ASN.1 definition, the contents of the providers field MUST satisfy the following constraints:
        <list style="symbols">
            <t>
            The CustomerASID value MUST NOT appear in any ASID in the providers field.
            </t>
            <t>
            The elements of providers MUST be ordered in ascending numerical order.
            </t>
            <t>
            Each value of ASID MUST be unique (with respect to the other elements of providers).
            </t>
            <t>
            An ASID value of 0 can only be encoded in the providers field as a single item list, i.e., an element for AS 0 MUST NOT appear alongside any other elements.
            </t>
          </list>
        </t>
      </section>
    </section>
    <section title="ASPA Validation" anchor="validation">
      <t>
        Before a relying party can use an ASPA to validate a routing announcement, the relying party MUST first validate the ASPA object itself.
        To validate an ASPA, the relying party MUST perform all the validation checks specified in <xref target="RFC6488"/> as well as the following additional ASPA-specific validation steps.
        <list style="symbols">
          <t>
            The Autonomous System Identifier Delegation Extension <xref target="RFC3779"/> MUST be present in the end-entity (EE) certificate (contained within the ASPA), and the Customer ASID in the ASPA eContent MUST match the ASId specified by the EE certificate's Autonomous System Identifier Delegation Extension.
          </t>
          <t>
            The Autonomous System Identifier Delegation Extension MUST contain exactly one "id" element (<xref target="RFC3779" section="3.2.3.6"/>) and MUST NOT contain any "inherit" elements (<xref target="RFC3779" section="3.2.3.3"/>) or "range" elements (<xref target="RFC3779" section="3.2.3.7"/>).
          </t>
          <t>
            The IP Address Delegation Extension <xref target="RFC3779"/> MUST be absent.
          </t>
        </list>
      </t>
    </section>
    <section anchor="IANA" title="IANA Considerations">
      <section title="SMI Security for S/MIME Module Identifier registry" toc="exclude">
        <t>
          IANA is requested to allocate for <tt>id-mod-rpki-aspa-2023</tt> in the "SMI Security for S/MIME Module Identifier (1.2.840.113549.1.9.16.0)" registry as follows:
        </t>
        <table>
          <thead>
            <tr>
              <td>Decimal</td>
              <td>Description</td>
              <td>Specification</td>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>TBD2</td>
              <td>id-mod-rpki-aspa-2023</td>
              <td>[RFC-to-be]</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section title="SMI Security for S/MIME CMS Content Type registry" toc="exclude">
        <t>
          IANA is requested to make permanent in the "SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1)" registry as follows:
        </t>
        <table>
          <thead>
            <tr>
              <td>Decimal</td>
              <td>Description</td>
              <td>Specification</td>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>49</td>
              <td>id-ct-ASPA</td>
              <td>[RFC-to-be]</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section title="RPKI Signed Object registry" toc="exclude">
        <t>
          IANA is requested to make permanent in the "RPKI Signed Object" registry as follows:
        </t>
        <table>
          <thead>
            <tr>
              <td>Name</td>
              <td>OID</td>
              <td>Specification</td>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Autonomous System Provider Authorization</td>
              <td>1.2.840.113549.1.9.16.1.49</td>
              <td>[RFC-to-be]</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section title="RPKI Repository Name Scheme registry" toc="exclude">
        <t>
          IANA is requested to make permanent in the "RPKI Repository Name Scheme" registry <xref target="RFC6481"/> as follows:
        </t>
        <table>
          <thead>
            <tr>
              <td>Filename Extension</td>
              <td>RPKI Object</td>
              <td>Reference</td>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>.asa</td>
              <td>Autonomous System Provider Authorization</td>
              <td>[RFC-to-be]</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section title="Media Type registry" toc="exclude">
        <t>
          The IANA is requested to register the media type application/rpki-aspa in the "Media Type" registry as follows:
        </t>
        <artwork>
<![CDATA[
   Type name: application
   Subtype name: rpki-aspa
   Required parameters: N/A
   Optional parameters: N/A
   Encoding considerations: binary
   Security considerations: Carries an RPKI ASPA [RFC-to-be].
       This media type contains no active content. See
       Section 4 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
         AS identifers as defined in [RFC-to-be].
     Magic number(s): None
     File extension(s): .asa
     Macintosh file type code(s):
   Person & email address to contact for further information:
     Job Snijders <job@bsd.nl>
   Intended usage: COMMON
   Restrictions on usage: None
   Change controller: IETF
]]>
        </artwork>
      </section>
    </section>
    <section anchor="Implementation" title="Implementation Considerations">
      <section>
        <name>Use of One-Time Use End Entity Certificates</name>
        <t>
          CA are RECOMMENDED to generate a new key pair for each new ASPA and only sign one ASPA with each EE certificate.
          This type of EE certificate is termed a "one-time-use" EE certificate (see <xref target="RFC6487" section="3"/>).
        </t>
      </section>
      <section>
        <name>ASPA Object Filenames</name>
        <t>
          CAs are RECOMMENDED to follow the guidelines for naming ASPA objects based on <xref target="RFC6481" section="2.2"/>, i.e., convert the 160-bit hash of the EE's public key value into a 27-character string using Base 64 Encoding with the URL and Filename Safe Alphabet (see <xref target="RFC4648" section="5"/>).
          See <xref target="I-D.ietf-sidrops-publication-server-bcp" section="7.7"/> for more information and considerations.
        </t>
      </section>
      <section>
        <name>Upper Bound on the Number of Providers</name>
        <t>
          While the ASN.1 profile specified in <xref target="content"/> imposes no limit on the number of Provider ASes that can be listed for a given Customer ASID, consideration will need to be given to limitations existing in validators and elsewhere in the RPKI supply chain.
          For example, the number of Provider ASes that can be listed in a single RPKI-To-Router protocol ASPA PDU (following the Length field constraints in <xref target="I-D.ietf-sidrops-8210bis" section="5.1"/>) is 16,380 providers.
          In addition to protocol limitations in the supply chain, locally defined restrictions could exist for the maximum file size of signed objects a Relying Party implementation is willing to accept.
        </t>
        <t>
          Relying Party implementations are RECOMMENDED to impose an upper bound on the number of Provider ASes for a given Customer ASID.
          An upper bound value between 4,000 and 10,000 Provider ASes is suggested.
          If this threshold is exceeded, Relying Party implementations SHOULD treat all ASPA objects related to the Customer ASID invalid; e.g. not emit a partial list of Provider ASes.
          Additionally, an error SHOULD be logged in the local system, indicating the Customer ASID for which the threshold was exceeded.
        </t>
        <t>
          Implementers and operators SHOULD periodically review whether imposed upper bounds still are reasonable in context of the global Internet routing system.
        </t>
      </section>
    </section>
    <section anchor="Security" title="Security Considerations">
      <t>
        The security considerations of <xref target="RFC6481"/>, <xref target="RFC6485"/>, and <xref target="RFC6488"/> also apply to ASPAs.
      </t>
    </section>
    <section removeInRFC="true">
      <name>Implementation status</name>
      <t>
        This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in RFC 7942.
        The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs.
        Please note that the listing of any individual implementation here does not imply endorsement by the IETF.
        Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors.
        This is not intended as, and must not be construed to be, a catalog of available implementations or their features.
        Readers are advised to note that other implementations may exist.
      </t>
      <t>
        According to RFC 7942, "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature.
        It is up to the individual working groups to use this information as they see fit".
      </t>
      <ul>
        <li>
          A validator implementation <xref target="rpki-client"/> written in C was provided by Job Snijders.
        </li>
        <li>
          A validator implementation <xref target="routinator"/> written in Rust was provided by Martin Hoffman from NLnet Labs.
        </li>
        <li>
          A validator implementation <xref target="rpki-prover"/> written in Haskell was provided by Mikhail Puzanov.
        </li>
        <li>
          A signer implementation <xref target="rpki-aspa-demo"/> written in Perl was provided by Tom Harrison from APNIC.
        </li>
        <li>
          A signer implementation <xref target="rpki-commons"/> in Java was reported on by Ties de Kock from RIPE NCC.
        </li>
        <li>
          A signer implementation <xref target="krill"/> in Rust was reported on by Tim Bruijnzeels.
        </li>
      </ul>
    </section>
    <section anchor="Acknowledgments" title="Acknowledgments">
      <t>
        The authors would like to thank Keyur Patel for helping kick-start the ASPA profile project,
        Ties de Kock &amp; Tim Bruijnzeels for suggesting that the ProviderASSet be in a canonical form,
        and Claudio Jeker, Martin Hoffman &amp; Lancheng Qin for review and several suggestions for improvements.
      </t>
    </section>
    <section title="Contributors" numbered="no">
      <t>
        The following people made significant contributions to this document:
      </t>
      <figure>
        <artwork>
<![CDATA[
        Kotikalapudi Sriram
        USA National Institute of Standards and Technology
        Email: ksriram@nist.gov
]]>
      </artwork>
      </figure>
    </section>
  </middle>
  <back>
    <references title="Normative References">
      <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"/>
      </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"/>
      </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"/>
      </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"/>
      </reference>
      <reference anchor="RFC6485" target="https://www.rfc-editor.org/info/rfc6485" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6485.xml">
        <front>
          <title>The Profile for Algorithms and Key Sizes for Use in the Resource Public Key Infrastructure (RPKI)</title>
          <author fullname="G. Huston" initials="G." surname="Huston"/>
          <date month="February" year="2012"/>
          <abstract>
            <t>This document specifies the algorithms, algorithms' parameters, asymmetric key formats, asymmetric key size, and signature format for the Resource Public Key Infrastructure (RPKI) subscribers that generate digital signatures on certificates, Certificate Revocation Lists, and signed objects as well as for the relying parties (RPs) that verify these digital signatures. [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6485"/>
        <seriesInfo name="DOI" value="10.17487/RFC6485"/>
      </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"/>
      </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"/>
      </reference>
      <reference anchor="I-D.ietf-sidrops-aspa-verification" target="https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-aspa-verification-24" xml:base="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-sidrops-aspa-verification.xml">
        <front>
          <title>BGP AS_PATH Verification Based on Autonomous System Provider Authorization (ASPA) Objects</title>
          <author fullname="Alexander Azimov" initials="A." surname="Azimov">
            <organization>Yandex</organization>
          </author>
          <author fullname="Eugene Bogomazov" initials="E." surname="Bogomazov">
            <organization>Qrator Labs</organization>
          </author>
          <author fullname="Randy Bush" initials="R." surname="Bush">
            <organization>Internet Initiative Japan &amp; Arrcus, Inc.</organization>
          </author>
          <author fullname="Keyur Patel" initials="K." surname="Patel">
            <organization>Arrcus</organization>
          </author>
          <author fullname="Job Snijders" initials="J." surname="Snijders"/>
          <author fullname="Kotikalapudi Sriram" initials="K." surname="Sriram">
            <organization>USA National Institute of Standards and Technology</organization>
          </author>
          <date day="19" month="October" year="2025"/>
          <abstract>
            <t>This document describes procedures that make use of Autonomous System Provider Authorization (ASPA) objects in the Resource Public Key Infrastructure (RPKI) to verify the Border Gateway Protocol (BGP) AS_PATH attribute of advertised routes. This AS_PATH verification enhances routing security by adding means to detect and mitigate route leaks and AS_PATH manipulations.</t>
          </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-sidrops-aspa-verification-24"/>
      </reference>
      <reference anchor="I-D.ietf-sidrops-8210bis" target="https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-8210bis-25" xml:base="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-sidrops-8210bis.xml">
        <front>
          <title>The Resource Public Key Infrastructure (RPKI) to Router Protocol, Version 2</title>
          <author fullname="Randy Bush" initials="R." surname="Bush">
            <organization>Arrcus, DRL, &amp; IIJ Research</organization>
          </author>
          <author fullname="Rob Austein" initials="R." surname="Austein">
            <organization>Dragon Research Labs</organization>
          </author>
          <author fullname="Tom Harrison" initials="T." surname="Harrison">
            <organization>Asia Pacific Network Information Centre</organization>
          </author>
          <date day="2" month="March" year="2026"/>
          <abstract>
            <t>In order to validate the origin Autonomous Systems (ASes) and Autonomous System relationships behind BGP announcements, routers need a simple but reliable mechanism to receive Resource Public Key Infrastructure (RFC6480) prefix origin data, Router Keys, and ASPA data from a trusted cache. This document describes a protocol to deliver them. This document describes version 2 of the RPKI-Router protocol. [RFC6810] describes version 0, and [RFC8210] describes version 1. This document is compatible with both.</t>
          </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-sidrops-8210bis-25"/>
      </reference>
      <reference anchor="X.680">
        <front>
          <title>Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation</title>
          <author>
            <organization>ITU-T</organization>
          </author>
          <date year="2021"/>
        </front>
        <seriesInfo name="ITU-T" value="Recommendation X.680"/>
      </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="2021"/>
        </front>
        <seriesInfo name="ITU-T" value="Recommendation X.690"/>
      </reference>
    </references>
    <references title="Informative References">
      <reference anchor="I-D.ietf-sidrops-publication-server-bcp" target="https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-publication-server-bcp-07" xml:base="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-sidrops-publication-server-bcp.xml">
        <front>
          <title>Best Practises for Operating Resource Public Key Infrastructure (RPKI) Publication Services</title>
          <author fullname="Tim Bruijnzeels" initials="T." surname="Bruijnzeels">
            <organization>RIPE NCC</organization>
          </author>
          <author fullname="Ties de Kock" initials="T." surname="de Kock">
            <organization>RIPE NCC</organization>
          </author>
          <author fullname="Frank Hill" initials="F." surname="Hill">
            <organization>ARIN</organization>
          </author>
          <author fullname="Tom Harrison" initials="T." surname="Harrison">
            <organization>APNIC</organization>
          </author>
          <author fullname="Job Snijders" initials="J." surname="Snijders">
            <organization>BSD Software Development</organization>
          </author>
          <date day="21" month="March" year="2026"/>
          <abstract>
            <t>This document describes best current practices for operating an RFC 8181 RPKI publication engine and its associated publicly accessible rsync (RFC 5781) and RRDP (RFC 8182) repositories.</t>
          </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-sidrops-publication-server-bcp-07"/>
      </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"/>
      </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"/>
      </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"/>
      </reference>
      <reference anchor="RFC7947" target="https://www.rfc-editor.org/info/rfc7947" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7947.xml">
        <front>
          <title>Internet Exchange BGP Route Server</title>
          <author fullname="E. Jasinska" initials="E." surname="Jasinska"/>
          <author fullname="N. Hilliard" initials="N." surname="Hilliard"/>
          <author fullname="R. Raszuk" initials="R." surname="Raszuk"/>
          <author fullname="N. Bakker" initials="N." surname="Bakker"/>
          <date month="September" year="2016"/>
          <abstract>
            <t>This document outlines a specification for multilateral interconnections at Internet Exchange Points (IXPs). Multilateral interconnection is a method of exchanging routing information among three or more External BGP (EBGP) speakers using a single intermediate broker system, referred to as a route server. Route servers are typically used on shared access media networks, such as IXPs, to facilitate simplified interconnection among multiple Internet routers.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="7947"/>
        <seriesInfo name="DOI" value="10.17487/RFC7947"/>
      </reference>
      <reference anchor="rpki-client" target="https://www.rpki-client.org/">
        <front>
          <title>OpenBSD rpki-client</title>
          <author fullname="Claudio Jeker"/>
          <author fullname="Job Snijders"/>
          <author fullname="Kristaps Dzonsons"/>
          <author fullname="Theo Buehler"/>
          <date year="2023"/>
        </front>
      </reference>
      <reference anchor="rpki-aspa-demo" target="https://github.com/APNIC-net/rpki-aspa-demo">
        <front>
          <title>rpki-aspa-demo</title>
          <author initials="T." surname="Harrison">
            <organization>APNIC</organization>
          </author>
          <date year="2023"/>
        </front>
      </reference>
      <reference anchor="rpki-commons" target="https://mailarchive.ietf.org/arch/msg/sidrops/nNAmZMrr7t9NMzm12jRXU03ABN4/">
        <front>
          <title>rpki-commons</title>
          <author initials="T." surname="de Kock">
            <organization>RIPE NCC</organization>
          </author>
          <date year="2023"/>
        </front>
      </reference>
      <reference anchor="krill" target="https://mailarchive.ietf.org/arch/msg/sidrops/RrHCYTmevxDHgebdLC_adRlKH-o/">
        <front>
          <title>krill</title>
          <author initials="T." surname="Bruijnzeels">
            <organization>NLnet Labs</organization>
          </author>
          <date year="2023"/>
        </front>
      </reference>
      <reference anchor="rpki-prover" target="https://github.com/lolepezy/rpki-prover/compare/master...aspa-profile-16">
        <front>
          <title>rpki-prover</title>
          <author initials="M." surname="Puzanov"/>
          <date year="2023"/>
        </front>
      </reference>
      <reference anchor="routinator" target="https://github.com/NLnetLabs/rpki-rs/pull/264">
        <front>
          <title>routinator</title>
          <author initials="M." surname="Hoffman">
            <organization>NLnet Labs</organization>
          </author>
          <date year="2023"/>
        </front>
      </reference>
    </references>
    <section anchor="example">
      <name>Example ASPA eContent Payload</name>
      <t>
        Below an example of a DER encoded ASPA eContent is provided with annotation following the '#' character.
      </t>
      <artwork>
<![CDATA[
$ echo 301DA003020101020300FE633011020300FC00020301000F020500FA56EA00 \
  | xxd -r -ps | openssl asn1parse -inform DER -dump -i
  0:d=0  hl=2 l=  29 cons: SEQUENCE
  2:d=1  hl=2 l=   3 cons:  cont [ 0 ]
  4:d=2  hl=2 l=   1 prim:   INTEGER   :01
  7:d=1  hl=2 l=   3 prim:  INTEGER    :FE63     # Customer ASID 65123
 12:d=1  hl=2 l=  17 cons:  SEQUENCE
 14:d=2  hl=2 l=   3 prim:   INTEGER   :FC00     # ProviderAS 64512
 19:d=2  hl=2 l=   3 prim:   INTEGER   :01000F   # ProviderAS 65551
 24:d=2  hl=2 l=   5 prim:   INTEGER   :FA56EA00 # ProviderAS 4200000000
]]>
      </artwork>
      <t>
        Below is a complete <xref target="RFC4648">Base64</xref> encoded RPKI ASPA Signed Object.
      </t>
      <artwork>
<![CDATA[
MIIGLAYJKoZIhvcNAQcCoIIGHTCCBhkCAQMxDTALBglghkgBZQMEAgEwMAYLKoZI
hvcNAQkQATGgIQQfMB2gAwIBAQIDAP5jMBECAwD8AAIDAQAPAgUA+lbqAKCCBCMw
ggQfMIIDB6ADAgECAgEEMA0GCSqGSIb3DQEBCwUAMA8xDTALBgNVBAMTBHJvb3Qw
HhcNMjUwMTA2MTAyNjQ4WhcNMjYwMTA2MTAyNjQ4WjAPMQ0wCwYDVQQDEwRyb290
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmgjRVMrjafIK81cxs8GB
ehcjlP97o3CdlhceX8ogtUE19C1v3VZQttdzaBG1ViI2+TJiyueHm2M6nq7tl7A9
HfkPWGdvwjTUeF4ynpxNlqqoG5pGPMLuuk6HdVaKbuEeX3ZAYD2daG8qm3zkmmF3
F7e+xPvr6nCTIQX7nr0WQyX74FmLGwlr6TV+6MGdCnp24A5aCXJo3m1vGlQUKdd/
bMszpbfzaX1rxBKA0GSdWx/QEOxFb1BPObjF+P/GpDXOq3i0DoZiDB+omgdUAWDZ
dmskG0l+2EyQaCS/pVCES50Y5zAagTcFabCLKnPvr3qh9tvjD/KlolYc35gNIfoX
7wIDAQABo4IBhDCCAYAwDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBQrh8dvXu72
IET1KLgskpso1VcyrDAfBgNVHSMEGDAWgBQ2mtAZLGdOeDIizTKFZreUErGPJjAY
BgNVHSABAf8EDjAMMAoGCCsGAQUFBw4CMF8GCCsGAQUFBwEBBFMwUTBPBggrBgEF
BQcwAoZDcnN5bmM6Ly9sb2NhbGhvc3QvcmVwby8zNjlBRDAxOTJDNjc0RTc4MzIy
MkNEMzI4NTY2Qjc5NDEyQjE4RjI2LmNlcjBXBgNVHR8EUDBOMEygSqBIhkZyc3lu
YzovL2xvY2FsaG9zdC9yZXBvL3RhLzM2OUFEMDE5MkM2NzRFNzgzMjIyQ0QzMjg1
NjZCNzk0MTJCMThGMjYuY3JsMD4GCCsGAQUFBwELBDIwMDAuBggrBgEFBQcwC4Yi
cnN5bmM6Ly9sb2NhbGhvc3QvdGEvYW4tb2JqZWN0LmFzYTAaBggrBgEFBQcBCAEB
/wQLMAmgBzAFAgMA/mMwDQYJKoZIhvcNAQELBQADggEBACqgWrD692DUuN1jrriv
SGqI7JqAtbqOSvnwxNGMlPZ6oTkarf4aDMJNcwqMaOUOzZPQ9VXA48h5R8TgvAub
s/HJ263DLtPiScwkWqLZZs6Ius2zFothzDwWOoe/rHKiecCF0YpJqFhaa6dw6vsO
zK77Ze+Gfa1SeeuI1DTwGDjiNBtXCaRxAPmvpYGxSKQmRYCIo6vKPSZlzCPqzEZa
MVCmxdlaDQjVPUuWLbFV/bbZmS4wM1nbikt5WLZEVHMcAyqWOb7a3KO2GIIw0Ak9
O6JgUoex/8y0s6smSWcRe2y9d6kAhT0COW1KvFoNM5lFKSe1rYqTtMFY33XfCI7e
IgsxggGqMIIBpgIBA4AUK4fHb17u9iBE9Si4LJKbKNVXMqwwCwYJYIZIAWUDBAIB
oGswGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAExMBwGCSqGSIb3DQEJBTEPFw0y
NTAxMDYxMDI2NDhaMC8GCSqGSIb3DQEJBDEiBCCLMweRYDN5u5auRQYv6+Dx+b9X
m1t5R3gkH9c3aX40gzANBgkqhkiG9w0BAQEFAASCAQATWDI3fYgku2fJPzFXAbnz
IKabFMRvhp9LAhvl8oPkCp0zQu4SyJsdvoWxkpHKnXGwwdgub/d4GF0weoJgauDr
ugUsB2e40aQwFoTyPcVuS/BirhlW5j0NwYovmuJ9GiBe67/sCRBaPC5sBKRBpOIv
IpMpAe2QhaoeDUDc0KYCM42f1kFD+PD8PnlvXRisL3A3OFhB+0LY1Z3xivRAEdtf
qzobZT0Hq6CIlAjNeocG0gMfJj/lFyElLkJdfGHzCWLnVNX2I+9GbDDdYV13cUTG
yk5CFeQWetsX7D7XRNSdKwrrW6qWK/KxGF38SsuGeTyDQiNcOhwqvSfFc388ge/G
]]>
      </artwork>
      <t>
      The above should decode as following:
      </t>
      <artwork>
<![CDATA[

Object SHA256 hash:          S6B+jKOCFXPlRn7ws6Kd5tgpsSx609tJZpw60CVaf9Y=
EE Subject key identifier:   2B87C76F5EEEF62044F528B82C929B28D55732AC
EE Certificate issuer:       /CN=root
EE Certificate serial:       04
EE Authority key identifier: 369AD0192C674E783222CD328566B79412B18F26
EE Authority info access:    rsync://localhost/repo/369AD0192C674E783222CD328566B79412B18F26.cer
EE Subject info access:      rsync://localhost/ta/an-object.asa
CMS Signing time:            Mon 06 Jan 2025 10:26:48 +0000
EE notBefore:                Mon 06 Jan 2025 10:26:48 +0000
EE notAfter:                 Tue 06 Jan 2026 10:26:48 +0000

ASPA eContent:
  Customer AS:               65123
  Provider Set:              1: AS: 64512
                             2: AS: 65551
                             3: AS: 4200000000
]]>
      </artwork>
    </section>
  </back>
</rfc>
