<?xml version='1.0' encoding='utf-8'?>
<?xml-model href="rfc7991bis.rnc"?>

<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;"> <!-- word joiner -->
  <!ENTITY mu      "&#956;"> <!-- Greek letter mu -->
]>

<rfc 
   xmlns:xi="http://www.w3.org/2001/XInclude" 
   category="info" 
   docName="draft-jenkins-cnsa2-cmc-profile-02" 
   ipr="trust200902"
   obsoletes="8756"
   submissionType="independent" 
   xml:lang="en"
   version="3">


  <front>
    <title abbrev="CNSA2 CMC Profile">Commercial National Security Algorithm (CNSA) Suite 2.0 Profile for Certificate Management over CMS</title>

    <seriesInfo name="Internet-Draft" value="draft-jenkins-cnsa2-cmc-profile-02" stream="independent"/>

    <author fullname="Michael Jenkins" initials="M" surname="Jenkins">
      <organization abbrev="NSA-CCSS" showOnFrontPage="true">National Security Agency</organization>
      <address>
        <email>mjjenki@cyber.nsa.gov</email>
      </address>
    </author>

    <date year="2026"/>

    <area>Security</area>
    <workgroup>Network Working Group</workgroup>

    <keyword>CNSA</keyword>
    <keyword>NSS</keyword>
    <keyword>certificate</keyword>
    <keyword>enrollment</keyword>

    <abstract>
      <t>This document specifies a profile of the Certificate Management over CMS (CMC) protocol for managing X.509 public key certificates in applications that use the Commercial National Security Algorithm (CNSA) Suite published by the United States Government.
</t>
      <t>The profile applies to the capabilities, configuration, and operation of all components of US National Security Systems that manage X.509 public key certificates over CMS.  It is also appropriate for all other US Government systems that process high-value information.
</t>
      <t>This memo is not an IETF standard, and does not represent IETF community consensus. The profile is made publicly available here for use by developers and operators of these and any other system deployments. This document obsoletes <xref target="RFC8756"/>, the CNSA 1.0 guidance.
</t>
    </abstract>

  </front>

  <middle>

    <section anchor="intro">
      <name>Introduction</name>

      <t>This document specifies a profile of the Certificate Management over CMS (CMC) protocol to comply with the United States National Security Agency's Commercial National Security Algorithm (CNSA) Suite <xref target="cnsafaq"/>. The profile applies to the capabilities, configuration, and operation of all components of US National Security Systems that employ managed X.509 certificates. US National Security Systems are described in NIST Special Publication 800-59 <xref target="SP80059"/>. The profile is also appropriate for all other US Government systems that process high-value information. It is made publicly available for use by developers and operators of these and any other system deployments.</t>

      <t>This document does not define any new cryptographic algorithm; instead, it defines a CNSA-compliant profile of CMC. CMC is defined in <xref target="RFC5272"/>, <xref target="RFC5273"/>, and <xref target="RFC5274"/> and is updated by <xref target="RFC6402"/>. This document profiles CMC to manage X.509 public key certificates in compliance with the CNSA Suite Certificate and Certificate Revocation List (CRL) profile <xref target="I-D.jenkins-cnsa2-pkix-profile"/>. This document specifically focuses on defining CMC interactions for both the initial enrollment and rekey of CNSA Suite public key certificates between a client and a Certification Authority (CA).  One or more Registration Authorities (RAs) may act as intermediaries between the client and the CA.  Non-requirement aspects of this profile may be further tailored by specific communities to meet their needs. Specific communities will also define certificate policies that implementations need to comply with.</t>
		
		<t>This memo is not an IETF standard, and does not represent IETF community consensus.</t>

<!--      <t>[EDNOTE: Need to address how prior CNSA guidance will be superseded.]</t>
        <t>This document obsoletes the CSNA 1.0 guidance in RFC 8756 <xref target="RFC756"/>.</t>  -->

    </section>  <!-- intro  -->

    <section anchor="terms">
      <name>Terminology</name>

      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>

      <t>The terminology in <xref target="RFC5272"/> Section 2.1 applies to this profile.</t>

      <t>The term "certificate request" is used to refer to a single PKCS #10 or  Certificate Request Message Format (CRMF) structure. All PKI Requests are Full PKI Requests, and all PKI Responses are Full PKI Responses; the respective set of terms should be interpreted synonymously in this document.</t>

    </section>  <!--  terms  -->

    <section anchor="cnsa">
      <name>The Commercial National Security Algorithm Suite</name>

         <t>The National Security Agency (NSA) profiles commercial cryptographic algorithms and protocols as part of its mission to support secure, interoperable communications for US Government National Security Systems.  To this end, it publishes guidance both to assist with transitioning the United States Government to new algorithms and to provide vendors, and the Internet community in general, with information concerning their proper use and configuration within the scope of US Government National Security Systems (NSS).</t>

         <t>The Commercial National Security Algorithm (CNSA) Suite is the set of approved commercial algorithms that can be used by vendors and IT users to meet cybersecurity and interoperability requirements for NSS.  The first suite of CNSA Suite algorithms, “Suite B”, established a baseline for use of commercial algorithms to protect classified information. The next suite, “CNSA 1.0”, served as a bridge between the original set and a fully post-quantum cryptographic capability. The current suite, “CNSA 2.0”, establishes fully PQ protection <xref target="cnsafaq"/>.</t>
		 
