<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE rfc [
 <!ENTITY nbsp    "&#160;">
 <!ENTITY zwsp   "&#8203;">
 <!ENTITY nbhy   "&#8209;">
 <!ENTITY wj     "&#8288;">
]>

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-sidrops-rpki-crl-numbers-05" number="9829" ipr="trust200902" xml:lang="en" sortRefs="true" submissionType="IETF" consensus="true" updates="6487" obsoletes="" symRefs="true" tocInclude="true" version="3">

  <front>
    <title abbrev="RPKI CRL Number Handling">Handling of Resource Public Key Infrastructure (RPKI) Certificate Revocation List (CRL) Number Extensions</title>
    <seriesInfo name="RFC" value="9829"/>
    <author fullname="Job Snijders" initials="J." surname="Snijders">
      <address>
        <postal>
         <postalLine>Amsterdam</postalLine>
         <postalLine>The Netherlands</postalLine>
        </postal>
        <email>job@sobornost.net</email>
      </address>
    </author>

    <author fullname="Ben Maddison" initials="B." surname="Maddison">
      <organization>Workonline</organization>
      <address>
        <postal>
          <city>Cape Town</city>
          <country>South Africa</country>
        </postal>
        <email>benm@workonline.africa</email>
      </address>
    </author>

    <author fullname="Theo Buehler" initials="T." surname="Buehler">
      <organization>OpenBSD</organization>
      <address>
        <postal>
          <country>Switzerland</country>
        </postal>
        <email>tb@openbsd.org</email>
      </address>
    </author>

    <date month="July" year="2025"/>

   <area>OPS</area>
   <workgroup>sidrops</workgroup>

   <keyword>RPKI</keyword>
   <keyword>Routing Security</keyword>
   <keyword>BGP</keyword>
   <keyword>X.509</keyword>
   <keyword>CRL</keyword>

    <abstract>
      <t>
        This document revises how the Resource Public Key Infrastructure (RPKI) handles Certificate Revocation List (CRL) Number extensions.
        This document updates RFC 6487.
      </t>
    </abstract>
  </front>
  <middle>

    <section anchor="intro">
      <name>Introduction</name>
      <t>
        <xref target="RFC5280" section="5.2.3" /> describes the value of the Certificate Revocation List (CRL) Number extension as a monotonically increasing sequence number, which "allows users to easily determine when a particular CRL supersedes another CRL".
        In other words, in Public Key Infrastructures (PKIs) in which it is possible for Relying Parties (RPs) to encounter multiple usable CRLs, the CRL Number extension is a means for an RP to determine which CRLs to rely upon.
      </t>

      <t>
        In the Resource Public Key Infrastructure (RPKI), a well-formed manifest fileList contains exactly one entry for its associated CRL, together with a collision-resistant message digest of that CRL's contents (see <xref target="RFC6481" section="2.2"/> and <xref target="RFC9286" section="2"/>).
        Additionally, the target of the CRL Distribution Points extension in an RPKI Resource Certificate is the same CRL object listed on the issuing Certification Authorities (CAs) current manifest (see <xref target="RFC6487" section="4.8.6"/>).
        Together, these properties guarantee that RPKI RPs will always be able to unambiguously identify exactly one current CRL for each RPKI CA.
        Thus, in the RPKI, the ordering functionality provided by CRL Numbers is fully subsumed by monotonically increasing manifest numbers (<xref target="RFC9286" section="4.2.1"/>), thereby obviating the need for RPKI RPs to process CRL Number extensions at all.
      </t>

      <t>
        Therefore, although the CRL Number extension is mandatory in RPKI CRLs for compliance with the X.509 v2 CRL Profile (<xref target="RFC5280" section="5"/>), any use of this extension by RPKI RPs merely adds complexity and fragility to RPKI Resource Certificate path validation.
        This document mandates that RPKI RPs ignore the CRL Number extension.
      </t>

      <t>
        This document updates <xref target="RFC6487"/>.
        Refer to <xref target="Updates"/> for more details.
      </t>

     <section anchor="reqs-lang">
      <name>Requirements Language</name>
        <t>
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
    "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>",
    "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
    "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be
    interpreted as described in BCP&nbsp;14 <xref target="RFC2119"/> <xref
    target="RFC8174"/> when, and only when, they appear in all capitals, as
    shown here.
        </t>
     </section>

    <section anchor="Related">
      <name>Related Work</name>
      <t>
        The reader is assumed to be familiar with the terms and concepts described in "Internet X.509 Public Key Infrastructure Certificate
   and Certificate Revocation List (CRL) Profile" 
        <xref target="RFC5280" />, "A Profile
   for Resource Certificate Repository Structure" <xref target="RFC6481" format="default"/>, and "Manifests for the Resource Public Key Infrastructure (RPKI)" <xref target="RFC9286" format="default"/>.
      </t>
    </section>

    <section anchor="Changes">
      <name>Changes from RFC 6487</name>
        <t>
          This section summarizes the significant changes between <xref target="RFC6487"/> and this document.
        </t>

        <ul>
          <li>Revision of CRL Number handling.</li>
          <li>Adjustment of step 5 of the Resource Certification Path Validation.</li>
          <li>Integration of Errata 3205 <xref target="Err3205"/>.</li>
        </ul>
    </section>

    </section>

    <section>
    <name>Summary</name>
      <t>
        This document clarifies that, in the RPKI, there is exactly one CRL that is appropriate and relevant for determining the revocation status of a given resource certificate.
        It is the unique CRL object that is simultaneously:
      </t>
      <ul>
        <li>the target of the certificate's CRL Distribution Points extension, and</li>

        <li>listed in the issuing CA's current manifest fileList and has a matching hash (see <xref target="RFC9286" section="4.2.1"/>).</li>
      </ul>
      <t>
