<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-jasdips-regext-rdap-rpki-01" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true">

<front>
<title abbrev="rdap-rpki">An RDAP Extension for RPKI Registration Data</title><seriesInfo value="draft-jasdips-regext-rdap-rpki-01" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="J." surname="Singh" fullname="Jasdip Singh"><organization>ARIN</organization><address><postal><street></street>
</postal><email>jasdips@arin.net</email>
</address></author><author initials="A." surname="Newton" fullname="Andy Newton"><organization>ICANN</organization><address><postal><street></street>
</postal><email>andy@hxr.us</email>
</address></author><date/>
<area>Applications and Real-Time Area (ART)</area>
<workgroup>Registration Protocols Extensions (regext)</workgroup>

<abstract>
<t>The Resource Public Key Infrastructure (RPKI) is used to secure inter-domain routing on the internet. This document
defines a new Registration Data Access Protocol (RDAP) extension, &quot;rpki1&quot;, for accessing the RPKI registration data in
the Internet Number Registry System (INRS) through RDAP. The Internet Number Registry System (INRS) is composed of
Regional Internet Registries (RIRs), National Internet Registries (NIRs), and Local Internet Registries (LIRs).</t>
</abstract>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>The network operators are increasingly deploying the Resource Public Key Infrastructure (RPKI, <xref target="RFC6480"></xref>) to secure
inter-domain routing (<xref target="RFC4271"></xref>) on the internet. RPKI enables Internet Number Resource (INR) holders to
cryptographically assert about their registered IP addresses and autonomous system numbers to prevent route hijacks and
leaks. To that end, RPKI defines the following cryptographic profiles:</t>

<ul spacing="compact">
<li>Route Origin Authorization (ROA, <xref target="RFC9582"></xref>) where a Classless Inter-Domain Routing (CIDR, <xref target="RFC1519"></xref>) address block
holder cryptographically asserts about the origin autonomous system (AS, <xref target="RFC4271"></xref>) for routing that CIDR address
block.</li>
<li>Autonomous System Provider Authorization (ASPA, <xref target="I-D.ietf-sidrops-aspa-profile"></xref>) where an autonomous system number
(ASN, <xref target="RFC5396"></xref>) holder cryptographically asserts about the provider AS for that ASN.</li>
<li>X.509 Resource Certificate (<xref target="RFC6487"></xref>) where the issuer grants the subject a right-of-use for the listed IP
addresses and/or autonomous system numbers.</li>
</ul>
<t>This document defines a new RDAP extension, &quot;rpki1&quot;, for accessing the RPKI registration data within the Internet Number
Registry System (INRS) for aforementioned RPKI profiles through RDAP. The Internet Number Registry System (INRS) is
composed of Regional Internet Registries (RIRs), National Internet Registries (NIRs), and Local Internet Registries
(LIRs).</t>
<t>The motivation here is that such RDAP data could complement the existing RPKI diagnostic tools when troubleshooting a
route hijack or leak, by conveniently providing access to registration information from a registry's database beside
what is inherently available from an RPKI profile object. There is registration metadata that is often needed for
troubleshooting that does not appear in, say, a ROA or a VRP (Verified ROA Payload); such as:</t>

<ul spacing="compact">
<li>When did the initial version of a ROA get published?</li>
<li>Was a ROA created in conjunction with an Internet Routing Registry (IRR, <xref target="RFC2622"></xref>) route?</li>
<li>Which IRR route is related with a ROA?</li>
<li>Which IP network is associated with a ROA?</li>
</ul>
<t>Furthermore, correlating registered RPKI data with registered IP networks and autonomous system numbers would also give
access to the latter's contact information through RDAP entity objects, which should aid troubleshooting.</t>
<t>In addition to troubleshooting, serving RPKI metadata over RDAP offers a convenience to network operators
through a simple lookup mechanism. As is demonstrated in <xref target="RDAP-GUIDE"></xref>, constructing custom RDAP scripts is
relatively easy and beneficial to network operators for the purposes of reporting. Though not RDAP-based, systems such
as <xref target="JDR"></xref> and <xref target="CLOUDFLARE"></xref> have shown the utility of an approach that allows users to explore the RPKI hierarchy in a
visual fashion, without interacting with the signed objects directly.</t>
<t>For these purposes, this specification defines RDAP object classes, as well as lookup and search path segments, for the
ROA, ASPA, and X.509 resource certificate registration data.</t>

<section anchor="requirements-language"><name>Requirements Language</name>
<t>The keywords &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;, &quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;,
&quot;NOT RECOMMENDED&quot;, &quot;MAY&quot;, and &quot;OPTIONAL&quot; in this document are to be interpreted as described in <xref target="BCP14"></xref> when, and only
when, they appear in all capitals, as shown here.</t>
<t>Indentation and whitespace in examples are provided only to illustrate element relationships, and are not a REQUIRED
feature of this protocol.</t>
<t>&quot;...&quot; in examples is used as shorthand for elements defined outside of this document.</t>
</section>
</section>

<section anchor="common_data_members"><name>Common Data Members</name>
<t>The RDAP object classes for RPKI (<xref target="roa_object_class"></xref>, <xref target="aspa_object_class"></xref>, <xref target="x509_resource_cert_object_class"></xref>) can
contain one or more of the following common members:</t>

<ul spacing="compact">
<li>&quot;handle&quot; -- a string representing the registry-unique identifier of an RPKI object registration</li>
<li>&quot;name&quot; -- a string representing the identifier assigned to an RPKI object registration by the registration holder</li>
<li>&quot;notValidBefore&quot; -- a string that contains the time and date in Zulu (Z) format with UTC offset of 00:00
(<xref target="RFC3339"></xref>), representing the not-valid-before date of an X.509 resource certificate for an RPKI object
(<xref target="RFC6487" sectionFormat="of" section="4"></xref>)</li>
<li>&quot;notValidAfter&quot; -- a string that contains the time and date in Zulu (Z) format with UTC offset of 00:00 (<xref target="RFC3339"></xref>),
representing the not-valid-after date of an X.509 resource certificate for an RPKI object (<xref target="RFC6487" sectionFormat="of" section="4"></xref>)</li>
<li>&quot;publicationUri&quot; -- a URI string pointing to the location of an RPKI object within an RPKI repository;
the URI scheme is &quot;rsync&quot;, per <xref target="RFC6487" sectionFormat="of" section="4"></xref></li>
<li>&quot;notificationUri&quot; -- an HTTPS URI string pointing to the location of the RPKI Repository Delta Protocol (RRDP) update
notification file for an RPKI repository (<xref target="RFC8182" sectionFormat="of" section="3"></xref>)</li>
<li>&quot;entities&quot; -- an array of entity objects (<xref target="RFC9083" sectionFormat="of" section="5.1"></xref>), including the organization (entity) registered as
the authoritative source for an RPKI object</li>
<li><t>&quot;rpkiType&quot; -- a string literal representing various combinations of an RPKI repository and a Certification Authority
(CA), with the following possible values:</t>