<!--     Pursuant to the “National Security Memorandum on Promoting United States Leadership in Quantum Computing While Mitigating Risks to Vulnerable Cryptographic Systems” <xref target="NSM-10"/>, t -->

         <t>The National Institute for Standards and Technology (NIST) has standardized several post-quantum asymmetric algorithms. From these, NSA has selected two: one for signing ML-DSA-87, and another for key establishment ML-KEM-1024. With SHA-384 (or SHA-512), AES-256, and LMS/XMSS, these comprise the CNSA Suite 2.0.</t>

         <t>The NSA is authoring a set of RFCs, including this one, to provide updated guidance concerning the use of certain commonly available commercial algorithms in IETF protocols.  These RFCs can be used in conjunction with other RFCs and cryptographic guidance (e.g., NIST Special Publications) to properly protect Internet traffic and data-at-rest for US Government National Security Systems.</t>

    </section>  <!--  cnsa  -->

    <section anchor="reqts">
      <name>General Requirements</name>

      <t>This document assumes that the required trust anchors have been securely provisioned to the client and, when applicable, to any RAs.</t>

      <t>All requirements in <xref target="RFC5272"/>, <xref target="RFC5273"/>, <xref target="RFC5274"/>, and <xref target="RFC6402"/> apply, except where overridden by this profile.</t>
<!--
      <t>This profile was developed with the scenarios described in <xref target="scenarios"/> in mind. However, use of this profile is not limited to just those scenarios.</t>
-->
      <t>The term "client" in this profile typically refers to an end-entity. However, it may instead refer to a third party acting on the end-entity's behalf. The client may or may not be the entity that actually generates the key pair, but it does perform the CMC protocol interactions with the RA and/or CA. For example, the client may be a token management system that communicates with a cryptographic token through an out-of-band secure protocol.</t>

      <t>This profile uses the term "rekey" in the same manner as CMC does (defined in <xref target="RFC5272"/> Section 2). The profile makes no specific statements about the ability to do "renewal" operations; however, the statements applicable to "rekey" should be applied to "renewal" as well.</t>

      <t>This profile may be used to manage RA and CA certificates. In that case, the terms "end-entity" and "end-entity certificate" refers to the RA and RA certificate or CA and CA certificate respectively. Note that this usage is ad hoc and is consistent with <xref target="RFC5272"/> but not the <xref target="RFC5280"/> definition which states that "End entity certificates are issued to subjects that are not authorized to issue certificates".</t>
	  
	  <t>Signatures MUST be ML-DSA-87. The ML-DSA algorithm incorporates an internal hashing function, so there is no need to apply a hashing algorithm before signing. Where an application or implementation makes it more efficient to perform hashing externally, the external-μ mechanism described in Step 6 of Algorithm 7 of <xref target="FIPS204" /> and Section 8 of <xref target="RFC9881" /> MAY be used. Any other hashing outside of ML-DSA or ML-KEM MUST use either SHA-384 or SHA-512; SHA-384 SHOULD be used. HashML-DSA is not permitted.</t>

    </section>  <!--  reqts  -->

    <section anchor="client-reqts-gen">
      <name>Client Requirements: Generating PKI Requests</name>

      <t>This section specifies the conventions employed when a client requests a certificate from a Public Key Infrastructure (PKI).</t>

      <t>The Full PKI Request MUST be used; it MUST be encapsulated in a SignedData; and the SignedData MUST be constructed in accordance with <xref target="draft-becker-cnsa2-smime-profile-00"/>. The PKIData content type defined in <xref target="RFC5272"/> is used with the following additional requirements:</t>

      <ul spacing="normal" bare="false" empty="false">


          <li>controlSequence SHOULD be present. TransactionId and SenderNonce SHOULD be included. Other CMC controls MAY be included.</li>

<!-- Removed as part of KEM PoP purge.

          <ul spacing="normal" bare="false" empty="false">

            <li>TransactionId and SenderNonce SHOULD be included. Other CMC controls MAY be included.</li>

            <li>

              <t>If the subject identifier is being authenticated using a shared-secret, then Identity Proof Version 2 control MUST be included with the following constraints:</t>

              <ul spacing="normal" bare="false" empty="false">

                <li>hashAlgId MUST be id-sha384 for all certification requests (algorithm OIDs are defined in <xref target="RFC5754"/>).</li>

                <li>macAlgId MUST be HMAC-SHA384 (the Hashed	Message Authentication Code (HMAC) algorithm is defined in <xref target="RFC4231"/>).</li>

              </ul>

            </li>

            <li>If the subject name included in the certification request is NULL or otherwise does not uniquely identify the end-entity, then the POP Link Random control MUST be included, and the POP Link Witness Version 2 control MUST be included in the inner PKCS #10 <xref target="RFC2986"/> or Certificate Request Message Format (CRMF) <xref target="RFC4211"/> request as described in Sections <xref target="tgd-cert-reqst"/> and <xref target="cert-reqst-msg"/>.</li>

          </ul>

        </li>