In particular, a resource certificate cannot be validated without
   consulting the current manifest of the certificate's issuer.
      </t>
    </section>

    <section anchor="Updates">
    <name>Updates to RFC 6487</name>

    <section>
    <name>Updates to Section 5</name>
      <t>
        This section updates <xref target="RFC6487" section="5"/> as follows:
      </t>
      <ul spacing="normal">
        <li>
          <t>First change:</t>
          <t>OLD</t>
          <blockquote>
            <t>
              Where two or more CRLs are issued by the same CA, the CRL with the highest value of the "CRL Number" field supersedes all other CRLs issued by this CA.
            </t>
          </blockquote>
          <t>NEW</t>
          <blockquote>
            <t>
              Per <xref target="RFC5280" section="5.2.3"/>, CAs issue new CRLs using a monotonically increasing sequence number in the "CRL Number" extension.
              It is <bcp14>RECOMMENDED</bcp14> that the "CRL Number" match the "manifestNumber" of the manifest that will include this CRL (see <xref target="RFC9286" section="4.2.1" />).
            </t>
          </blockquote>
        </li>
        <li>
          <t>Second change:</t>
          <t>OLD</t>
          <blockquote>
            <t>
              An RPKI CA <bcp14>MUST</bcp14> include the two extensions, Authority Key Identifier and CRL Number, in every CRL that it issues.
              RPs <bcp14>MUST</bcp14> be prepared to process CRLs with these extensions.
              No other CRL extensions are allowed.
            </t>
          </blockquote>
          <t>NEW</t>
          <blockquote>
            <t>
              An RPKI CA <bcp14>MUST</bcp14> include exactly two extensions in every CRL that it issues: an Authority Key Identifier (AKI) and a CRL Number.
              No other CRL extensions are allowed.
            </t>
            <ul>
              <li>RPs <bcp14>MUST</bcp14> process the AKI extension.</li>

              <li>RPs <bcp14>MUST</bcp14> ignore the CRL Number extension except for checking that it is marked as non-critical and contains a non-negative integer less than or equal to 2<sup>159</sup>-1.</li>
            </ul>
          </blockquote>
        </li>
      </ul>
    </section>

    <section>
    <name>Update to Section 7.2</name>
      <t>
        This section updates <xref target="RFC6487" section="7.2"/> as follows:
      </t>
      <t>OLD</t>
      <blockquote>
      <ol start="5">
      <li>The issuer has not revoked the certificate.
        A revoked certificate is identified by the certificate's serial number being listed on the issuer's current CRL, as identified by the CRLDP of the certificate, the CRL is itself valid, and the public key used to verify the signature on the CRL is the same public key used to verify the certificate itself.</li>
      </ol>
      </blockquote>
      <t>NEW</t>
      <blockquote>
      <ol start="5">
      <li>The issuer has not revoked the certificate.
        A revoked certificate is identified by the certificate's serial number being listed on the issuer's current CRL, as identified by the issuer's current manifest and the CRLDP of the certificate.
        The CRL is itself valid and the public key used to verify the signature on the CRL is the same public key used to verify the certificate itself.</li>
      </ol>
      </blockquote>
    </section>

    </section>

    <section anchor="operational">
    <name>Operational Considerations</name>
    <t>
This document has no additional operational considerations beyond those described in <xref target="RFC6487" section="9"/>.
    </t>

    </section>

    <section anchor="security">
      <name>Security Considerations</name>
      <t>
        The Security Considerations of <xref target="RFC3779"/>, <xref target="RFC5280"/>, and <xref target="RFC6487"/> apply to Resource Certificates and CRLs.
      </t>
      <t>
        This document explicates that, in the RPKI, the CRL listed on the certificate issuer's current manifest is the one relevant and appropriate for determining the revocation status of a resource certificate.
   The hash in the manifest's fileList
   provides a cryptographic guarantee on the Certification Authority's
   intent that this is the most recent CRL and removes possible replay
   vectors.
      </t>
    </section>

    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>
This document has no IANA actions.
      </t>
    </section>

  </middle>

  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>

        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6481.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.8174.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9286.xml"/>

      </references>

      <references>
        <name>Informative References</name>

        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3779.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5280.xml"/>
   <reference anchor="Err3205" target="https://www.rfc-editor.org/errata/eid3205" quoteTitle="false">

     <front>
       <title>RFC Errata, Erratum ID 3205</title>

       <author initials="" surname="" fullname="">
         <organization />
       </author>

     </front>
     <seriesInfo name="RFC" value="6487" />
   </reference>


      </references>
    </references>

    <section anchor="acknowledgements" numbered="false">
      <name>Acknowledgements</name>
      <t>
      The authors wish to thank <contact fullname="Tom Harrison"/> whose observations prompted this document, <contact fullname="Alberto Leiva"/>, <contact fullname="Tim Bruijnzeels"/>, <contact fullname="Mohamed Boucadair"/>, <contact fullname="Geoff Huston"/>, and the IESG for their valuable comments and feedback.
      </t>
    </section>

  </back>
</rfc>