<ul spacing="compact">
<li>&quot;hosted&quot; -- both the repository and CA are operated by a registry for an organization with allocated resources</li>
<li>&quot;delegated&quot; -- both the repository and CA are operated by an organization with resources allocated by a registry</li>
<li>&quot;hybrid&quot; -- the repository is operated by a registry for an organization with allocated resources whereas the CA
is operated by the organization itself</li>
</ul></li>
</ul>
<t>RRDP is intended as the long-term replacement for rsync in RPKI. For a CA that implements RRDP, the update notification
file location is expected to be set in each X.509 resource certificate it issues (<xref target="RFC8182" sectionFormat="of" section="3.2"></xref>).
Consequently, the &quot;notificationUri&quot; data should help inform about the RPKI repository and/or CA operated downstream from
a registry by an organization with resources allocated by that registry.</t>
</section>

<section anchor="roa"><name>Route Origin Authorization</name>

<section anchor="roa_object_class"><name>Object Class</name>
<t>The Route Origin Authorization (ROA) object class can contain the following members:</t>

<ul spacing="compact">
<li>&quot;objectClassName&quot; -- the string &quot;rpki1_roa&quot;</li>
<li>&quot;handle&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;name&quot; -- see <xref target="common_data_members"></xref></li>
<li><t>&quot;roaIps&quot; -- an array of objects representing CIDR address blocks within a ROA; such an object can contain the
following members:</t>

<ul spacing="compact">
<li>&quot;ip&quot; -- a string representing an IPv4 or IPv6 CIDR address block with the &quot;&lt;CIDR prefix&gt;/&lt;CIDR length&gt;&quot; format
(<xref target="RFC9582" sectionFormat="of" section="4"></xref>)</li>
<li>&quot;maxLength&quot; -- a number representing the maximum prefix length of the CIDR address block that the origin AS is
authorized to advertise; up to 32 for IPv4 and up to 128 for IPv6 (<xref target="RFC9582" sectionFormat="of" section="4"></xref>)</li>
</ul></li>
<li>&quot;originAutnum&quot; -- an unsigned 32-bit integer representing the origin autonomous system number (<xref target="RFC9582" sectionFormat="of" section="4"></xref>)</li>
<li>&quot;notValidBefore&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notValidAfter&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;publicationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notificationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;entities&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;rpkiType&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;events&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.5"></xref></li>
<li>&quot;links&quot; -- &quot;self&quot; link, and &quot;related&quot; links for IP network and IRR (when defined) objects (<xref target="RFC9083" sectionFormat="of" section="4.2"></xref>)</li>
<li>&quot;remarks&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.3"></xref></li>
</ul>
<t>Here is an elided example of a ROA object:</t>

<artwork><![CDATA[{
  "objectClassName": "rpki1_roa",
  "handle": "XXXX",
  "name": "ROA-1",
  "roaIps":
  [
    {
      "ip": "2001:db8::/48",
      "maxLength": 64
    },
    ...
  ],
  "originAutnum": 65536,
  "notValidBefore": "2024-04-27T23:59:59Z",
  "notValidAfter": "2025-04-27T23:59:59Z",
  "publicationUri": "rsync://example.net/path/to/XXXX.roa",
  "notificationUri": "https://example.net/path/to/notification.xml",
  "entities":
  [
    {
      "objectClassName": "entity",
      "handle": "XYZ-RIR",
      ...
    },
    ...
  ],
  "rpkiType": "hosted",
  "events":
  [
    {
      "eventAction": "registration",
      "eventDate": "2024-01-01T23:59:59Z"
    },
    ...
  ],
  "links":
  [
    {
      "value": "https://example.net/rdap/rpki1/roa/XXXX",
      "rel": "self",
      "href": "https://example.net/rdap/rpki1/roa/XXXX",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/roa/XXXX",
      "rel": "related",
      "href": "https://example.net/rdap/ip/2001:db8::/48",
      "type": "application/rdap+json"
    },
    ...
  ],
  "remarks":
  [
    {
      "description": [ "ROA" ]
    }
  ]
}
]]></artwork>
</section>

<section anchor="lookup"><name>Lookup</name>
<t>The resource type path segment for exact or closest match lookup of a ROA object is &quot;rpki1/roa&quot;.</t>
<t>The following lookup path segments are defined for a ROA object:</t>
<t>Syntax: rpki1/roa/&lt;handle&gt;</t>
<t>Syntax: rpki1/roa/&lt;IP address&gt;</t>
<t>Syntax: rpki1/roa/&lt;CIDR prefix&gt;/&lt;CIDR length&gt;</t>
<t>A lookup query for ROA information by handle is specified using this form:</t>
<t>rpki1/roa/XXXX</t>
<t>XXXX is a string representing the &quot;handle&quot; property of a ROA, as described in <xref target="roa_object_class"></xref>. The following URL
would be used to find information for a ROA that exactly matches the &quot;8a848ab0729f0f4f0173ba2013bc5eb3&quot; handle:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roa/8a848ab0729f0f4f0173ba2013bc5eb3
]]></artwork>
<t>A lookup query for ROA information by IP address is specified using this form:</t>
<t>rpki1/roa/YYYY</t>
<t>YYYY is a string representing an IPv4 or IPv6 address. The following URL would be used to find information for a ROA
that completely encompasses the &quot;192.0.2.0&quot; IP address:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roa/192.0.2.0
]]></artwork>
<t>Similarly, for the &quot;2001:db8::&quot; IP address:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roa/2001%3Adb8%3A%3A
]]></artwork>
<t>A lookup query for ROA information by CIDR is specified using this form:</t>
<t>rpki1/roa/YYYY/ZZZZ</t>
<t>YYYY/ZZZZ is a string representing the &quot;ip&quot; property of a CIDR address block within a ROA, as described in
<xref target="roa_object_class"></xref>. The following URL would be used to find information for the most-specific ROA matching the
&quot;192.0.2.0/25&quot; CIDR:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roa/192.0.2.0/25
]]></artwork>
<t>Similarly, for the &quot;2001:db8::/64&quot; CIDR:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roa/2001%3Adb8%3A%3A/64
]]></artwork>
<t>In the &quot;links&quot; array of a ROA object, the context URI (&quot;value&quot; member) of each link should be the lookup URL by its
handle, and if that's not available, then the lookup URL by one of its IP addresses.</t>
</section>