-->
        <li>reqSequence MUST be present.  It MUST include at least one tcr (see <xref target="tgd-cert-reqst"/>) or crm (see <xref target="cert-reqst-msg"/>) TaggedRequest. Support for the orm choice is OPTIONAL.</li>

      </ul>

      <t>The private signing key used to generate the encapsulating SignedData MUST correspond to the public key of an existing signature certificate unless an appropriate signature certificate does not yet exist, such as during initial enrollment. In that case, procedural means that ensure the identity of the requestor MUST be used; see <xref target="init_enroll"/>.</t>

      <t>The encapsulating SignedData MUST be generated using SHA-384 (SignerInfo digestAlgorithm, when used to compute the message-digest attribute) and ML-DSA-87 (SignerInfo signatureAlgorithm).</t>

      <t>A Full PKI Request that is authenticated using a shared-secret (e.g. because no appropriate certificate exists yet to authenticate the request) MUST be signed using the private key corresponding to the public key of one of the requested certificates contained therein.</t>


      <section anchor="tgd-cert-reqst">
        <name>Tagged Certification Request</name>

        <t>The reqSequence tcr choice conveys PKCS #10 <xref target="RFC2986"/> syntax.  The CertificateRequest MUST comply with <xref target="RFC5272"/> Section 3.2.1.2.1, with the following additional requirements:</t>

        <ul spacing="normal" bare="false" empty="false">
          <li>

            <t>certificationRequestInfo:</t>

            <ul spacing="normal" bare="false" empty="false">
              <li>subjectPublicKeyInfo MUST be set as defined in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</li>

              <li>

                <t>Attributes:</t>

                <ul spacing="normal" bare="false" empty="false">

                  <li>

                    <t>The ExtensionReq attribute MUST be included with its contents as follows:</t>

                    <ul spacing="normal" bare="false" empty="false">
                      <li>The keyUsage extension MUST be included, and it MUST be set as defined in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</li>

                      <li>For rekey requests, if the subject field of the certificate being used to generate the signature is NULL, the SubjectAltName extension MUST be included and set equal to the SubjectAltName of the certificate that is being used to sign the SignedData encapsulating the request (i.e., not the certificate being rekeyed).</li>

                      <li>Other extension requests MAY be included as desired.</li>

                    </ul>

                  </li>

                  <li>The ChangeSubjectName attribute, as defined in <xref target="RFC6402"/>, MUST be included if the Full PKI Request encapsulating this Tagged Certification Request is being signed by a key for which a certificate currently exists and the existing certificate's subject field or SubjectAltName extension does not match the desired subject name or SubjectAltName extension of this certification request.</li>
<!--
                  <li>The POP Link Witness Version 2 attribute MUST be included if the request is being authenticated using a shared-secret and the subject name in the certification request is NULL or otherwise does not uniquely identify the end-entity.  In the POP Link Witness Version 2 attribute, keyGenAlgorithm MUST be id-sha384 for certification requests, as defined in <xref target="RFC5754"/>; macAlgorithm MUST be HMAC-SHA384, as defined in <xref target="RFC4231"/>.</li>
-->
                </ul>

              </li>

              <li>signatureAlgorithm MUST be id-ml-dsa-87.</li>

              <li>signature MUST be generated using the private key corresponding to the public key in the CertificationRequestInfo for signature certification requests, or with an existing signing private key that has been previously certified to the same Subject.</li>

            </ul>

          </li>

        </ul>

      </section>  <!--  tgd-cert-reqst  -->

      <section anchor="cert-reqst-msg">
        <name>Certificate Request Message</name>

        <t>The reqSequence crm choice conveys Certificate Request Message Format (CRMF) <xref target="RFC4211"/> syntax. The CertReqMsg MUST comply with <xref target="RFC5272"/> Section 3.2.1.2.2, with the following additional requirements:</t>

        <ul spacing="normal" bare="false" empty="false">
          <li>popo MUST be included using the signature (POPOSigningKey)
	  proof-of-possession choice and be set as defined in <xref target="RFC4211"/> Section 4.1 for <!--both--> signature <!--and key establishment--> certification requests. The POPOSigningKey poposkInput field MUST be omitted.  The POPOSigningKey algorithmIdentifier MUST be id-ml-dsa-87.  The signature MUST be generated using the private key corresponding to the public key in the CertTemplate, or to the public key in an existing signature certificate issued to the same Subject.</li>

        </ul>

        <t>The CertTemplate MUST comply with <xref target="RFC5272"/> Section 3.2.1.2.2, with the following additional requirements:</t>

        <ul spacing="normal" bare="false" empty="false">
          <li>If version is included, it MUST be set to 2 as defined in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</li>

          <li>publicKey MUST be set as defined in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</li>

          <li>
            <t>Extensions:</t>

            <ul spacing="normal" bare="false" empty="false">
              <li>The keyUsage extension MUST be included, and it MUST be set as defined in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</li>

              <li>For rekey requests, the SubjectAltName extension MUST be included and set equal to the SubjectAltName of the certificate that is being used to sign the SignedData encapsulating the request (i.e., not the certificate being rekeyed) if the subject name of the certificate being used to generate the signature is NULL.</li>

              <li>Other extension requests MAY be included as desired.</li>

            </ul>
          </li>

          <li>
            <t>Controls:</t>

            <ul spacing="normal" bare="false" empty="false">
              <li>The ChangeSubjectName attribute, as defined in <xref target="RFC6402" sectionFormat="of" derivedContent="RFC6402"/>, MUST be included if the Full PKI Request encapsulating this Tagged Certification Request is being signed by a key for which a certificate currently exists and the existing certificate's subject name or SubjectAltName extension does not match the desired subject name or SubjectAltName extension of this certification request.</li>
<!--
              <li>The POP Link Witness Version 2 attribute MUST be included if the request is being authenticated using a shared-secret and the subject name in the certification request is NULL or otherwise does not uniquely identify the end-entity.  In the POP Link Witness Version 2 attribute, keyGenAlgorithm MUST be id-sha384 for certification requests; macAlgorithm MUST be HMAC-SHA384 when keyGenAlgorithm is id-sha384.</li>
-->
            </ul>
          </li>

        </ul>

      </section>  <!--  cert-reqst-msg  -->

    </section>  <!--  client-reqts-gen  -->

    <section anchor="ra_reqts">
      <name>RA Requirements</name>

      <t>This section addresses the optional case where one or more RAs act as intermediaries between clients and a CA as described in <xref target="RFC5272"/> Section 7. In this section, the term "client" refers to the entity from which the RA received the PKI Request. This section is only applicable to RAs.</t>

      <section anchor="ra-proc-reqst">
        <name>RA Processing of Requests</name>

        <t>RAs conforming to this document MUST ensure that only the permitted signature and hash <!-- signature, hash, and MAC --> algorithms described throughout this profile are used in requests; if they are not, the RA MUST reject those requests.  The RA SHOULD return a CMCFailInfo with the value of badAlg <xref target="RFC5272"/>.</t>

        <t>When processing end-entity-generated SignedData objects, RAs MUST NOT perform Cryptographic Message Syntax (CMS) Content Constraints (CCC) certificate extension processing <xref target="RFC6010"/>.</t>

        <t>Other RA processing is performed as described in <xref target="RFC5272"/>.</t>

      </section>  <!--  ra-proc-reqst  -->

      <section anchor="ra-gend-pki-reqst">
        <name>RA-Generated PKI Requests</name>

        <t>RAs mediate the certificate request process by collecting client requests in batches. The RA MUST encapsulate client-generated PKI Requests in a new RA-signed PKI Request, it MUST create a Full PKI Request encapsulated in a SignedData, and the SignedData MUST be constructed in accordance with <xref target="draft-becker-cnsa2-smime-profile-00"/>. The PKIData content type complies with <xref target="RFC5272"/> with the following additional requirements:</t>

        <ul spacing="normal" bare="false" empty="false">
          <li>controlSequence MUST be present. It MUST include the following CMC controls: Transaction ID, Sender Nonce, and Batch Requests. Other appropriate CMC controls MAY be included.</li>
          <li>cmsSequence MUST be present.  It contains the original, unmodified request(s) received from the client.</li>
        </ul>

        <sourcecode name="" type="" markers="false">
      SignedData (applied by the RA)
        PKIData
          controlSequence (Transaction ID, Sender Nonce,
                                               Batch Requests)
          cmsSequence
            SignedData (applied by client)
              PKIData
                controlSequence (Transaction ID, Sender Nonce)
                reqSequence
                  TaggedRequest
                  {TaggedRequest}
            {SignedData     (second client request)
              PKIData...}
        </sourcecode>

        <t>Authorization to sign RA-generated Full PKI Requests SHOULD be indicated in the RA certificate by inclusion of the id-kp-cmcRA Extended Key Usage (EKU) from <xref target="RFC6402"/>. The RA certificate MAY also include the CCC certificate extension <xref target="RFC6010"/>, or it MAY indicate authorization through inclusion of the CCC certificate extension alone. The RA certificate may also be authorized through the local configuration.</t>

        <t>If the RA is authorized via the CCC extension, then the CCC extension MUST include the object identifier for the PKIData content type. CCC SHOULD be included if constraints are to be placed on the content types generated.</t>

        <t>The outer SignedData MUST be generated using SHA-384 (SignerInfo digestAlgorithm, to compute the message-digest attribute) and ML-DSA-87 (SignerInfo signatureAlgorithm).</t>

        <t>If the Full PKI Response is a successful response to a PKI Request that only contained a Get Certificate or Get CRL control, then the algorithm used in the response MUST match the algorithm used in the request.</t>

      </section>  <!--  ra-gend-pki-reqst  -->

      <section anchor="ra-gend-resp">
        <name>RA-Generated PKI Responses</name>

        <t>An RA that also generates responses MUST assert authority to do so by at least one of</t>
		<ul>
          <li>inclusion of the id-kp-cmcRA EKU from <xref target="RFC6402"/> in the RA certificate (this method is preferred).</li>
          <li>inclusion of include the CCC certificate extension <xref target="RFC6010"/> in the RA certificate, with the object identifier for the PKIResponse content type.</li>
		  <li>assertion of authorization through a locally configured implementation-specific mechanism.</li>
		</ul>

      </section>  <!--  ra-gend-resp  -->
    </section>  <!--  ra-reqts  -->

    <section anchor="ca-reqts">
      <name>CA Requirements</name>

      <t>This section specifies the requirements for CAs that receive PKI Requests and generate PKI Responses.</t>

      <section anchor="ca-proc-reqst">
        <name>CA Processing of PKI Requests</name>

        <t>CAs conforming to this document MUST ensure that only the permitted signature and hash <!-- signature, hash, and MAC --> algorithms described throughout this profile are used in requests; if they are not, the CA MUST reject those requests. The CA SHOULD return a CMCStatusInfoV2 control with a CMCStatus of failed and a CMCFailInfo with the value of badAlg <xref target="RFC5272"/>.</t>

        <t>For requests involving an RA (i.e., batched requests), the CA MUST verify the RA's authorization. The following certificate fields MUST NOT be modifiable using the Modify Certification Request control: publicKey and the keyUsage extension. The request MUST be rejected if an attempt to modify those certification request fields is present. The CA SHOULD return a CMCStatusInfoV2 control with a CMCStatus of failed and a  CMCFailInfo with a value of badRequest.</t>

        <t>When processing end-entity-generated SignedData objects, CAs MUST NOT perform CCC certificate extension processing <xref target="RFC6010"/>.</t>

        <t>If a client-generated PKI Request includes the ChangeSubjectName attribute as described in <xref target="tgd-cert-reqst" /> or <xref target="cert-reqst-msg" /> above, the CA MUST ensure that name change is authorized. The mechanism for ensuring that the name change is authorized is out of scope. A CA that performs this check and finds that the name change is not authorized MUST reject the PKI Request. The CA SHOULD return an Extended CMC Status Info control (CMCStatusInfoV2) with a CMCStatus of failed.</t>

        <t>Other processing of PKIRequests is performed as described in <xref target="RFC5272"/>.</t>

      </section>  <!--  ca-proc-reqst  -->

      <section anchor="ca-gend-resp">
        <name>CA-Generated PKI Responses</name>

        <t>CAs send PKI Responses to both client-generated requests and RA-generated requests. If a Full PKI Response is returned in direct response to a client-generated request, it MUST be encapsulated in a SignedData, and the SignedData MUST be constructed in accordance with <xref target="draft-becker-cnsa2-smime-profile-00"/>.</t>

        <t>If the PKI Response is in response to an RA-generated PKI Request, then the above PKI Response is encapsulated in another CA-generated PKI Response. That PKI Response MUST be encapsulated in a SignedData, and the SignedData MUST be constructed in accordance with <xref target="draft-becker-cnsa2-smime-profile-00"/>. The above PKI Response is placed in the encapsulating PKI Response cmsSequence field. The other fields are as above with the addition of the batch response control in controlSequence. The following illustrates a successful CA response to an RA-encapsulated PKI Request, both of which include Transaction IDs and Nonces:</t>

        <sourcecode name="" type="" markers="false">
      SignedData (applied by the CA)
        PKIResponse
          controlSequence (Transaction ID, Sender Nonce, Recipient
                           Nonce, Batch Response)
          cmsSequence
            SignedData (applied by CA and includes returned
                        certificates)
              PKIResponse
                controlSequence (Transaction ID, Sender Nonce,
                                 Recipient Nonce)
         </sourcecode>

        <t>The same private key used to sign certificates MUST NOT be used to sign Full PKI Response messages. Instead, a separate certificate indicating authorization to sign CMC responses MUST be used.</t>

        <t>Authorization to sign Full PKI Responses SHOULD be indicated in the CA certificate by inclusion of the id-kp-cmcCA EKU from <xref target="RFC6402"/>. The CA certificate MAY also include the CCC certificate extension <xref target="RFC6010"/>, or it MAY indicate authorization through inclusion of the CCC certificate extension alone. The CA certificate may also be authorized through local configuration.</t>

        <t>In order for a CA certificate using the CCC certificate extension to be authorized to generate responses, the object identifier for the PKIResponse content type must be present in the CCC certificate extension. CCC SHOULD be included if constraints are to be placed on the content types generated.</t>

        <t>Signatures applied to individual certificates are as required in <xref target="I-D.jenkins-cnsa2-pkix-profile"/>.</t>

      </section>  <!--  ca-gend-resp  -->
    </section>  <!--  ca-reqts  -->

    <section anchor="client-reqts-proc">
      <name>Client Requirements: Processing PKI Responses</name>

      <t>Clients conforming to this document MUST ensure that only the permitted signature and hash <!--signature, hash, and MAC--> algorithms described throughout this profile are used in responses; if they are not, the client MUST reject those responses.</t>

      <t>Clients MUST authenticate all Full PKI Responses.  This includes verifying that the PKI Response is signed by an authorized CA or RA whose certificate validates back to a trust anchor.  The client MUST verify that</t>
	  <ul spacing="normal" bare="false" empty="false">
	    <li>the CA certificate includes the id-kp-cmcCA EKU or a CCC extension asserting the PKIResponse content type, or </li>
		<li>the CA is authorized to sign responses through a locally configured implementation-specific mechanism.</li>
	  </ul>
	  
		<t> The PKI Response can be signed by an RA if it is an error message, if it is a response to a Get Certificate or Get CRL request, or if the PKI Response contains an inner PKI Response signed by a CA.  In the last case, each layer of PKI Response MUST still contain an authorized, valid signature signed by an entity with a valid certificate that verifies back to an acceptable trust anchor.  The client MUST verify that</t>
		  <ul spacing="normal" bare="false" empty="false">
		    <li>the RA certificate includes the id-kp-cmcRA EKU or a CCC extension that includes the object identifier for the PKIResponse content type, or</li>
			<li>the RA is authorized to sign responses through a local configured implementation-specific mechanism.</li>
		  </ul>

      <t>When a newly issued certificate is included in the PKI Response, the client MUST verify that the newly issued certificate's public key matches the public key that the client requested.  The client MUST also ensure that the certificate's signature is valid and that the signature validates back to an acceptable trust anchor.</t>

      <t>Clients MUST reject PKI Responses that do not pass these tests, and document the rejection in a way appropriate to the system. For example, the client MAY construct a CMC Status Info control (CMCStatusInfoV2) with the CMC Stuats set to "failed", and display the code to a user console, append to an error log, or communicate to a server, depending on local policy. Local policy will determine whether the client returns a Full PKI Response with an Extended CMC Status Info control (CMCStatusInfoV2) with the CMCStatus set to failed to a user console, error log, or the server.</t>

      <t>If the Full PKI Response contains an Extended CMC Status Info control with a CMCStatus set to failed, then local policy will determine whether the client resends a duplicate certification request back to the server or an error state is returned to a console or error log.</t>

    </section>  <!--  client-reqts-proc  -->