<section anchor="search"><name>Search</name>
<t>The resource type path segment for searching ROA objects is &quot;rpki1/roas&quot;.</t>
<t>The following search path segments are defined for ROA objects:</t>
<t>Syntax: rpki1/roas?name=&lt;name search pattern&gt;</t>
<t>Syntax: rpki1/roas?originAutnum=&lt;autonomous system number&gt;</t>
<t>Searches for ROA information by name are specified using this form:</t>
<t>rpki1/roas?name=XXXX</t>
<t>XXXX is a search pattern per <xref target="RFC9082" sectionFormat="of" section="4.1"></xref>, representing the &quot;name&quot; property of a ROA, as described in
<xref target="roa_object_class"></xref>. The following URL would be used to find information for ROA names matching the &quot;ROA-*&quot; pattern:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roas?name=ROA-*
]]></artwork>
<t>Searches for ROA information by origin autonomous system number are specified using this form:</t>
<t>rpki1/roas?originAutnum=BBBB</t>
<t>BBBB is an autonomous system number representing the &quot;originAutnum&quot; property of a ROA, as described in
<xref target="roa_object_class"></xref>. The following URL would be used to find information for ROAs with origin autonomous system number
65536:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/roas?originAutnum=65536
]]></artwork>

<section anchor="search-results"><name>Search Results</name>
<t>The ROA search results are returned in the &quot;rpki1_roaSearchResults&quot; member, which is an array of ROA objects
(<xref target="roa_object_class"></xref>).</t>
<t>Here is an elided example of the search results when finding information for ROAs with origin autonomous system number
65536:</t>

<artwork><![CDATA[{
  "rdapConformance":
  [
    "rdap_level_0",
    "rpki1",
    ...
  ],
  ...
  "rpki1_roaSearchResults":
  [
    {
      "objectClassName": "rpki1_roa",
      "handle": "XXXX",
      "name": "ROA-1",
      "roaIps":
      [
        {
          "ip": "2001:db8::/48",
          "maxLength": 64
        },
        ...
      ],
      "originAutnum": 65536,
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/XXXX.roa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/roa/XXXX",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/roa/XXXX",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/roa/XXXX",
          "rel": "related",
          "href": "https://example.net/rdap/ip/2001:db8::/48",
          "type": "application/rdap+json"
        },
        ...
      ]
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="reverse-search"><name>Reverse Search</name>
<t>Per <xref target="RFC9536" sectionFormat="of" section="2"></xref>, if a server receives a reverse search query with a searchable resource type of &quot;ips&quot;
(<xref target="I-D.ietf-regext-rdap-rir-search" sectionFormat="of" section="5"></xref>), a related resource type of &quot;rpki1_roa&quot;, and a ROA property of
&quot;originAutnum&quot; or &quot;ip&quot;, then the reverse search will be performed on the IP network objects from its data store.</t>
<t><xref target="reverse_search_registry"></xref> and <xref target="reverse_search_mapping_registry"></xref> include registration of entries for IP network
searches in the RDAP Reverse Search and RDAP Reverse Search Mapping IANA registries when the related resource type is
&quot;rpki1_roa&quot;.</t>
</section>

<section anchor="relationship-with-ip-network-object-class"><name>Relationship with IP Network Object Class</name>
<t>An IP network object can span multiple ROA objects, and vice-versa. Their relationship is affected by IP address
transfers and splits in a registry. It would be useful to show all the ROA objects associated with an IP network object.
To that end, this extension adds a new &quot;rpki1_roas&quot; member to the IP Network object class (<xref target="RFC9083" sectionFormat="of" section="5.4"></xref>):</t>

<ul spacing="compact">
<li>&quot;rpki1_roas&quot; -- an array of ROA objects (<xref target="roa_object_class"></xref>) associated with an IP network object; if the array is
too large, the server MAY truncate it, per <xref target="RFC9083" sectionFormat="of" section="9"></xref></li>
</ul>
<t>Here is an elided example for an IP network object with ROAs:</t>

<artwork><![CDATA[{
  "objectClassName": "ip network",
  "handle": "ZZZZ-RIR",
  "startAddress": "2001:db8::",
  "endAddress": "2001:db8:ffff:ffff:ffff:ffff:ffff:ffff",
  "ipVersion": "v6",
  ...
  "rpki1_roas":
  [
    {
      "objectClassName": "rpki1_roa",
      "handle": "XXXX",
      "name": "ROA-1",
      "roaIps":
      [
        {
          "ip": "2001:db8::/48",
          "maxLength": 64
        },
        ...
      ],
      "originAutnum": 65536,
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/XXXX.roa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/roa/XXXX",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/roa/XXXX",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/roa/XXXX",
          "rel": "related",
          "href": "https://example.net/rdap/ip/2001:db8::/48",
          "type": "application/rdap+json"
        },
        ...
      ]
    },
    {
      "objectClassName": "rpki1_roa",
      "handle": "YYYY",
      "name": "ROA-2",
      "roaIps":
      [
        {
          "ip": "2001:db8:1::/48",
          "maxLength": 64
        },
        ...
      ],
      "originAutnum": 65537,
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/YYYY.roa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/roa/YYYY",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/roa/YYYY",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/roa/YYYY",
          "rel": "related",
          "href": "https://example.net/rdap/ip/2001:db8:1::/48",
          "type": "application/rdap+json"
        },
        ...
      ]
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="aspa"><name>Autonomous System Provider Authorization</name>

<section anchor="aspa_object_class"><name>Object Class</name>
<t>The Autonomous System Provider Authorization (ASPA) object class can contain the following members:</t>

<ul spacing="compact">
<li>&quot;objectClassName&quot; -- the string &quot;rpki1_aspa&quot;</li>
<li>&quot;handle&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;name&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;autnum&quot; -- an unsigned 32-bit integer representing an autonomous system number of the registration holder
(<xref target="I-D.ietf-sidrops-aspa-profile" sectionFormat="of" section="3"></xref>)</li>
<li>&quot;providerAutnums&quot; -- an array of unsigned 32-bit integers, each representing the autonomous system number of an AS
that is authorized as a provider (<xref target="I-D.ietf-sidrops-aspa-profile" sectionFormat="of" section="3"></xref>)</li>
<li>&quot;notValidBefore&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notValidAfter&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;publicationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notificationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;entities&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;rpkiType&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;events&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.5"></xref></li>
<li>&quot;links&quot; -- &quot;self&quot; link, and &quot;related&quot; links for autonomous system number and IRR (when defined) objects
(<xref target="RFC9083" sectionFormat="of" section="4.2"></xref>)</li>
<li>&quot;remarks&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.3"></xref></li>
</ul>
<t>Here is an elided example of an ASPA object:</t>

<artwork><![CDATA[{
  "objectClassName": "rpki1_aspa",
  "handle": "XXXX",
  "name": "ASPA-1",
  "autnum": 65536,
  "providerAutnums":
  [
    65542,
    ...
  ],
  "notValidBefore": "2024-04-27T23:59:59Z",
  "notValidAfter": "2025-04-27T23:59:59Z",
  "publicationUri": "rsync://example.net/path/to/XXXX.aspa",
  "notificationUri": "https://example.net/path/to/notification.xml",
  "entities":
  [
    {
      "objectClassName": "entity",
      "handle": "XYZ-RIR",
      ...
    },
    ...
  ],
  "rpkiType": "hosted",
  "events":
  [
    {
      "eventAction": "registration",
      "eventDate": "2024-01-01T23:59:59Z"
    },
    ...
  ],
  "links":
  [
    {
      "value": "https://example.net/rdap/rpki1/aspa/XXXX",
      "rel": "self",
      "href": "https://example.net/rdap/rpki1/aspa/XXXX",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/aspa/XXXX",
      "rel": "related",
      "href": "https://example.net/rdap/autnum/65536",
      "type": "application/rdap+json"
    },
    ...
  ],
  "remarks":
  [
    {
      "description": [ "ASPA" ]
    }
  ]
}
]]></artwork>
</section>

<section anchor="lookup-1"><name>Lookup</name>
<t>The resource type path segment for exact match lookup of an ASPA object is &quot;rpki1/aspa&quot;.</t>
<t>The following lookup path segments are defined for an ASPA object:</t>
<t>Syntax: rpki1/aspa/&lt;handle&gt;</t>
<t>Syntax: rpki1/aspa/&lt;autonomous system number&gt;</t>
<t>A lookup query for ASPA information by handle is specified using this form:</t>
<t>rpki1/aspa/XXXX</t>
<t>XXXX is a string representing the &quot;handle&quot; property of an ASPA, as described in <xref target="aspa_object_class"></xref>. The following URL
would be used to find information for an ASPA that exactly matches the &quot;47ab80ed8693f25d0187d93a07db4484&quot; handle:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/aspa/47ab80ed8693f25d0187d93a07db4484
]]></artwork>
<t>A lookup query for ASPA information by autonomous system number is specified using this form:</t>
<t>rpki1/aspa/YYYY</t>
<t>YYYY is an autonomous system number representing the &quot;autnum&quot; property of an ASPA, as described in <xref target="aspa_object_class"></xref>.
The following URL would be used to find information for an ASPA with autonomous system number 65536:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/aspa/65536
]]></artwork>
<t>In the &quot;links&quot; array of an ASPA object, the context URI (&quot;value&quot; member) of each link should be the lookup URL by its
handle, and if that's not available, then the lookup URL by its autonomous system number.</t>
</section>

<section anchor="search-1"><name>Search</name>
<t>The resource type path segment for searching ASPA objects is &quot;rpki1/aspas&quot;.</t>
<t>The following search path segments are defined for ASPA objects:</t>
<t>Syntax: rpki1/aspas?name=&lt;name search pattern&gt;</t>
<t>Syntax: rpki1/aspas?providerAutnum=&lt;autonomous system number&gt;</t>
<t>Searches for ASPA information by name are specified using this form:</t>
<t>rpki1/aspas?name=XXXX</t>
<t>XXXX is a search pattern per <xref target="RFC9082" sectionFormat="of" section="4.1"></xref>, representing the &quot;name&quot; property of an ASPA, as described in
<xref target="aspa_object_class"></xref>. The following URL would be used to find information for ASPA names matching the &quot;ASPA-*&quot; pattern:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/aspas?name=ASPA-*
]]></artwork>
<t>Searches for ASPA information by provider autonomous system number are specified using this form:</t>
<t>rpki1/aspas?providerAutnum=YYYY</t>
<t>YYYY is an autonomous system number within the &quot;providerAutnums&quot; property of an ASPA, as described in
<xref target="aspa_object_class"></xref>. The following URL would be used to find information for ASPAs with provider autonomous system
number 65542:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/aspas?providerAutnum=65542
]]></artwork>

<section anchor="search-results-1"><name>Search Results</name>
<t>The ASPA search results are returned in the &quot;rpki1_aspaSearchResults&quot; member, which is an array of ASPA objects
(<xref target="aspa_object_class"></xref>).</t>
<t>Here is an elided example of the search results when finding information for ASPAs with provider autonomous system
number 65542:</t>