<!--
    <section anchor="shared-secrets">
      <name>Shared-Secrets</name>

      <t>When the Identity Proof V2 and POP Link Witness V2 controls are used, the shared-secret MUST be randomly generated and securely distributed.  The shared-secret MUST provide at least 256 bits of strength.</t>

    </section>  lt-bang-dash-dash  shared-secrets  dash-dash-gt
-->

    <section anchor="sec-considerations">
      <name>Security Considerations</name>

      <t>Protocol security considerations are found in <xref target="RFC2986"/>, <xref target="RFC4211"/>, <xref target="draft-becker-cnsa2-smime-profile-00"/>, <xref target="RFC5272"/>, <xref target="RFC5273"/>, <xref target="RFC5274"/>, <xref target="I-D.jenkins-cnsa2-pkix-profile"/>, and <xref target="RFC6402"/>. When CCC is used to authorize RA and CA certificates, then the security considerations in <xref target="RFC6010"/> also apply. Algorithm security considerations are found in <xref target="draft-becker-cnsa2-smime-profile-00"/>.</t>

      <t>This specification requires implementations to generate key pairs and other random values.  The use of inadequate pseudorandom number generators (PRNGs) can result in little or no security.  The generation of quality random numbers is difficult.  NIST Special Publication 800-90A <xref target="SP80090A"/>, FIPS 186 <xref target="FIPS186"/>, and <xref target="RFC4086"/> offer random number generation guidance.</t>
	  
	  <t>As is the case with all digital signature schemes, and especially those employed in security infrastructure, protection of private keys is paramount. Where possible, security tokens (e.g. HSMs) should be used to mitigate the risk of key compromise.</t>

      <t>When RAs are used, the list of authorized RAs MUST be securely distributed out of band to CAs.</t>

      <t>Presence of the POP Link Witness Version 2 and POP Link Random attributes protects against substitution attacks.</t>

      <t>The certificate policy for a particular environment will specify whether expired certificates can be used to sign certification requests.</t>

    </section>  <!-- sec-considerations  -->

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

  </middle>

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

		<!--  ***** CNSA2 PKIX ***** -->
		<reference anchor="draft-becker-cnsa2-smime-profile-00" target="https://datatracker.ietf.org/doc/draft-becker-cnsa2-smime-profile/">
         <front>
            <title>Commercial National Security Algorithm (CNSA) Suite Profile for Secure/
             Multipurpose Internet Mail Extensions (S/MIME)</title>
            <author initials="M." surname="Jenkins" fullname="M. Jenkins">
              <organization/>
            </author>
			<author initials="A." surname="Becker" fullname="A. Becker">
              <organization/>
            </author>
            <date month="March" year="2025"/>
         </front>
		</reference>
		
		
		<reference anchor="I-D.jenkins-cnsa2-pkix-profile" target="https://datatracker.ietf.org/doc/draft-jenkins-cnsa2-pkix-profile/">
         <front>
            <title>Commercial National Security Algorithm Suite Certificate and Certificate Revocation List Profile</title>
            <author initials="M." surname="Jenkins" fullname="M. Jenkins">
              <organization/>
            </author>
			<author initials="A." surname="Becker" fullname="A. Becker">
              <organization/>
            </author>
            <date month="January" year="2025"/>
         </front>
		</reference>

       <reference anchor="cnsafaq" target="https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0_FAQ_.PDF">
          <front>
            <title>The Commercial National Security Algorithm Suite 2.0 and Quantum Computing FAQ</title>
            <author>
              <organization>National Security Agency</organization>
            </author>
            <date year="2024" month="December"/>
          </front>
        </reference>

        <reference anchor="FIPS186" target="http://doi.org/10.6028/NIST.FIPS.186-5.pdf">
          <front>
            <title>Digital Signature Standard (DSS)</title>
            <seriesInfo name="DOI" value="10.6028/NIST.FIPS.186-5"/>
            <seriesInfo name="FIPS PUB" value="186-5"/>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="July" year="2013"/>
          </front>
        </reference>

		<!--  ***** ML-DSA FIPS ***** -->
		<reference anchor="FIPS204" target="https://doi.org/10.6028/NIST.FIPS.204" quoteTitle="true" derivedAnchor="FIPS204">
          <front>
            <title>Module-Lattice-Based Digital Signature Standard</title>
			<seriesInfo name="(Department of Commerce, Washington, D.C.)," value="Federal Information Processing Standards Publication (FIPS)"/>
            <author>
              <organization showOnFrontPage="true">National Institute of Standards and Technology (2024)</organization>
            </author>
          </front>
          <seriesInfo name="NIST FIPS" value="204"/>
		  </reference>
 