<artwork><![CDATA[{
  "rdapConformance":
  [
    "rdap_level_0",
    "rpki1",
    ...
  ],
  ...
  "rpki1_aspaSearchResults":
  [
    {
      "objectClassName": "rpki1_aspa",
      "handle": "XXXX",
      "name": "ASPA-1",
      "autnum": 65536,
      "providerAutnums":
      [
        65542,
        ...
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/XXXX.aspa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/aspa/XXXX",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/aspa/XXXX",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/aspa/XXXX",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65536",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="reverse-search-1"><name>Reverse Search</name>
<t>Per <xref target="RFC9536" sectionFormat="of" section="2"></xref>, if a server receives a reverse search query with a searchable resource type of &quot;autnums&quot;
(<xref target="I-D.ietf-regext-rdap-rir-search" sectionFormat="of" section="5"></xref>), a related resource type of &quot;rpki1_aspa&quot;, and an ASPA property of
&quot;autnum&quot; or &quot;providerAutnum&quot;, then the reverse search will be performed on the autonomous system number objects from its
data store.</t>
<t><xref target="reverse_search_registry"></xref> and <xref target="reverse_search_mapping_registry"></xref> include registration of entries for autonomous system
number searches in the RDAP Reverse Search and RDAP Reverse Search Mapping IANA registries when the related resource
type is &quot;rpki1_aspa&quot;.</t>
</section>

<section anchor="relationship-with-autonomous-system-number-object-class"><name>Relationship with Autonomous System Number Object Class</name>
<t>An autonomous system number object for an ASN range can span multiple ASPA objects. However, an ASPA object can only be
linked to a single autonomous system number object. It would be useful to show all the ASPA objects associated with an
autonomous system number object. To that end, this extension adds a new &quot;rpki1_aspas&quot; member to the Autonomous System
Number object class (<xref target="RFC9083" sectionFormat="of" section="5.5"></xref>):</t>

<ul spacing="compact">
<li>&quot;rpki1_aspas&quot; -- an array of ASPA objects (<xref target="aspa_object_class"></xref>) for the autonomous system number range in the
autonomous system number object; if the array is too large, the server MAY truncate it, per <xref target="RFC9083" sectionFormat="of" section="9"></xref></li>
</ul>
<t>Here is an elided example for an autonomous system number object with ASPAs:</t>

<artwork><![CDATA[{
  "objectClassName": "autnum",
  "handle": "ZZZZ-RIR",
  "startAutnum": 65536,
  "endAutnum": 65541,
  ...
  "rpki1_aspas":
  [
    {
      "objectClassName": "rpki1_aspa",
      "handle": "XXXX",
      "name": "ASPA-1",
      "autnum": 65536,
      "providerAutnums":
      [
        65542,
        ...
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/XXXX.aspa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/aspa/XXXX",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/aspa/XXXX",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/aspa/XXXX",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65536",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    {
      "objectClassName": "rpki1_aspa",
      "handle": "YYYY",
      "name": "ASPA-2",
      "autnum": 65537,
      "providerAutnums":
      [
        65543,
        ...
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/YYYY.aspa",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/aspa/YYYY",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/aspa/YYYY",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/aspa/YYYY",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65537",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="x509_resource_cert"><name>X.509 Resource Certificate</name>

<section anchor="x509_resource_cert_object_class"><name>Object Class</name>
<t>The X.509 resource certificate object class can contain the following members:</t>

<ul spacing="compact">
<li>&quot;objectClassName&quot; -- the string &quot;rpki1_x509ResourceCert&quot;</li>
<li>&quot;handle&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;serialNumber&quot; -- a string representing the unique identifier for the certificate (<xref target="RFC6487" sectionFormat="of" section="4.2"></xref>)</li>
<li>&quot;issuer&quot; -- a string representing the CA that issued the certificate (<xref target="RFC6487" sectionFormat="of" section="4.4"></xref>)</li>
<li>&quot;signatureAlgorithm&quot; -- a string representing the algorithm used by the CA to sign the certificate
(<xref target="RFC6487" sectionFormat="of" section="4.3"></xref>)</li>
<li>&quot;subject&quot; -- a string representing the identity of the subject the certificate is issued to (<xref target="RFC6487" sectionFormat="of" section="4.5"></xref>)</li>
<li><t>&quot;subjectPublicKeyInfo&quot; -- an object representing the subject's public key information (<xref target="RFC6487" sectionFormat="of" section="4.7"></xref>), with
the following members:</t>

<ul spacing="compact">
<li>&quot;publicKeyAlgorithm&quot; -- a string representing the algorithm for the public key</li>
<li>&quot;publicKey&quot; -- a string representation of the public key</li>
</ul></li>
<li>&quot;subjectKeyIdentifier&quot; -- a string, typically Base64-encoded, representing the unique identifier for the public key
(<xref target="RFC6487" sectionFormat="of" section="4.8.2"></xref>)</li>
<li>&quot;ips&quot; -- an array of strings, each representing an IPv4 or IPv6 CIDR address block with the
&quot;&lt;CIDR prefix&gt;/&lt;CIDR length&gt;&quot; format (<xref target="RFC6487" sectionFormat="of" section="4.8.10"></xref>)</li>
<li>&quot;autnums&quot; -- an array of unsigned 32-bit integers, each representing an autonomous system number
(<xref target="RFC6487" sectionFormat="of" section="4.8.11"></xref>)</li>
<li>&quot;notValidBefore&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notValidAfter&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;publicationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;notificationUri&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;entities&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;rpkiType&quot; -- see <xref target="common_data_members"></xref></li>
<li>&quot;events&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.5"></xref></li>
<li>&quot;links&quot; -- &quot;self&quot; link, and &quot;related&quot; links for IP network and/or autonomous system number objects
(<xref target="RFC9083" sectionFormat="of" section="4.2"></xref>)</li>
<li>&quot;remarks&quot; -- see <xref target="RFC9083" sectionFormat="of" section="4.3"></xref></li>
</ul>
<t>The following types of certificates can be represented using this object class:</t>

<ul spacing="compact">
<li>a CA certificate that a registry issues to an organization for its allocated IP addresses and/or autonomous system
numbers, authorizing the organization CA to issue end-entity certificates</li>
<li>a BGPSec router certificate (<xref target="RFC8209"></xref>) where an ASN(s) holder cryptographically asserts that a router holding the
corresponding private key is authorized to emit secure route advertisements on behalf of the AS(es) specified in the
certificate</li>
</ul>
<t>Here is an elided example of an X.509 resource certificate object for a CA certificate:</t>

<artwork><![CDATA[{
  "objectClassName": "rpki1_x509ResourceCert",
  "handle": "ABCD",
  "serialNumber": "1234",
  "issuer": "CN=RIR-CA",
  "signatureAlgorithm": "ecdsa-with-SHA256",
  "subject": "CN=ISP-CA",
  "subjectPublicKeyInfo":
  {
    "publicKeyAlgorithm": "id-ecPublicKey",
    "publicKey": "..."
  },
  "subjectKeyIdentifier": "hOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=",
  "ips":
  [
    "192.0.2.0/24",
    "2001:db8::/48"
  ],
  "autnums":
  [
    65536,
    65537
  ],
  "notValidBefore": "2024-04-27T23:59:59Z",
  "notValidAfter": "2025-04-27T23:59:59Z",
  "publicationUri": "rsync://example.net/path/to/ABCD.cer",
  "notificationUri": "https://example.net/path/to/notification.xml",
  "entities":
  [
    {
      "objectClassName": "entity",
      "handle": "XYZ-RIR",
      ...
    },
    ...
  ],
  "rpkiType": "hosted",
  "events":
  [
    {
      "eventAction": "registration",
      "eventDate": "2024-01-01T23:59:59Z"
    },
    ...
  ],
  "links":
  [
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "rel": "self",
      "href": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "rel": "related",
      "href": "https://example.net/rdap/ip/192.0.2.0/24",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "rel": "related",
      "href": "https://example.net/rdap/ip/2001:db8::/48",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "rel": "related",
      "href": "https://example.net/rdap/autnum/65536",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
      "rel": "related",
      "href": "https://example.net/rdap/autnum/65537",
      "type": "application/rdap+json"
    },
    ...
  ],
  "remarks":
  [
    {
      "description": [ "CA certificate" ]
    }
  ]
}
]]></artwork>
<t>Here is an elided example of an X.509 resource certificate object for a BGPSec router certificate:</t>

<artwork><![CDATA[{
  "objectClassName": "rpki1_x509ResourceCert",
  "handle": "EFGH",
  "serialNumber": "5678",
  "issuer": "CN=ISP-CA",
  "signatureAlgorithm": "ecdsa-with-SHA256",
  "subject": "CN=ISP-BGPSEC-ROUTER",
  "subjectPublicKeyInfo":
  {
    "publicKeyAlgorithm": "id-ecPublicKey",
    "publicKey": "..."
  },
  "subjectKeyIdentifier": "iOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=",
  "autnums":
  [
    65536,
    65537
  ],
  "notValidBefore": "2024-04-27T23:59:59Z",
  "notValidAfter": "2025-04-27T23:59:59Z",
  "publicationUri": "rsync://example.net/path/to/EFGH.cer",
  "notificationUri": "https://example.net/path/to/notification.xml",
  "entities":
  [
    {
      "objectClassName": "entity",
      "handle": "XYZ-RIR",
      ...
    },
    ...
  ],
  "rpkiType": "hosted",
  "events":
  [
    {
      "eventAction": "registration",
      "eventDate": "2024-01-01T23:59:59Z"
    },
    ...
  ],
  "links":
  [
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
      "rel": "self",
      "href": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
      "rel": "related",
      "href": "https://example.net/rdap/autnum/65536",
      "type": "application/rdap+json"
    },
    {
      "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
      "rel": "related",
      "href": "https://example.net/rdap/autnum/65537",
      "type": "application/rdap+json"
    },
    ...
  ],
  "remarks":
  [
    {
      "description": [ "BGPSec router certificate" ]
    }
  ]
}
]]></artwork>
</section>

<section anchor="lookup-2"><name>Lookup</name>
<t>The resource type path segment for exact match lookup of an X.509 resource certificate object is
&quot;rpki1/x509_resource_cert&quot;.</t>
<t>The following lookup path segment is defined for an X.509 resource certificate object:</t>
<t>Syntax: rpki1/x509_resource_cert/&lt;handle&gt;</t>
<t>For example:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_cert/ABCD
]]></artwork>
</section>

<section anchor="search-2"><name>Search</name>
<t>The resource type path segment for searching X.509 resource certificate objects is &quot;rpki1/x509_resource_certs&quot;.</t>
<t>The following search path segments are defined for X.509 resource certificate objects:</t>
<t>Syntax: rpki1/x509_resource_certs?handle=&lt;handle search pattern&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?issuer=&lt;issuer search pattern&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?subject=&lt;subject search pattern&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?subjectKeyIdentifier=&lt;subject key identifier&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?ip=&lt;IP address&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?cidr=&lt;CIDR&gt;</t>
<t>Syntax: rpki1/x509_resource_certs?autnum=&lt;autonomous system number&gt;</t>
<t>Searches for X.509 resource certificate information by handle are specified using this form:</t>
<t>rpki1/x509_resource_certs?handle=XXXX</t>
<t>XXXX is a search pattern per <xref target="RFC9082" sectionFormat="of" section="4.1"></xref>, representing the &quot;handle&quot; property of an X.509 resource
certificate object, as described in <xref target="x509_resource_cert_object_class"></xref>. The following URL would be used to find
information for X.509 resource certificate objects with handle matching the &quot;EFG*&quot; pattern:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?handle=EFG*
]]></artwork>
<t>Searches for X.509 resource certificate information by certificate issuer are specified using this form:</t>
<t>rpki1/x509_resource_certs?issuer=YYYY</t>
<t>YYYY is a search pattern per <xref target="RFC9082" sectionFormat="of" section="4.1"></xref>, representing the &quot;issuer&quot; property of an X.509 resource
certificate object, as described in <xref target="x509_resource_cert_object_class"></xref>. The following URL would be used to find
information for X.509 resource certificate objects with issuer matching the &quot;CN=ISP-*&quot; pattern:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?issuer=CN%3DISP-*
]]></artwork>
<t>Searches for X.509 resource certificate information by certificate subject are specified using this form:</t>
<t>rpki1/x509_resource_certs?subject=ZZZZ</t>
<t>ZZZZ is a search pattern per <xref target="RFC9082" sectionFormat="of" section="4.1"></xref>, representing the &quot;subject&quot; property of an X.509 resource
Certificate object, as described in <xref target="x509_resource_cert_object_class"></xref>. The following URL would be used to find
information for X.509 resource certificate objects with subject matching the &quot;CN=ISP-BGPSEC-ROUTE*&quot; pattern:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?subject=CN%3DISP-BGPSEC-ROUTE*
]]></artwork>
<t>Searches for X.509 resource certificate information by subject key identifier are specified using this form:</t>
<t>rpki1/x509_resource_certs?subjectKeyIdentifier=BBBB</t>
<t>BBBB is a string representing the &quot;subjectKeyIdentifier&quot; property of an X.509 resource certificate object, as described
in <xref target="x509_resource_cert_object_class"></xref>. The following URL would be used to find an X.509 resource certificate object with
subject key identifier matching the &quot;iOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=&quot; string:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?subjectKeyIdentifier=iOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=
]]></artwork>
<t>Searches for X.509 resource certificate information by an IP address are specified using this form:</t>
<t>rpki1/x509_resource_certs?ip=CCCC</t>
<t>CCCC is a string representing an IPv4 or IPv6 address. The following URL would be used to find information for X.509
resource certificate objects with the &quot;ips&quot; member encompassing the &quot;192.0.2.0&quot; IP address:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?ip=192.0.2.0
]]></artwork>
<t>Similarly, for the &quot;2001:db8::&quot; IP address:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?ip=2001%3Adb8%3A%3A
]]></artwork>
<t>Searches for X.509 resource certificate information by a CIDR are specified using this form:</t>
<t>rpki1/x509_resource_certs?cidr=CCCC/DDDD</t>
<t>CCCC/DDDD is a string representing an IPv4 or IPv6 CIDR, with CCCC as the CIDR prefix and DDDD as the CIDR length. The
following URL would be used to find information for X.509 resource certificate objects with the &quot;ips&quot; member
encompassing the &quot;192.0.2.0/25&quot; CIDR:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?cidr=192.0.2.0%2F25
]]></artwork>
<t>Similarly, for the &quot;2001:db8::/64&quot; CIDR:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?cidr=2001%3Adb8%3A%3A%2F64
]]></artwork>
<t>Searches for X.509 resource certificate information by an autonomous system number are specified using this form:</t>
<t>rpki1/x509_resource_certs?autnum=EEEE</t>
<t>EEEE is an autonomous system number within the &quot;autnums&quot; property of an X.509 resource certificate object, as described
in <xref target="x509_resource_cert_object_class"></xref>. The following URL would be used to find information for X.509 resource
certificate objects with the &quot;autnums&quot; member including autonomous system number 65536:</t>