<!--
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.jenkins.cnsa2-pkix-profile"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.jenkins.cnsa2-smime-profile"/>
-->

        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/> <!-- RFC terms -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2986.xml"/> <!-- PKCS #10 -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4086.xml"/> <!-- Randomness BCP -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4211.xml"/> <!-- CRMF -->
<!--        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4231.xml"/> --> <!-- SHA2 ID/TV -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5272.xml"/> <!-- CMC -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5273.xml"/> <!-- CMC Transpt Protocols -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5274.xml"/> <!-- CMC Compliance Reqts -->
<!--        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5754.xml"/> --> <!-- SHA2 for CMS -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5280.xml"/> <!-- PKIX profile -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6010.xml"/> <!-- CMS Cont Constr Ext -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6402.xml"/> <!-- CMC Updates -->
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/> <!-- RFC terms2 -->
		<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8756.xml"/> <!-- CNSA1 CMC -->
		<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9881.xml"/> <!-- ML-DSA certificates -->
		<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9935.xml"/> <!-- ML-KEM certificates -->
		
      </references>

      <references>
        <name>Informative References</name>
<!--
        <reference anchor="NSM-10" target="https://www.whitehouse.gov/briefing-room/statements-releases/2022/05/04/national-security-memorandum-on-promoting-united-states-leadership-in-quantum-computing-while-mitigating-risks-to-vulnerable-cryptographic-systems/">
          <front>
            <title>National Security Memorandum on Promoting United States Leadership in Quantum Computing While Mitigating Risks to Vulnerable Cryptographic Systems</title>
            <author>
              <organization>United States, The White House</organization>
            </author>
            <date year="2022" month="May"/>
          </front>
          <seriesInfo name="NSM" value="10"/>
        </reference>
-->
<!--
        <reference anchor="SP80057" target="http://doi.org/10.6028/NIST.SP.800-57pt1r4">
          <front>
            <title>Recommendation for Key Management, Part 1: General</title>
            <seriesInfo name="DOI" value="10.6028/NIST.SP.800-57pt1r4"/>
            <seriesInfo name="Special Publication" value="800-57, Part 1, Revision 4"/>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="January" year="2016"/>
          </front>
        </reference>
-->
        <reference anchor="SP80059" target="https://csrc.nist.gov/publications/detail/sp/800-59/final">
          <front>
            <title>Guideline for Identifying an Information System as a National Security System</title>
            <seriesInfo name="DOI" value="10.6028/NIST.SP.800-59"/>
            <seriesInfo name="Special Publication" value="800-59"/>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="August" year="2003"/>
          </front>
        </reference>

        <reference anchor="SP80090A" target="http://doi.org/10.6028/NIST.SP.800-90Ar1">
          <front>
            <title>Recommendation for Random Number Generation Using Deterministic Random Bit Generators</title>
            <seriesInfo name="DOI" value="10.6028/NIST.SP.800-90Ar1"/>
            <seriesInfo name="Special Publication 800-90A" value="Revision 1"/>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="June" year="2015"/>
          </front>
        </reference>

      </references>
    </references>



    <section anchor="scenarios">
      <name>Scenarios</name>

      <t>This section illustrates several potential certificate enrollment and rekey scenarios supported by this profile. This section does not intend to place any limits or restrictions on the use of CMC.</t>

      <section anchor="init_enroll">
        <name>Initial Enrollment</name>

        <t>This section describes three scenarios for authenticating initial enrollment requests:
        </t>

        <ol>
          <li>Previously certified signature key-pair (e.g., Manufacturer Installed Certificate).</li>
          <li>Shared-secret distributed securely out of band.</li>
          <li>RA authentication.</li>
        </ol>

        <section anchor="prev_inst">
          <name>Previously Certified Signature Key-Pair</name>
          <t>In this scenario, the end-entity has a private signing key and a corresponding public key certificate obtained from a cryptographic module manufacturer recognized by the CA. The end-entity signs a Full PKI Request with the private key that corresponds to the subject public key of the previously installed signature certificate. The CA will verify the authorization of the previously installed certificate and issue an appropriate new certificate to the end-entity.</t>
        </section> 

        <section anchor="ss_oob">
          <name>Shared-Secret Distributed Securely Out of Band</name>
          <t>In this scenario, the CA distributes a shared-secret out of band to the end-entity that the end-entity uses to authenticate its certification request. The end-entity signs the Full PKI Request with the private key for which the certification is being requested. The end-entity includes the Identity Proof Version 2 control to authenticate the request using the shared-secret. The CA uses either the Identification control or the subject name in the end-entity's enclosed PKCS #10 <xref target="RFC2986"/> or CRMF <xref target="RFC4211"/> certification request message to identify the request. The end-entity performs either the POP Link Witness Version 2 mechanism as described in <xref target="RFC5272"/> Section 6.3.1.1 or the shared-secret/subject distinguished name linking mechanism as described in <xref target="RFC5272"/> Section 6.3.2.  The subject name in the enclosed PKCS #10 <xref target="RFC2986"/> or CRMF <xref target="RFC4211"/> certification request does not necessarily match the issued certificate, as it may be used just to help identify the request (and the corresponding shared-secret) to the CA.</t>
        </section> 

        <section anchor="ra_auth">
          <name>RA Authentication</name>
          <t>In this scenario, the end-entity does not automatically authenticate its enrollment request to the CA, either because the end-entity has nothing to authenticate the request with or because the organizational policy requires an RA's involvement.  The end-entity creates a Full PKI Request and sends it to an RA.  The RA verifies the authenticity of the request. If the request is approved, the RA encapsulates and signs the request as described in <xref target="cert-reqst-msg"/>, forwarding the new request on to the CA. The subject name in the PKCS #10 <xref target="RFC2986"/> or CRMF <xref target="RFC4211"/> certification request is not required to match the issued certificate; it may be used just to help identify the request to the RA and/or CA.</t>
        </section> 
      </section>  

      <section anchor="rekey">
        <name>Rekey</name>
        <t>There are two scenarios to support the rekey of certificates that are already enrolled.  One addresses the rekey of signature certificates, and the other addresses the rekey of key establishment certificates. Typically, organizational policy will require certificates to be currently valid to be rekeyed, and it may require initial enrollment to be repeated when rekey is not possible.  However, some organizational policies might allow a grace period during which an expired certificate could be used to rekey.</t>

        <section anchor="rk_sig">
          <name>Rekey of Signature Certificates</name>
          <t>When a signature certificate is rekeyed, the <xref target="RFC2986">PKCS #10</xref> or <xref target="RFC4211">CRMF</xref> certification request message enclosed in the Full PKI Request will include the same subject name as the current signature certificate. The Full PKI Request will be signed by the current private key corresponding to the current signature certificate.</t>
        </section>  

        <section anchor="rk_kes">
          <name>Rekey of Key Establishment Certificates</name>
          <t>When a key establishment certificate is rekeyed, the Full PKI Request will generally be signed by the current private key corresponding to the current signature certificate. If there is no current signature certificate, one of the initial enrollment options in <xref target="init_enroll"/> may be used.</t>
        </section>  

      </section> 
    </section>  

  </back>
</rfc>