<artwork><![CDATA[https://example.net/rdap/rpki1/x509_resource_certs?autnum=65536
]]></artwork>

<section anchor="search-results-2"><name>Search Results</name>
<t>The X.509 resource certificate search results are returned in the &quot;rpki1_x509ResourceCertSearchResults&quot; member, which is
an array of X.509 resource certificate objects (<xref target="x509_resource_cert_object_class"></xref>).</t>
<t>Here is an elided example of the search results when finding information for X.509 resource certificate objects with
issuer matching the &quot;CN=ISP-*&quot; pattern:</t>

<artwork><![CDATA[{
  "rdapConformance":
  [
    "rdap_level_0",
    "rpki1",
    ...
  ],
  ...
  "rpki1_x509ResourceCertSearchResults":
  [
    {
      "objectClassName": "rpki1_x509ResourceCert",
      "handle": "EFGH",
      "serialNumber": "5678",
      "issuer": "CN=ISP-CA",
      "signatureAlgorithm": "ecdsa-with-SHA256",
      "subject": "CN=ISP-BGPSEC-ROUTER",
      "subjectPublicKeyInfo":
      {
        "publicKeyAlgorithm": "id-ecPublicKey",
        "publicKey": "..."
      },
      "subjectKeyIdentifier": "iOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=",
      "autnums":
      [
        65536,
        65537
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/ABCD.cer",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65536",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65537",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="reverse-search-2"><name>Reverse Search</name>
<t>Per <xref target="RFC9536" sectionFormat="of" section="2"></xref>, if a server receives a reverse search query with a searchable resource type of &quot;ips&quot;
(<xref target="I-D.ietf-regext-rdap-rir-search" sectionFormat="of" section="5"></xref>), a related resource type of &quot;rpki1_x509ResourceCert&quot;, and an X.509
Resource Certificate property of &quot;handle&quot;, then the reverse search will be performed on the IP network objects from its
data store.</t>
<t>Similarly, if a server receives a reverse search query with a searchable resource type of &quot;autnums&quot;, a related resource
type of &quot;rpki1_x509ResourceCert&quot;, and an X.509 Resource Certificate property of &quot;handle&quot;, then the reverse search will
be performed on the autonomous system number objects.</t>
<t><xref target="reverse_search_registry"></xref> and <xref target="reverse_search_mapping_registry"></xref> include registration of entries for IP network and
autonomous system number searches in the RDAP Reverse Search and RDAP Reverse Search Mapping IANA registries when the
related resource type is &quot;rpki1_x509ResourceCert&quot;.</t>
</section>

<section anchor="relationship-with-other-object-classes"><name>Relationship with Other Object Classes</name>
<t>It would be useful to show all the X.509 resource certificates associated with an object of another RDAP class; in
particular, with an IP network object, an autonomous system number object, or an entity (organization) object. To that
end, this extension adds a new &quot;rpki1_x509ResourceCerts&quot; member to the IP Network (<xref target="RFC9083" sectionFormat="of" section="5.4"></xref>),
Autonomous System Number (<xref target="RFC9083" sectionFormat="of" section="5.5"></xref>), and Entity (<xref target="RFC9083" sectionFormat="of" section="5.1"></xref>) object classes:</t>

<ul spacing="compact">
<li>&quot;rpki1_x509ResourceCerts&quot; -- an array of X.509 resource certificate objects (<xref target="x509_resource_cert_object_class"></xref>) for
the IP address range in an IP network object, the autonomous system number range in an autonomous system number
object, or an entity (organization) object; if the array is too large, the server MAY truncate it, per
<xref target="RFC9083" sectionFormat="of" section="9"></xref></li>
</ul>
<t>Here is an elided example for an entity (organization) object with X.509 resource certificates:</t>

<artwork><![CDATA[{
  "objectClassName" : "entity",
  "handle":"XYZ-RIR",
  ...
  "rpki1_x509ResourceCerts":
  [
    {
      "objectClassName": "rpki1_x509ResourceCert",
      "handle": "ABCD",
      "serialNumber": "1234",
      "issuer": "CN=RIR-CA",
      "signatureAlgorithm": "ecdsa-with-SHA256",
      "subject": "CN=ISP-CA",
      "subjectPublicKeyInfo":
      {
        "publicKeyAlgorithm": "id-ecPublicKey",
        "publicKey": "..."
      },
      "subjectKeyIdentifier": "hOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=",
      "ips":
      [
        "192.0.2.0/24",
        "2001:db8::/48"
      ],
      "autnums":
      [
        65536,
        65537
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/ABCD.cer",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "rel": "related",
          "href": "https://example.net/rdap/ip/192.0.2.0/24",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "rel": "related",
          "href": "https://example.net/rdap/ip/2001:db8::/48",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65536",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/ABCD",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65537",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    {
      "objectClassName": "rpki1_x509ResourceCert",
      "handle": "EFGH",
      "serialNumber": "5678",
      "issuer": "CN=ISP-CA",
      "signatureAlgorithm": "ecdsa-with-SHA256",
      "subject": "CN=ISP-BGPSEC-ROUTER",
      "subjectPublicKeyInfo":
      {
        "publicKeyAlgorithm": "id-ecPublicKey",
        "publicKey": "..."
      },
      "subjectKeyIdentifier": "iOcGgxqXDa7mYv78fR+sGBKMtWJqItSLfaIYJDKYi8A=",
      "autnums":
      [
        65536,
        65537
      ],
      "notValidBefore": "2024-04-27T23:59:59Z",
      "notValidAfter": "2025-04-27T23:59:59Z",
      "publicationUri": "rsync://example.net/path/to/EFGH.cer",
      "notificationUri": "https://example.net/path/to/notification.xml",
      "entities":
      [
        {
          "objectClassName": "entity",
          "handle": "XYZ-RIR",
          ...
        },
        ...
      ],
      "rpkiType": "hosted",
      "events":
      [
        {
          "eventAction": "registration",
          "eventDate": "2024-01-01T23:59:59Z"
        },
        ...
      ],
      "links":
      [
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "self",
          "href": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65536",
          "type": "application/rdap+json"
        },
        {
          "value": "https://example.net/rdap/rpki1/x509_resource_cert/EFGH",
          "rel": "related",
          "href": "https://example.net/rdap/autnum/65537",
          "type": "application/rdap+json"
        },
        ...
      ],
      ...
    },
    ...
  ]
}
]]></artwork>
</section>
</section>

<section anchor="rdap-conformance"><name>RDAP Conformance</name>
<t>A server that supports the functionality specified in this document MUST include the &quot;rpki1&quot; string literal in the
&quot;rdapConformance&quot; array of its responses.</t>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>The RDAP extension in this document MUST NOT be used to directly influence internet routing. Neither RDAP nor this
extension define the necessary security properties or distribution mechanisms required to securely add, remove, or
modify internet routes.</t>
<t>This document does not introduce any new security considerations past those already discussed in the RDAP protocol
specifications (<xref target="RFC7481"></xref>, <xref target="RFC9560"></xref>).</t>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>

<section anchor="rdap-extensions-registry"><name>RDAP Extensions Registry</name>
<t>IANA is requested to register the following values in the RDAP Extensions Registry at <xref target="RDAP-EXTENSIONS"></xref>:</t>

<ul spacing="compact">
<li>Extension identifier: rpki1</li>
<li>Registry operator: Any</li>
<li>Published specification: This document.</li>
<li>Contact: IETF <eref target="mailto:iesg@ietf.org">iesg@ietf.org</eref></li>
<li>Intended usage: This extension is used for accessing the RPKI registration data through RDAP.</li>
</ul>
</section>

<section anchor="reverse_search_registry"><name>RDAP Reverse Search Registry</name>
<t>IANA is requested to register the following entries in the RDAP Reverse Search Registry at <xref target="RDAP-REVERSE-SEARCH"></xref>:</t>
<t>IP network search by the origin autonomous system number of a ROA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_roa</li>
<li>Property: originAutnum</li>
<li>Description: The server supports the IP network search by the origin autonomous system number of an associated RPKI
ROA.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>IP network search by a CIDR address block of a ROA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_roa</li>
<li>Property: ip</li>
<li>Description: The server supports the IP network search by a CIDR address block of an associated RPKI ROA.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by the autonomous system number of an ASPA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_aspa</li>
<li>Property: autnum</li>
<li>Description: The server supports the autonomous system number search by the autonomous system number of an associated
RPKI ASPA.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by a provider autonomous system number of an ASPA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_aspa</li>
<li>Property: providerAutnum</li>
<li>Description: The server supports the autonomous system number search by a provider autonomous system number of an
associated RPKI ASPA.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>IP network search by the handle of an X.509 resource certificate:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_x509ResourceCert</li>
<li>Property: handle</li>
<li>Description: The server supports the IP network search by the handle of an associated RPKI X.509 resource certificate.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by the handle of an X.509 resource certificate:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_x509ResourceCert</li>
<li>Property: handle</li>
<li>Description: The server supports the autonomous system number search by the handle of an associated RPKI X.509
resource certificate.</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
</section>

<section anchor="reverse_search_mapping_registry"><name>RDAP Reverse Search Mapping Registry</name>
<t>IANA is requested to register the following entries in the RDAP Reverse Search Mapping Registry
at <xref target="RDAP-REVERSE-SEARCH-MAPPING"></xref>:</t>
<t>IP network search by the origin autonomous system number of a ROA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_roa</li>
<li>Property: originAutnum</li>
<li>Property Path: $.originAutnum</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>IP network search by a CIDR address block of a ROA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_roa</li>
<li>Property: ip</li>
<li>Property Path: $.roaIps[*].ip</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by the autonomous system number of an ASPA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_aspa</li>
<li>Property: autnum</li>
<li>Property Path: $.autnum</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by a provider autonomous system number of an ASPA:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_aspa</li>
<li>Property: providerAutnum</li>
<li>Property Path: $.providerAutnums[*]</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>IP network search by the handle of an X.509 resource certificate:</t>

<ul spacing="compact">
<li>Searchable Resource Type: ips</li>
<li>Related Resource Type: rpki1_x509ResourceCert</li>
<li>Property: handle</li>
<li>Property Path: $.handle</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
<t>Autonomous system number search by the handle of an X.509 resource certificate:</t>

<ul spacing="compact">
<li>Searchable Resource Type: autnums</li>
<li>Related Resource Type: rpki1_x509ResourceCert</li>
<li>Property: handle</li>
<li>Property Path: $.handle</li>
<li>Registrant Name: IETF</li>
<li>Registrant Contact Information: iesg@ietf.org</li>
<li>Reference: This document.</li>
</ul>
</section>
</section>

<section anchor="acknowledgements"><name>Acknowledgements</name>
<t>Job Snijders, Ties de Kock, Mark Kosters, Tim Bruijnzeels, Bart Bakker, and Frank Hill provided valuable feedback for
this document.</t>
</section>

</middle>

<back>
<references><name>References</name>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml9/reference.BCP.14.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-regext-rdap-rir-search.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-sidrops-aspa-profile.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1519.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3339.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5396.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6480.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6487.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8182.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8209.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9082.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9083.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9536.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9582.xml"/>
</references>
<references><name>Informative References</name>
<reference anchor="CLOUDFLARE" target="https://rpki.cloudflare.com/">
  <front>
    <title>RPKI Portal</title>
    <author>
      <organization>Cloudflare</organization>
    </author>
  </front>
</reference>
<reference anchor="JDR" target="https://blog.nlnetlabs.nl/introducing-jdr/">
  <front>
    <title>JDR</title>
    <author>
      <organization>NLNet Labs</organization>
    </author>
  </front>
</reference>
<reference anchor="RDAP-EXTENSIONS" target="https://www.iana.org/assignments/rdap-extensions/">
  <front>
    <title>RDAP Extensions</title>
    <author>
      <organization>IANA</organization>
    </author>
  </front>
</reference>
<reference anchor="RDAP-GUIDE" target="https://rdap.rcode3.com/misc/uses.html">
  <front>
    <title>RDAP Guide</title>
    <author>
      <organization>Newton, A.</organization>
    </author>
  </front>
</reference>
<reference anchor="RDAP-REVERSE-SEARCH" target="https://www.iana.org/assignments/rdap-reverse-search/">
  <front>
    <title>RDAP Reverse Search</title>
    <author>
      <organization>IANA</organization>
    </author>
  </front>
</reference>
<reference anchor="RDAP-REVERSE-SEARCH-MAPPING" target="https://www.iana.org/assignments/rdap-reverse-search-mapping/">
  <front>
    <title>RDAP Reverse Search Mapping</title>
    <author>
      <organization>IANA</organization>
    </author>
  </front>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2622.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4271.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7481.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9560.xml"/>
</references>
</references>

</back>

</rfc>
