<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" ipr="trust200902" submissionType="IETF" docName="draft-ietf-netconf-crypto-types-34" number="9640" obsoletes="" updates="" tocInclude="true" symRefs="true" sortRefs="true" xml:lang="en" prepTime="2024-10-10T10:00:33" indexInclude="true" scripts="Common,Latin" tocDepth="3">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-netconf-crypto-types-34" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9640" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="YANG Data Types and Groupings for Crypto">YANG Data Types and Groupings for Cryptography</title>
    <seriesInfo name="RFC" value="9640" stream="IETF"/>
    <author initials="K." surname="Watsen" fullname="Kent Watsen">
      <organization showOnFrontPage="true">Watsen Networks</organization>
      <address>
        <email>kent+ietf@watsen.net</email>
      </address>
    </author>
    <date month="10" year="2024"/>
    <area>OPS</area>
    <workgroup>netconf</workgroup>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document presents a YANG 1.1 (RFC 7950) module defining identities,
          typedefs, and groupings useful to cryptographic applications.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9640" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2024 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-relation-to-other-rfcs">Relation to Other RFCs</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-specification-language">Specification Language</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.3">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.3.1"><xref derivedContent="1.3" format="counter" sectionFormat="of" target="section-1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-adherence-to-the-nmda">Adherence to the NMDA</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.4">
                <t indent="0" pn="section-toc.1-1.1.2.4.1"><xref derivedContent="1.4" format="counter" sectionFormat="of" target="section-1.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-conventions">Conventions</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-ietf-crypto-types-modul">The "ietf-crypto-types" Module</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-data-model-overview">Data Model Overview</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-example-usage">Example Usage</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module">YANG Module</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-no-support-for-crmf">No Support for CRMF</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-no-support-for-key-generati">No Support for Key Generation</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.3">
                <t indent="0" pn="section-toc.1-1.3.2.3.1"><xref derivedContent="3.3" format="counter" sectionFormat="of" target="section-3.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unconstrained-public-key-us">Unconstrained Public Key Usage</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.4">
                <t indent="0" pn="section-toc.1-1.3.2.4.1"><xref derivedContent="3.4" format="counter" sectionFormat="of" target="section-3.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unconstrained-private-key-u">Unconstrained Private Key Usage</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.5">
                <t indent="0" pn="section-toc.1-1.3.2.5.1"><xref derivedContent="3.5" format="counter" sectionFormat="of" target="section-3.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-cleartext-passwords-and-key">Cleartext Passwords and Keys</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.6">
                <t indent="0" pn="section-toc.1-1.3.2.6.1"><xref derivedContent="3.6" format="counter" sectionFormat="of" target="section-3.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encrypting-passwords-and-ke">Encrypting Passwords and Keys</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.7">
                <t indent="0" pn="section-toc.1-1.3.2.7.1"><xref derivedContent="3.7" format="counter" sectionFormat="of" target="section-3.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-deletion-of-cleartext-key-v">Deletion of Cleartext Key Values</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.8">
                <t indent="0" pn="section-toc.1-1.3.2.8.1"><xref derivedContent="3.8" format="counter" sectionFormat="of" target="section-3.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-ietf">Considerations for the "ietf-crypto-types" YANG Module</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-ietf-xml-registry">The IETF XML Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-yang-module-names-regis">The YANG Module Names Registry</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t indent="0" pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.2">
                <t indent="0" pn="section-toc.1-1.5.2.2.1"><xref derivedContent="5.2" format="counter" sectionFormat="of" target="section-5.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">This document presents a YANG 1.1 <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>
          module defining identities, typedefs, and groupings useful to
          cryptographic applications.</t>
      <section anchor="collective-effort" numbered="true" removeInRFC="false" toc="include" pn="section-1.1">
        <name slugifiedName="name-relation-to-other-rfcs">Relation to Other RFCs</name>
        <t indent="0" pn="section-1.1-1">This document presents a YANG module <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>
            that is part of a collection of RFCs that work together
            to, ultimately, support the configuration of both the clients
            and servers of both the Network Configuration Protocol (NETCONF) <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> and
            RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.</t>
        <t indent="0" pn="section-1.1-2"> The dependency relationship between the primary YANG groupings
            defined in the various RFCs is presented in the below diagram.
            In some cases, a document may define secondary groupings that
            introduce dependencies not illustrated in the diagram.
            The labels in the diagram are shorthand names for the defining
            RFCs.  The citation references for the shorthand names are provided below
            the diagram.</t>
        <t indent="0" pn="section-1.1-3">Please note that the arrows in the diagram point from referencer
            to referenced.  For example, the "crypto-types" RFC does not
            have any dependencies, whilst the "keystore" RFC depends on the
            "crypto-types" RFC.</t>
        <artwork align="center" pn="section-1.1-4">
                               crypto-types
                                 ^      ^
                                /        \
                               /          \
                      truststore         keystore
                       ^     ^             ^  ^
                       |     +---------+   |  |
                       |               |   |  |
                       |      +------------+  |
tcp-client-server      |     /         |      |
   ^    ^        ssh-client-server     |      |
   |    |           ^            tls-client-server
   |    |           |              ^     ^        http-client-server
   |    |           |              |     |                 ^
   |    |           |        +-----+     +---------+       |
   |    |           |        |                     |       |
   |    +-----------|--------|--------------+      |       |
   |                |        |              |      |       |
   +-----------+    |        |              |      |       |
               |    |        |              |      |       |
               |    |        |              |      |       |
            netconf-client-server       restconf-client-server

</artwork>
        <table align="center" pn="table-1">
          <name slugifiedName="name-labels-in-diagram-to-rfc-ma">Labels in Diagram to RFC Mapping</name>
          <tbody>
            <tr>
              <th align="left" colspan="1" rowspan="1">Label in Diagram</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">crypto-types</td>
              <td align="left" colspan="1" rowspan="1">
                RFC 9640</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">truststore</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9641" format="default" sectionFormat="of" derivedContent="RFC9641"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">keystore</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9642" format="default" sectionFormat="of" derivedContent="RFC9642"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">tcp-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9643" format="default" sectionFormat="of" derivedContent="RFC9643"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">ssh-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9644" format="default" sectionFormat="of" derivedContent="RFC9644"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">tls-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9645" format="default" sectionFormat="of" derivedContent="RFC9645"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">http-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="I-D.ietf-netconf-http-client-server" format="default" sectionFormat="of" derivedContent="HTTP-CLIENT-SERVER"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">netconf-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="I-D.ietf-netconf-netconf-client-server" format="default" sectionFormat="of" derivedContent="NETCONF-CLIENT-SERVER"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">restconf-client-server</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="I-D.ietf-netconf-restconf-client-server" format="default" sectionFormat="of" derivedContent="RESTCONF-CLIENT-SERVER"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.2">
        <name slugifiedName="name-specification-language">Specification Language</name>
        <t indent="0" pn="section-1.2-1">
    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 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.3">
        <name slugifiedName="name-adherence-to-the-nmda">Adherence to the NMDA</name>
        <t indent="0" pn="section-1.3-1">This document is compliant with the Network Management Datastore
            Architecture (NMDA) <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>. It does not define
            any protocol-accessible nodes that are "config false".</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.4">
        <name slugifiedName="name-conventions">Conventions</name>
        <t indent="0" pn="section-1.4-1">Various examples in this document use "BASE64VALUE=" as a
            placeholder value for binary data that has been base64
            encoded (per <xref section="9.8" sectionFormat="of" target="RFC7950" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7950#section-9.8" derivedContent="RFC7950"/>).  This
            placeholder value is used because real base64-encoded structures
            are often many lines long and hence distracting to the example
        being presented.</t>
        <t indent="0" pn="section-1.4-2">Various examples in this document use the XML
	<xref target="W3C.REC-xml-20081126" format="default" sectionFormat="of" derivedContent="W3C.REC-xml-20081126"/> encoding. Other encodings, such as JSON <xref target="RFC8259" format="default" sectionFormat="of" derivedContent="RFC8259"/>,
  could alternatively be used.</t>
        <t indent="0" pn="section-1.4-3">Various examples in this document contain long lines that may be folded,
   as described in <xref target="RFC8792" format="default" sectionFormat="of" derivedContent="RFC8792"/>.</t>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-the-ietf-crypto-types-modul">The "ietf-crypto-types" Module</name>
      <t indent="0" pn="section-2-1">This section defines a YANG 1.1 <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> module called
          "ietf-crypto-types".  A high-level overview of the module is provided in
          <xref target="crypto-types-overview" format="default" sectionFormat="of" derivedContent="Section 2.1"/>. Examples illustrating the module's use
          are provided in <xref target="crypto-types-examples" format="default" sectionFormat="of" derivedContent="Section 2.2"/>. The YANG
          module itself is defined in <xref target="crypto-types-yang-module" format="default" sectionFormat="of" derivedContent="Section 2.3"/>.</t>
      <section anchor="crypto-types-overview" numbered="true" removeInRFC="false" toc="include" pn="section-2.1">
        <name slugifiedName="name-data-model-overview">Data Model Overview</name>
        <t indent="0" pn="section-2.1-1">This section provides an overview of the "ietf-crypto-types" module
              in terms of its features, identities, typedefs, and groupings.</t>
        <section anchor="features" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.1">
          <name slugifiedName="name-features">Features</name>
          <t indent="0" pn="section-2.1.1-1">The following diagram lists all the "feature" statements
              defined in the "ietf-crypto-types" module:</t>
          <sourcecode type="yangtree" markers="false" pn="section-2.1.1-2">
Features:
  +-- one-symmetric-key-format
  +-- one-asymmetric-key-format
  +-- symmetrically-encrypted-value-format
  +-- asymmetrically-encrypted-value-format
  +-- cms-enveloped-data-format
  +-- cms-encrypted-data-format
  +-- p10-csr-format
  +-- csr-generation
  +-- certificate-expiration-notification
  +-- cleartext-passwords
  +-- encrypted-passwords
  +-- cleartext-symmetric-keys
  +-- hidden-symmetric-keys
  +-- encrypted-symmetric-keys
  +-- cleartext-private-keys
  +-- hidden-private-keys
  +-- encrypted-private-keys
</sourcecode>
          <t indent="0" pn="section-2.1.1-3">The diagram above uses syntax that is similar to but not
                the same as that in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
        </section>
        <section anchor="identities" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.2">
          <name slugifiedName="name-identities">Identities</name>
          <t indent="0" pn="section-2.1.2-1">The following diagram illustrates the hierarchical relationship
              amongst the "identity" statements defined in the "ietf-crypto-types"
              module:</t>
          <sourcecode type="yangtree" markers="false" pn="section-2.1.2-2">
Identities:
  +-- public-key-format
  |  +-- subject-public-key-info-format
  |  +-- ssh-public-key-format
  +-- private-key-format
  |  +-- rsa-private-key-format
  |  +-- ec-private-key-format
  |  +-- one-asymmetric-key-format
  |            {one-asymmetric-key-format}?
  +-- symmetric-key-format
  |  +-- octet-string-key-format
  |  +-- one-symmetric-key-format
  |            {one-symmetric-key-format}?
  +-- encrypted-value-format
  |  +-- symmetrically-encrypted-value-format
  |  |  |      {symmetrically-encrypted-value-format}?
  |  |  +-- cms-encrypted-data-format
  |  |         {cms-encrypted-data-format}?
  |  +-- asymmetrically-encrypted-value-format
  |     |      {asymmetrically-encrypted-value-format}?
  |     +-- cms-enveloped-data-format
  |            {cms-enveloped-data-format}?
  +-- csr-format
        +-- p10-csr-format {p10-csr-format?}
</sourcecode>
          <t indent="0" pn="section-2.1.2-3">The diagram above uses syntax that is similar to but not
                the same as that in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
          <t indent="0" pn="section-2.1.2-4">Comments:</t>
          <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.2-5">
            <li pn="section-2.1.2-5.1">The diagram shows that there are five base identities.  The
                first three identities are used to indicate the format for the
                key data, while the fourth identity is used to indicate the format
                for encrypted values.  The fifth identity is used to indicate the
                format for a certificate signing request (CSR).  The base identities are
                "abstract", in the object oriented programming sense, in that
                they only define a "class" of formats, rather than a specific
                format.</li>
            <li pn="section-2.1.2-5.2">The various terminal identities define specific encoding
                formats.  The derived identities defined in this document are
                sufficient for the effort described in <xref target="collective-effort" format="default" sectionFormat="of" derivedContent="Section 1.1"/>,
                but by nature of them being identities, additional derived
                identities <bcp14>MAY</bcp14> be defined by future efforts.</li>
            <li pn="section-2.1.2-5.3">Identities used to specify uncommon formats are enabled by
                "feature" statements, allowing applications to support them
                when needed.</li>
          </ul>
        </section>
        <section anchor="typedefs" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.3">
          <name slugifiedName="name-typedefs">Typedefs</name>
          <t indent="0" pn="section-2.1.3-1">The following diagram illustrates the relationship amongst the
              "typedef" statements defined in the "ietf-crypto-types" module:</t>
          <sourcecode type="yangtree" markers="false" pn="section-2.1.3-2">
Typedefs:
  binary
    +-- csr-info
    +-- csr
    +-- x509
    |  +-- trust-anchor-cert-x509
    |  +-- end-entity-cert-x509
    +-- crl
    +-- ocsp-request
    +-- ocsp-response
    +-- cms
       +-- data-content-cms
       +-- signed-data-cms
       |  +-- trust-anchor-cert-cms
       |  +-- end-entity-cert-cms
       +-- enveloped-data-cms
       +-- digested-data-cms
       +-- encrypted-data-cms
       +-- authenticated-data-cms
</sourcecode>
          <t indent="0" pn="section-2.1.3-3">The diagram above uses syntax that is similar to but not
                the same as that in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
          <t indent="0" pn="section-2.1.3-4">Comments:</t>
          <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.3-5">
            <li pn="section-2.1.3-5.1">All the typedefs defined in the "ietf-crypto-types" module
                extend the "binary" type defined in <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>.</li>
            <li pn="section-2.1.3-5.2">Additionally, all the typedefs define a type for encoding an ASN.1
                <xref target="ITU.X680.2021" format="default" sectionFormat="of" derivedContent="ITU.X680.2021"/> structure using DER <xref target="ITU.X690.2021" format="default" sectionFormat="of" derivedContent="ITU.X690.2021"/>.</li>
            <li pn="section-2.1.3-5.3">The "trust-anchor-*" and "end-entity-*" typedefs are syntactically
                identical to their base typedefs and only distinguish themselves
                by the expected nature of their content.  These typedefs are
                defined to facilitate common modeling needs.</li>
          </ul>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.4">
          <name slugifiedName="name-groupings">Groupings</name>
          <t indent="0" pn="section-2.1.4-1">The "ietf-crypto-types" module defines the following "grouping" statements:</t>
          <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2.1.4-2">
            <li pn="section-2.1.4-2.1">encrypted-value-grouping</li>
            <li pn="section-2.1.4-2.2">password-grouping</li>
            <li pn="section-2.1.4-2.3">symmetric-key-grouping</li>
            <li pn="section-2.1.4-2.4">public-key-grouping</li>
            <li pn="section-2.1.4-2.5">private-key-grouping</li>
            <li pn="section-2.1.4-2.6">asymmetric-key-pair-grouping</li>
            <li pn="section-2.1.4-2.7">certificate-expiration-grouping</li>
            <li pn="section-2.1.4-2.8">trust-anchor-cert-grouping</li>
            <li pn="section-2.1.4-2.9">end-entity-cert-grouping</li>
            <li pn="section-2.1.4-2.10">generate-csr-grouping</li>
            <li pn="section-2.1.4-2.11">asymmetric-key-pair-with-cert-grouping</li>
            <li pn="section-2.1.4-2.12">asymmetric-key-pair-with-certs-grouping</li>
          </ul>
          <t indent="0" pn="section-2.1.4-3">Each of these groupings are presented in the following subsections.</t>
          <section anchor="encrypted-value-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.1">
            <name slugifiedName="name-the-encrypted-value-groupin">The "encrypted-value-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.1-1">The following tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrates the
                "encrypted-value-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.1-2">
  grouping encrypted-value-grouping:
    +-- encrypted-by
    +-- encrypted-value-format    identityref
    +-- encrypted-value           binary
</sourcecode>
            <t indent="0" pn="section-2.1.4.1-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.1-4">
              <li pn="section-2.1.4.1-4.1">The "encrypted-by" node is an empty container (difficult to
                  see in the diagram) that a consuming module <bcp14>MUST</bcp14> augment key
                  references into.  The "ietf-crypto-types" module is unable to
                  populate this container as the module only defines groupings.
                  <xref target="ct-usage" format="default" sectionFormat="of" derivedContent="Section 2.2.1"/> presents an example illustrating
                  a consuming module populating the "encrypted-by" container.</li>
              <li pn="section-2.1.4.1-4.2">
                <t indent="0" pn="section-2.1.4.1-4.2.1">The "encrypted-value" node is the value encrypted by the
                    key referenced by the "encrypted-by" node and encoded in
                    the format appropriate for the kind of key it was encrypted
                    by.</t>
                <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.1-4.2.2">
                  <li pn="section-2.1.4.1-4.2.2.1">If the value is encrypted by a symmetric key, then the
                      encrypted value is encoded using the format associated with
                      the "symmetrically-encrypted-value-format" identity.</li>
                  <li pn="section-2.1.4.1-4.2.2.2">If the value is encrypted by an asymmetric key, then the
                      encrypted value is encoded using the format associated with 
                      the "asymmetrically-encrypted-value-format" identity.</li>
                </ul>
                <t indent="0" pn="section-2.1.4.1-4.2.3">See <xref target="identities" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/> for information about
                    the "format" identities.</t>
              </li>
            </ul>
          </section>
          <section anchor="password-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.2">
            <name slugifiedName="name-the-password-grouping-group">The "password-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.2-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "password-grouping" grouping.  This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.2-2">
  grouping password-grouping:
    +-- (password-type)
       +--:(cleartext-password) {cleartext-passwords}?
       |  +-- cleartext-password?   string
       +--:(encrypted-password) {encrypted-passwords}?
          +-- encrypted-password
             +---u encrypted-value-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.2-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.2-4">
              <li pn="section-2.1.4.2-4.1">The "password-grouping" enables the configuration of credentials needed to
                  authenticate to a remote system.  The "ianach:crypt-hash" typedef from
                  <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/> should be used instead when needing to
                  configure a password to authenticate a local account.</li>
              <li pn="section-2.1.4.2-4.2">
                <t indent="0" pn="section-2.1.4.2-4.2.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.2-4.2.2">
                  <li pn="section-2.1.4.2-4.2.2.1">The "encrypted-value-grouping" grouping is discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
              <li pn="section-2.1.4.2-4.3">
                <t indent="0" pn="section-2.1.4.2-4.3.1">The "choice" statement enables the password data to be cleartext or
                  encrypted, as follows:
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.2-4.3.2">
                  <li pn="section-2.1.4.2-4.3.2.1">The "cleartext-password" node can encode any cleartext value.</li>
                  <li pn="section-2.1.4.2-4.3.2.2">The "encrypted-password" node is an instance of the "encrypted-value-grouping" discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="symmetric-key-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.3">
            <name slugifiedName="name-the-symmetric-key-grouping-">The "symmetric-key-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.3-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "symmetric-key-grouping" grouping.  This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.3-2">
  grouping symmetric-key-grouping:
    +-- key-format?                      identityref
    +-- (key-type)
       +--:(cleartext-symmetric-key)
       |  +-- cleartext-symmetric-key?   binary
       |          {cleartext-symmetric-keys}?
       +--:(hidden-symmetric-key) {hidden-symmetric-keys}?
       |  +-- hidden-symmetric-key?      empty
       +--:(encrypted-symmetric-key) {encrypted-symmetric-keys}?
          +-- encrypted-symmetric-key
             +---u encrypted-value-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.3-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.3-4">
              <li pn="section-2.1.4.3-4.1">
                <t indent="0" pn="section-2.1.4.3-4.1.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.3-4.1.2">
                  <li pn="section-2.1.4.3-4.1.2.1">The "encrypted-value-grouping" grouping is discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
              <li pn="section-2.1.4.3-4.2">The "key-format" node is an identity-reference to the "symmetric-key-format"
                  abstract base identity discussed in <xref target="identities" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>,
                    enabling the symmetric key to be encoded using any of the formats
                    defined by the derived identities.</li>
              <li pn="section-2.1.4.3-4.3">
                <t indent="0" pn="section-2.1.4.3-4.3.1">The "choice" statement enables the private key data to be cleartext,
                  encrypted, or hidden, as follows:
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.3-4.3.2">
                  <li pn="section-2.1.4.3-4.3.2.1">The "cleartext-symmetric-key" node can encode any cleartext key value.</li>
                  <li pn="section-2.1.4.3-4.3.2.2">The "hidden-symmetric-key" node is of type "empty" as the real
                      value cannot be presented via the management interface.</li>
                  <li pn="section-2.1.4.3-4.3.2.3">The "encrypted-symmetric-key" node's structure is discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="public-key-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.4">
            <name slugifiedName="name-the-public-key-grouping-gro">The "public-key-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.4-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "public-key-grouping" grouping.  This tree diagram does
                not expand any internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.4-2">
  grouping public-key-grouping:
    +-- public-key-format    identityref
    +-- public-key           binary
</sourcecode>
            <t indent="0" pn="section-2.1.4.4-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.4-4">
              <li pn="section-2.1.4.4-4.1">The "public-key-format" node is an identity-reference to the "public-key-format"
                  abstract base identity discussed in <xref target="identities" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>,
                  enabling the public key to be encoded using any of the formats
                  defined by the derived identities.  </li>
              <li pn="section-2.1.4.4-4.2">The "public-key" node is the public key data in the selected format.
                  No "choice" statement is used to hide or encrypt the public key data
                  because it is unnecessary to do so for public keys.</li>
            </ul>
          </section>
          <section anchor="private-key-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.5">
            <name slugifiedName="name-the-private-key-grouping-gr">The "private-key-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.5-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "private-key-grouping" grouping. This tree diagram does not expand the internally
                used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.5-2">
  grouping private-key-grouping:
    +-- private-key-format?            identityref
    +-- (private-key-type)
       +--:(cleartext-private-key) {cleartext-private-keys}?
       |  +-- cleartext-private-key?   binary
       +--:(hidden-private-key) {hidden-private-keys}?
       |  +-- hidden-private-key?      empty
       +--:(encrypted-private-key) {encrypted-private-keys}?
          +-- encrypted-private-key
             +---u encrypted-value-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.5-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.5-4">
              <li pn="section-2.1.4.5-4.1">
                <t indent="0" pn="section-2.1.4.5-4.1.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.5-4.1.2">
                  <li pn="section-2.1.4.5-4.1.2.1">The "encrypted-value-grouping" grouping is discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
              <li pn="section-2.1.4.5-4.2">The "private-key-format" node is an identity-reference to the "private-key-format"
                    abstract base identity discussed in <xref target="identities" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>,
                    enabling the private key to be encoded using any of the formats
                    defined by the derived identities.</li>
              <li pn="section-2.1.4.5-4.3">
                <t indent="0" pn="section-2.1.4.5-4.3.1">The "choice" statement enables the private key data to be cleartext,
                  encrypted, or hidden, as follows:
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.5-4.3.2">
                  <li pn="section-2.1.4.5-4.3.2.1">The "cleartext-private-key" node can encode any cleartext key value.</li>
                  <li pn="section-2.1.4.5-4.3.2.2">The "hidden-private-key" node is of type "empty" as the real
                      value cannot be presented via the management interface.</li>
                  <li pn="section-2.1.4.5-4.3.2.3">The "encrypted-private-key" node's structure is discussed in
                      <xref target="encrypted-value-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.1"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="asymmetric-key-pair-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.6">
            <name slugifiedName="name-the-asymmetric-key-pair-gro">The "asymmetric-key-pair-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.6-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "asymmetric-key-pair-grouping" grouping. This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.6-2">
  grouping asymmetric-key-pair-grouping:
    +---u public-key-grouping
    +---u private-key-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.6-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.6-4">
              <li pn="section-2.1.4.6-4.1">
                <t indent="0" pn="section-2.1.4.6-4.1.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.6-4.1.2">
                  <li pn="section-2.1.4.6-4.1.2.1">The "public-key-grouping" grouping is discussed in
                      <xref target="public-key-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.4"/>.</li>
                  <li pn="section-2.1.4.6-4.1.2.2">The "private-key-grouping" grouping is discussed in
                      <xref target="private-key-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.5"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="certificate-expiration-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.7">
            <name slugifiedName="name-the-certificate-expiration-">The "certificate-expiration-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.7-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "certificate-expiration-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.7-2">
  grouping certificate-expiration-grouping:
    +---n certificate-expiration
            {certificate-expiration-notification}?
       +-- expiration-date    yang:date-and-time
</sourcecode>
            <t indent="0" pn="section-2.1.4.7-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.7-4">
              <li pn="section-2.1.4.7-4.1">This grouping's only purpose is to define the "certificate-expiration"
                  notification statement, used by the groupings defined in Sections
                  <xref target="trust-anchor-cert-grouping" format="counter" sectionFormat="of" derivedContent="2.1.4.8"/> and
                  <xref target="end-entity-cert-grouping" format="counter" sectionFormat="of" derivedContent="2.1.4.9"/>.</li>
              <li pn="section-2.1.4.7-4.2">The "certificate-expiration" notification enables servers to
                  notify clients when certificates are nearing expiration.</li>
              <li pn="section-2.1.4.7-4.3">The "expiration-date" node indicates when the designated
                  certificate will (or did) expire.</li>
              <li pn="section-2.1.4.7-4.4">Identification of the certificate that is expiring is built
                  into the notification itself.  For an example, please see
                  <xref target="cert-exp-notif-ex" format="default" sectionFormat="of" derivedContent="Section 2.2.3"/>.</li>
            </ul>
          </section>
          <section anchor="trust-anchor-cert-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.8">
            <name slugifiedName="name-the-trust-anchor-cert-group">The "trust-anchor-cert-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.8-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "trust-anchor-cert-grouping" grouping.  This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.8-2">
  grouping trust-anchor-cert-grouping:
    +-- cert-data?                         trust-anchor-cert-cms
    +---u certificate-expiration-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.8-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.8-4">
              <li pn="section-2.1.4.8-4.1">
                <t indent="0" pn="section-2.1.4.8-4.1.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.8-4.1.2">
                  <li pn="section-2.1.4.8-4.1.2.1">The "certificate-expiration-grouping" grouping is discussed in
                      <xref target="certificate-expiration-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.7"/>.</li>
                </ul>
              </li>
              <li pn="section-2.1.4.8-4.2">The "cert-data" node contains a chain of one or more certificates
                  containing at most one self-signed certificate (the "root" certificate),
                  encoded using a "signed-data-cms" typedef discussed in <xref target="typedefs" format="default" sectionFormat="of" derivedContent="Section 2.1.3"/>.</li>
            </ul>
          </section>
          <section anchor="end-entity-cert-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.9">
            <name slugifiedName="name-the-end-entity-cert-groupin">The "end-entity-cert-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.9-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "end-entity-cert-grouping" grouping.  This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.9-2">
  grouping end-entity-cert-grouping:
    +-- cert-data?                         end-entity-cert-cms
    +---u certificate-expiration-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.9-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.9-4">
              <li pn="section-2.1.4.9-4.1">
                <t indent="0" pn="section-2.1.4.9-4.1.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.9-4.1.2">
                  <li pn="section-2.1.4.9-4.1.2.1">The "certificate-expiration-grouping" grouping is discussed in
                      <xref target="certificate-expiration-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.7"/>.</li>
                </ul>
              </li>
              <li pn="section-2.1.4.9-4.2">The "cert-data" node contains a chain of one or more certificates
                  containing at most one certificate that is not self-signed and does not have
                  Basic constraint "CA true" (where "CA" means Certification Authority), encoded using a "signed-data-cms"
                  typedef discussed in <xref target="typedefs" format="default" sectionFormat="of" derivedContent="Section 2.1.3"/>.</li>
            </ul>
          </section>
          <section anchor="generate-csr-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.10">
            <name slugifiedName="name-the-generate-csr-grouping-g">The "generate-csr-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.10-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "generate-csr-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.10-2">
  grouping generate-csr-grouping:
    +---x generate-csr {csr-generation}?
       +---w input
       |  +---w csr-format    identityref
       |  +---w csr-info      csr-info
       +--ro output
          +--ro (csr-type)
             +--:(p10-csr)
                +--ro p10-csr?   p10-csr
</sourcecode>
            <t indent="0" pn="section-2.1.4.10-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.10-4">
              <li pn="section-2.1.4.10-4.1">This grouping's only purpose is to define the "generate-csr"
                  action statement, used by the groupings defined in Sections <xref target="asymmetric-key-pair-with-cert-grouping" format="counter" sectionFormat="of" derivedContent="2.1.4.11"/>
                  and <xref target="asymmetric-key-pair-with-certs-grouping" format="counter" sectionFormat="of" derivedContent="2.1.4.12"/>.</li>
              <li pn="section-2.1.4.10-4.2">This action takes two input parameters: a "csr-info" parameter, for what content should be in the certificate, and a "csr-format" parameter, for what CSR format to return.  The action returns the CSR in the specified format.  Both the "csr-info" and "csr" types are discussed in <xref target="typedefs" format="default" sectionFormat="of" derivedContent="Section 2.1.3"/>.</li>
              <li pn="section-2.1.4.10-4.3">For an example, please see <xref target="gcsr-action" format="default" sectionFormat="of" derivedContent="Section 2.2.2"/>.</li>
            </ul>
          </section>
          <section anchor="asymmetric-key-pair-with-cert-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.11">
            <name slugifiedName="name-the-asymmetric-key-pair-wit">The "asymmetric-key-pair-with-cert-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.11-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "asymmetric-key-pair-with-cert-grouping" grouping.  This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.11-2">
  grouping asymmetric-key-pair-with-cert-grouping:
    +---u asymmetric-key-pair-grouping
    +---u end-entity-cert-grouping
    +---u generate-csr-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.11-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.11-4">
              <li pn="section-2.1.4.11-4.1">This grouping defines an asymmetric key with at most one associated
                  certificate, a commonly needed combination in protocol models.</li>
              <li pn="section-2.1.4.11-4.2">
                <t indent="0" pn="section-2.1.4.11-4.2.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.11-4.2.2">
                  <li pn="section-2.1.4.11-4.2.2.1">The "asymmetric-key-pair-grouping" grouping is discussed in
                      <xref target="asymmetric-key-pair-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.6"/>.</li>
                  <li pn="section-2.1.4.11-4.2.2.2">The "end-entity-cert-grouping" grouping is discussed in
                      <xref target="end-entity-cert-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.9"/>.</li>
                  <li pn="section-2.1.4.11-4.2.2.3">The "generate-csr-grouping" grouping is discussed in
                      <xref target="generate-csr-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.10"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
          <section anchor="asymmetric-key-pair-with-certs-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.4.12">
            <name slugifiedName="name-the-asymmetric-key-pair-with">The "asymmetric-key-pair-with-certs-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.4.12-1">This section presents a tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrating the
                "asymmetric-key-pair-with-certs-grouping" grouping. This tree diagram does
                not expand the internally used "grouping" statement(s):</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.4.12-2">
  grouping asymmetric-key-pair-with-certs-grouping:
    +---u asymmetric-key-pair-grouping
    +-- certificates
    |  +-- certificate* [name]
    |     +-- name                       string
    |     +---u end-entity-cert-grouping
    +---u generate-csr-grouping
</sourcecode>
            <t indent="0" pn="section-2.1.4.12-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.4.12-4">
              <li pn="section-2.1.4.12-4.1">This grouping defines an asymmetric key with one or more
                  associated certificates, a commonly needed combination in
                  configuration models.</li>
              <li pn="section-2.1.4.12-4.2">
                <t indent="0" pn="section-2.1.4.12-4.2.1">For the referenced "grouping" statement(s):
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.1.4.12-4.2.2">
                  <li pn="section-2.1.4.12-4.2.2.1">The "asymmetric-key-pair-grouping" grouping is discussed in
                      <xref target="asymmetric-key-pair-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.6"/>.</li>
                  <li pn="section-2.1.4.12-4.2.2.2">The "end-entity-cert-grouping" grouping is discussed in
                      <xref target="end-entity-cert-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.9"/>.</li>
                  <li pn="section-2.1.4.12-4.2.2.3">The "generate-csr-grouping" grouping is discussed in
                      <xref target="generate-csr-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.10"/>.</li>
                </ul>
              </li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.5">
          <name slugifiedName="name-protocol-accessible-nodes">Protocol-Accessible Nodes</name>
          <t indent="0" pn="section-2.1.5-1">The "ietf-crypto-types" module does not contain any protocol-accessible nodes,
              but the module needs to be "implemented", as described in <xref section="5.6.5" target="RFC7950" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc7950#section-5.6.5" derivedContent="RFC7950"/>, in order for the identities in
              <xref target="identities" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/> to be defined.</t>
        </section>
      </section>
      <section anchor="crypto-types-examples" numbered="true" removeInRFC="false" toc="include" pn="section-2.2">
        <name slugifiedName="name-example-usage">Example Usage</name>
        <section anchor="ct-usage" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.1">
          <name slugifiedName="name-the-symmetric-key-grouping-a">The "symmetric-key-grouping",             "asymmetric-key-pair-with-certs-grouping", and "password-grouping" Groupings</name>
          <t indent="0" pn="section-2.2.1-1">The following non-normative module is constructed in order to illustrate the
              use of the "symmetric-key-grouping" (<xref target="symmetric-key-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.3"/>), the
              "asymmetric-key-pair-with-certs-grouping" (<xref target="asymmetric-key-pair-with-certs-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.12"/>),
              and the "password-grouping" (<xref target="password-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.2"/>) "grouping" statements.</t>
          <t indent="0" pn="section-2.2.1-2">Notably, this example module and associated configuration data illustrates that
              a hidden private key (ex-hidden-asymmetric-key)
              has been used to encrypt a symmetric key (ex-encrypted-one-symmetric-based-symmetric-key)
              that has been used to encrypt another private key (ex-encrypted-rsa-based-asymmetric-key).
              Additionally, the symmetric key is also used to encrypt a password (ex-encrypted-password).</t>
          <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.1.1">
            <name slugifiedName="name-example-module">Example Module</name>
            <sourcecode type="yang" markers="false" pn="section-2.2.1.1-1">
module ex-crypto-types-usage {
  yang-version 1.1;
  namespace "https://example.com/ns/example-crypto-types-usage";
  prefix ectu;

  import ietf-crypto-types {
    prefix ct;
    reference
      "RFC 9640: YANG Data Types and Groupings for Cryptography";
  }

  organization
    "Example Corporation";
  contact
    "YANG Designer &lt;mailto:yang.designer@example.com&gt;";

  description
    "This example module illustrates the 'symmetric-key-grouping'
     and 'asymmetric-key-grouping' groupings defined in the
    'ietf-crypto-types' module defined in RFC 9640.";

  revision 2024-10-10 {
    description
      "Initial version.";
    reference
      "RFC 9640: YANG Data Types and Groupings for Cryptography";
  }

  container symmetric-keys {
    description
      "A container of symmetric keys.";
    list symmetric-key {
      key "name";
      description
        "A symmetric key.";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ct:symmetric-key-grouping {
        augment "key-type/encrypted-symmetric-key/"
              + "encrypted-symmetric-key/encrypted-by" {
          description
            "Augments in a 'choice' statement enabling the
             encrypting key to be any other symmetric or
             asymmetric key.";
          uses encrypted-by-grouping;
        }
      }
    }
  }
  container asymmetric-keys {
    description
      "A container of asymmetric keys.";
    list asymmetric-key {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ct:asymmetric-key-pair-with-certs-grouping {
        augment "private-key-type/encrypted-private-key/"
              + "encrypted-private-key/encrypted-by" {
          description
            "Augments in a 'choice' statement enabling the
             encrypting key to be any other symmetric or
             asymmetric key.";
          uses encrypted-by-grouping;
        }
      }
      description
        "An asymmetric key pair with associated certificates.";
    }
  }
  container passwords {
    description
      "A container of passwords.";
    list password {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this password.";
      }
      uses ct:password-grouping {
        augment "password-type/encrypted-password/"
              + "encrypted-password/encrypted-by" {
          description
            "Augments in a 'choice' statement enabling the
             encrypting key to be any symmetric or
             asymmetric key.";
          uses encrypted-by-grouping;
        }
      }
      description
        "A password.";
    }
  }

  grouping encrypted-by-grouping {
    description
      "A grouping that defines a choice enabling references
       to other keys.";
    choice encrypted-by {
      mandatory true;
      description
        "A choice amongst other symmetric or asymmetric keys.";
      case symmetric-key-ref {
        leaf symmetric-key-ref {
          type leafref {
            path "/ectu:symmetric-keys/ectu:symmetric-key/"
               + "ectu:name";
          }
          description
            "Identifies the symmetric key that encrypts this key.";
        }
      }
      case asymmetric-key-ref {
        leaf asymmetric-key-ref {
          type leafref {
            path "/ectu:asymmetric-keys/ectu:asymmetric-key/"
               + "ectu:name";
          }
          description
            "Identifies the asymmetric key that encrypts this key.";
        }
      }
    }
  }
}
</sourcecode>
          </section>
          <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.1.2">
            <name slugifiedName="name-tree-diagram-for-the-exampl">Tree Diagram for the Example Module</name>
            <t indent="0" pn="section-2.2.1.2-1">The tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> for this example module is as follows:</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.2.1.2-2">
module: ex-crypto-types-usage
  +--rw symmetric-keys
  |  +--rw symmetric-key* [name]
  |     +--rw name                             string
  |     +--rw key-format?                      identityref
  |     +--rw (key-type)
  |        +--:(cleartext-symmetric-key)
  |        |  +--rw cleartext-symmetric-key?   binary
  |        |          {cleartext-symmetric-keys}?
  |        +--:(hidden-symmetric-key) {hidden-symmetric-keys}?
  |        |  +--rw hidden-symmetric-key?      empty
  |        +--:(encrypted-symmetric-key) {encrypted-symmetric-keys}?
  |           +--rw encrypted-symmetric-key
  |              +--rw encrypted-by
  |              |  +--rw (encrypted-by)
  |              |     +--:(symmetric-key-ref)
  |              |     |  +--rw symmetric-key-ref?    leafref
  |              |     +--:(asymmetric-key-ref)
  |              |        +--rw asymmetric-key-ref?   leafref
  |              +--rw encrypted-value-format    identityref
  |              +--rw encrypted-value           binary
  +--rw asymmetric-keys
  |  +--rw asymmetric-key* [name]
  |     +--rw name                           string
  |     +--rw public-key-format?             identityref
  |     +--rw public-key?                    binary
  |     +--rw private-key-format?            identityref
  |     +--rw (private-key-type)
  |     |  +--:(cleartext-private-key) {cleartext-private-keys}?
  |     |  |  +--rw cleartext-private-key?   binary
  |     |  +--:(hidden-private-key) {hidden-private-keys}?
  |     |  |  +--rw hidden-private-key?      empty
  |     |  +--:(encrypted-private-key) {encrypted-private-keys}?
  |     |     +--rw encrypted-private-key
  |     |        +--rw encrypted-by
  |     |        |  +--rw (encrypted-by)
  |     |        |     +--:(symmetric-key-ref)
  |     |        |     |  +--rw symmetric-key-ref?    leafref
  |     |        |     +--:(asymmetric-key-ref)
  |     |        |        +--rw asymmetric-key-ref?   leafref
  |     |        +--rw encrypted-value-format    identityref
  |     |        +--rw encrypted-value           binary
  |     +--rw certificates
  |     |  +--rw certificate* [name]
  |     |     +--rw name                      string
  |     |     +--rw cert-data                 end-entity-cert-cms
  |     |     +---n certificate-expiration
  |     |             {certificate-expiration-notification}?
  |     |        +-- expiration-date    yang:date-and-time
  |     +---x generate-csr {csr-generation}?
  |        +---w input
  |        |  +---w csr-format    identityref
  |        |  +---w csr-info      csr-info
  |        +--ro output
  |           +--ro (csr-type)
  |              +--:(p10-csr)
  |                 +--ro p10-csr?   p10-csr
  +--rw passwords
     +--rw password* [name]
        +--rw name                        string
        +--rw (password-type)
           +--:(cleartext-password) {cleartext-passwords}?
           |  +--rw cleartext-password?   string
           +--:(encrypted-password) {encrypted-passwords}?
              +--rw encrypted-password
                 +--rw encrypted-by
                 |  +--rw (encrypted-by)
                 |     +--:(symmetric-key-ref)
                 |     |  +--rw symmetric-key-ref?    leafref
                 |     +--:(asymmetric-key-ref)
                 |        +--rw asymmetric-key-ref?   leafref
                 +--rw encrypted-value-format    identityref
                 +--rw encrypted-value           binary
</sourcecode>
          </section>
          <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.1.3">
            <name slugifiedName="name-usage-example-for-the-examp">Usage Example for the Example Module</name>
            <t indent="0" pn="section-2.2.1.3-1">Finally, the following example illustrates various symmetric and asymmetric keys
            as they might appear in configuration.</t>
            <sourcecode type="xml" markers="false" pn="section-2.2.1.3-2">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;symmetric-keys
  xmlns="https://example.com/ns/example-crypto-types-usage"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;
  &lt;symmetric-key&gt;
    &lt;name&gt;ex-hidden-symmetric-key&lt;/name&gt;
    &lt;hidden-symmetric-key/&gt;
  &lt;/symmetric-key&gt;
  &lt;symmetric-key&gt;
    &lt;name&gt;ex-octet-string-based-symmetric-key&lt;/name&gt;
    &lt;key-format&gt;ct:octet-string-key-format&lt;/key-format&gt;
    &lt;cleartext-symmetric-key&gt;BASE64VALUE=&lt;/cleartext-symmetric-key&gt;
  &lt;/symmetric-key&gt;
  &lt;symmetric-key&gt;
    &lt;name&gt;ex-one-symmetric-based-symmetric-key&lt;/name&gt;
    &lt;key-format&gt;ct:one-symmetric-key-format&lt;/key-format&gt;
    &lt;cleartext-symmetric-key&gt;BASE64VALUE=&lt;/cleartext-symmetric-key&gt;
  &lt;/symmetric-key&gt;
  &lt;symmetric-key&gt;
    &lt;name&gt;ex-encrypted-one-symmetric-based-symmetric-key&lt;/name&gt;
    &lt;key-format&gt;ct:one-symmetric-key-format&lt;/key-format&gt;
    &lt;encrypted-symmetric-key&gt;
      &lt;encrypted-by&gt;
        &lt;asymmetric-key-ref&gt;ex-hidden-asymmetric-key&lt;/asymmetric-key\
-ref&gt;
      &lt;/encrypted-by&gt;
      &lt;encrypted-value-format&gt;ct:cms-enveloped-data-format&lt;/encrypte\
d-value-format&gt;
      &lt;encrypted-value&gt;BASE64VALUE=&lt;/encrypted-value&gt;
    &lt;/encrypted-symmetric-key&gt;
  &lt;/symmetric-key&gt;
&lt;/symmetric-keys&gt;

&lt;asymmetric-keys
  xmlns="https://example.com/ns/example-crypto-types-usage"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;
  &lt;asymmetric-key&gt;
    &lt;name&gt;ex-hidden-asymmetric-key&lt;/name&gt;
    &lt;public-key-format&gt;ct:subject-public-key-info-format&lt;/public-key\
-format&gt;
    &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
    &lt;hidden-private-key/&gt;
    &lt;certificates&gt;
      &lt;certificate&gt;
        &lt;name&gt;ex-hidden-asymmetric-key-cert&lt;/name&gt;
        &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
      &lt;/certificate&gt;
    &lt;/certificates&gt;
  &lt;/asymmetric-key&gt;
  &lt;asymmetric-key&gt;
    &lt;name&gt;ex-rsa-based-asymmetric-key&lt;/name&gt;
    &lt;public-key-format&gt;ct:subject-public-key-info-format&lt;/public-key\
-format&gt;
    &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
    &lt;private-key-format&gt;ct:rsa-private-key-format&lt;/private-key-forma\
t&gt;
    &lt;cleartext-private-key&gt;BASE64VALUE=&lt;/cleartext-private-key&gt;
    &lt;certificates&gt;
      &lt;certificate&gt;
        &lt;name&gt;ex-cert&lt;/name&gt;
        &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
      &lt;/certificate&gt;
    &lt;/certificates&gt;
  &lt;/asymmetric-key&gt;
  &lt;asymmetric-key&gt;
    &lt;name&gt;ex-one-asymmetric-based-asymmetric-key&lt;/name&gt;
    &lt;public-key-format&gt;ct:subject-public-key-info-format&lt;/public-key\
-format&gt;
    &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
    &lt;private-key-format&gt;ct:one-asymmetric-key-format&lt;/private-key-fo\
rmat&gt;
    &lt;cleartext-private-key&gt;BASE64VALUE=&lt;/cleartext-private-key&gt;
  &lt;/asymmetric-key&gt;
  &lt;asymmetric-key&gt;
    &lt;name&gt;ex-encrypted-rsa-based-asymmetric-key&lt;/name&gt;
    &lt;public-key-format&gt;ct:subject-public-key-info-format&lt;/public-key\
-format&gt;
    &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
    &lt;private-key-format&gt;ct:rsa-private-key-format&lt;/private-key-forma\
t&gt;
    &lt;encrypted-private-key&gt;
      &lt;encrypted-by&gt;
        &lt;symmetric-key-ref&gt;ex-encrypted-one-symmetric-based-symmetri\
c-key&lt;/symmetric-key-ref&gt;
      &lt;/encrypted-by&gt;
      &lt;encrypted-value-format&gt;ct:cms-encrypted-data-format&lt;/encrypte\
d-value-format&gt;
      &lt;encrypted-value&gt;BASE64VALUE=&lt;/encrypted-value&gt;
    &lt;/encrypted-private-key&gt;
  &lt;/asymmetric-key&gt;
&lt;/asymmetric-keys&gt;

&lt;passwords
  xmlns="https://example.com/ns/example-crypto-types-usage"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;
  &lt;password&gt;
    &lt;name&gt;ex-cleartext-password&lt;/name&gt;
    &lt;cleartext-password&gt;super-secret&lt;/cleartext-password&gt;
  &lt;/password&gt;
  &lt;password&gt;
    &lt;name&gt;ex-encrypted-password&lt;/name&gt;
    &lt;encrypted-password&gt;
      &lt;encrypted-by&gt;
        &lt;symmetric-key-ref&gt;ex-encrypted-one-symmetric-based-symmetri\
c-key&lt;/symmetric-key-ref&gt;
      &lt;/encrypted-by&gt;
      &lt;encrypted-value-format&gt;ct:cms-encrypted-data-format&lt;/encrypte\
d-value-format&gt;
      &lt;encrypted-value&gt;BASE64VALUE=&lt;/encrypted-value&gt;
    &lt;/encrypted-password&gt;
  &lt;/password&gt;
&lt;/passwords&gt;
</sourcecode>
          </section>
        </section>
        <section anchor="gcsr-action" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.2">
          <name slugifiedName="name-the-generate-csr-action">The "generate-csr" Action</name>
          <t indent="0" pn="section-2.2.2-1">The following example illustrates the "generate-csr"
          action, discussed in <xref target="generate-csr-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.10"/>, with the NETCONF protocol.</t>
          <t keepWithNext="true" indent="0" pn="section-2.2.2-2">REQUEST</t>
          <sourcecode type="xml" markers="false" pn="section-2.2.2-3">
&lt;rpc message-id="101"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;
  &lt;action xmlns="urn:ietf:params:xml:ns:yang:1"&gt;
    &lt;asymmetric-keys
      xmlns="https://example.com/ns/example-crypto-types-usage"&gt;
      &lt;asymmetric-key&gt;
        &lt;name&gt;ex-hidden-asymmetric-key&lt;/name&gt;
        &lt;generate-csr&gt;
          &lt;csr-format&gt;ct:p10-csr-format&lt;/csr-format&gt;
          &lt;csr-info&gt;BASE64VALUE=&lt;/csr-info&gt;
        &lt;/generate-csr&gt;
      &lt;/asymmetric-key&gt;
    &lt;/asymmetric-keys&gt;
  &lt;/action&gt;
&lt;/rpc&gt;
</sourcecode>
          <t keepWithNext="true" indent="0" pn="section-2.2.2-4">RESPONSE</t>
          <sourcecode type="xml" markers="false" pn="section-2.2.2-5">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;rpc-reply message-id="101"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;p10-csr xmlns="https://example.com/ns/example-crypto-types-usage"\
&gt;BASE64VALUE=&lt;/p10-csr&gt;
&lt;/rpc-reply&gt;
</sourcecode>
        </section>
        <section anchor="cert-exp-notif-ex" toc="exclude" numbered="true" removeInRFC="false" pn="section-2.2.3">
          <name slugifiedName="name-the-certificate-expiration-n">The "certificate-expiration" Notification</name>
          <t indent="0" pn="section-2.2.3-1">The following example illustrates the "certificate-expiration"
              notification, discussed in <xref target="certificate-expiration-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.7"/>,
          with the NETCONF protocol.</t>
          <sourcecode type="xml" markers="false" pn="section-2.2.3-2">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;notification
  xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"&gt;
  &lt;eventTime&gt;2018-05-25T00:01:00Z&lt;/eventTime&gt;
  &lt;asymmetric-keys xmlns="https://example.com/ns/example-crypto-type\
s-usage"&gt;
    &lt;asymmetric-key&gt;
      &lt;name&gt;ex-hidden-asymmetric-key&lt;/name&gt;
      &lt;certificates&gt;
        &lt;certificate&gt;
          &lt;name&gt;ex-hidden-asymmetric-key-cert&lt;/name&gt;
          &lt;certificate-expiration&gt;
            &lt;expiration-date&gt;2018-08-05T14:18:53-05:00&lt;/expiration-d\
ate&gt;
          &lt;/certificate-expiration&gt;
        &lt;/certificate&gt;
      &lt;/certificates&gt;
    &lt;/asymmetric-key&gt;
  &lt;/asymmetric-keys&gt;
&lt;/notification&gt;
</sourcecode>
        </section>
      </section>
      <section anchor="crypto-types-yang-module" numbered="true" removeInRFC="false" toc="include" pn="section-2.3">
        <name slugifiedName="name-yang-module">YANG Module</name>
        <t indent="0" pn="section-2.3-1">This module has normative references to <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/>,
          <xref target="RFC2986" format="default" sectionFormat="of" derivedContent="RFC2986"/>, <xref target="RFC4253" format="default" sectionFormat="of" derivedContent="RFC4253"/>, <xref target="RFC5280" format="default" sectionFormat="of" derivedContent="RFC5280"/>,
          <xref target="RFC5652" format="default" sectionFormat="of" derivedContent="RFC5652"/>, <xref target="RFC5915" format="default" sectionFormat="of" derivedContent="RFC5915"/>, <xref target="RFC5958" format="default" sectionFormat="of" derivedContent="RFC5958"/>,
          <xref target="RFC6031" format="default" sectionFormat="of" derivedContent="RFC6031"/>, <xref target="RFC6960" format="default" sectionFormat="of" derivedContent="RFC6960"/>,
          <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>, <xref target="RFC7093" format="default" sectionFormat="of" derivedContent="RFC7093"/>, <xref target="RFC8017" format="default" sectionFormat="of" derivedContent="RFC8017"/>, 
          <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/>, <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>,
          and <xref target="ITU.X690.2021" format="default" sectionFormat="of" derivedContent="ITU.X690.2021"/>.</t>
        <sourcecode name="ietf-crypto-types@2024-10-10.yang" type="yang" markers="true" pn="section-2.3-2">
module ietf-crypto-types {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-crypto-types";
  prefix ct;

  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 6991: Common YANG Data Types";
  }

  import ietf-netconf-acm {
    prefix nacm;
    reference
      "RFC 8341: Network Configuration Access Control Model";
  }

  organization
    "IETF NETCONF (Network Configuration) Working Group";

  contact
    "WG Web:   https://datatracker.ietf.org/wg/netconf
     WG List:  NETCONF WG list &lt;mailto:netconf@ietf.org&gt;
     Author:   Kent Watsen &lt;mailto:kent+ietf@watsen.net&gt;";

  description
    "This module defines common YANG types for cryptographic
     applications.

     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 (RFC 2119)
     (RFC 8174) when, and only when, they appear in all
     capitals, as shown here.

     Copyright (c) 2024 IETF Trust and the persons identified
     as authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with
     or without modification, is permitted pursuant to, and
     subject to the license terms contained in, the Revised
     BSD License set forth in Section 4.c of the IETF Trust's
     Legal Provisions Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 9640
     (https://www.rfc-editor.org/info/rfc9640); see the RFC
     itself for full legal notices.";

  revision 2024-10-10 {
    description
      "Initial version.";
    reference
      "RFC 9640: YANG Data Types and Groupings for Cryptography";
  }

  /****************/
  /*   Features   */
  /****************/

  feature one-symmetric-key-format {
    description
      "Indicates that the server supports the
       'one-symmetric-key-format' identity.";
  }

  feature one-asymmetric-key-format {
    description
      "Indicates that the server supports the
       'one-asymmetric-key-format' identity.";
  }

  feature symmetrically-encrypted-value-format {
    description
      "Indicates that the server supports the
       'symmetrically-encrypted-value-format' identity.";
  }

  feature asymmetrically-encrypted-value-format {
    description
      "Indicates that the server supports the
       'asymmetrically-encrypted-value-format' identity.";
  }

  feature cms-enveloped-data-format {
    description
      "Indicates that the server supports the
       'cms-enveloped-data-format' identity.";
  }

  feature cms-encrypted-data-format {
    description
      "Indicates that the server supports the
       'cms-encrypted-data-format' identity.";
  }

  feature p10-csr-format {
    description
      "Indicates that the server implements support
       for generating P10-based CSRs, as defined
       in RFC 2986.";
    reference
      "RFC 2986: PKCS #10: Certification Request Syntax
                 Specification Version 1.7";
  }

  feature csr-generation {
    description
      "Indicates that the server implements the
       'generate-csr' action.";
  }

  feature certificate-expiration-notification {
    description
      "Indicates that the server implements the
       'certificate-expiration' notification.";
  }

  feature cleartext-passwords {
    description
      "Indicates that the server supports cleartext
       passwords.";
  }

  feature encrypted-passwords {
    description
      "Indicates that the server supports password
       encryption.";
  }

  feature cleartext-symmetric-keys {
    description
      "Indicates that the server supports cleartext
       symmetric keys.";
  }

  feature hidden-symmetric-keys {
    description
      "Indicates that the server supports hidden keys.";
  }

  feature encrypted-symmetric-keys {
    description
      "Indicates that the server supports encryption
       of symmetric keys.";
  }

  feature cleartext-private-keys {
    description
      "Indicates that the server supports cleartext
       private keys.";
  }

  feature hidden-private-keys {
    description
      "Indicates that the server supports hidden keys.";
  }

  feature encrypted-private-keys {
    description
      "Indicates that the server supports encryption
       of private keys.";
  }

  /*************************************************/
  /*   Base Identities for Key Format Structures   */
  /*************************************************/

  identity symmetric-key-format {
    description
      "Base key-format identity for symmetric keys.";
  }

  identity public-key-format {
    description
      "Base key-format identity for public keys.";
  }

  identity private-key-format {
    description
      "Base key-format identity for private keys.";
  }

  /****************************************************/
  /*   Identities for Private Key Format Structures   */
  /****************************************************/

  identity rsa-private-key-format {
    base private-key-format;
    description
      "Indicates that the private key value is encoded as
       an RSAPrivateKey (from RFC 8017), encoded using ASN.1
       distinguished encoding rules (DER), as specified in
       ITU-T X.690.";
    reference
      "RFC 8017:
         PKCS #1: RSA Cryptography Specifications Version 2.2
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  identity ec-private-key-format {
    base private-key-format;
    description
      "Indicates that the private key value is encoded as
       an ECPrivateKey (from RFC 5915), encoded using ASN.1
       distinguished encoding rules (DER), as specified in
       ITU-T X.690.";
    reference
      "RFC 5915:
         Elliptic Curve Private Key Structure
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  identity one-asymmetric-key-format {
    if-feature "one-asymmetric-key-format";
    base private-key-format;
    description
      "Indicates that the private key value is a
       Cryptographic Message Syntax (CMS) OneAsymmetricKey
       structure, as defined in RFC 5958, encoded using
       ASN.1 distinguished encoding rules (DER), as
       specified in ITU-T X.690.";
    reference
      "RFC 5958:
         Asymmetric Key Packages
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /***************************************************/
  /*   Identities for Public Key Format Structures   */
  /***************************************************/

  identity ssh-public-key-format {
    base public-key-format;
    description
      "Indicates that the public key value is a Secure Shell (SSH)
       public key, as specified in RFC 4253, Section 6.6, i.e.:

         string    certificate or public key format
                   identifier
         byte[n]   key/certificate data.";
    reference
      "RFC 4253: The Secure Shell (SSH) Transport Layer Protocol";
  }

  identity subject-public-key-info-format {
    base public-key-format;
    description
      "Indicates that the public key value is a SubjectPublicKeyInfo
       structure, as described in RFC 5280, encoded using ASN.1
       distinguished encoding rules (DER), as specified in
       ITU-T X.690.";
    reference
      "RFC 5280:
         Internet X.509 Public Key Infrastructure Certificate
         and Certificate Revocation List (CRL) Profile
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /******************************************************/
  /*   Identities for Symmetric Key Format Structures   */
  /******************************************************/

  identity octet-string-key-format {
    base symmetric-key-format;
    description
      "Indicates that the key is encoded as a raw octet string.
       The length of the octet string MUST be appropriate for
       the associated algorithm's block size.

       The identity of the associated algorithm is outside the
       scope of this specification.  This is also true when
       the octet string has been encrypted.";
  }

  identity one-symmetric-key-format {
    if-feature "one-symmetric-key-format";
    base symmetric-key-format;
    description
      "Indicates that the private key value is a CMS
       OneSymmetricKey structure, as defined in RFC 6031,
       encoded using ASN.1 distinguished encoding rules
       (DER), as specified in ITU-T X.690.";
    reference
      "RFC 6031:
         Cryptographic Message Syntax (CMS)
         Symmetric Key Package Content Type
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /*************************************************/
  /*   Identities for Encrypted Value Structures   */
  /*************************************************/

  identity encrypted-value-format {
    description
      "Base format identity for encrypted values.";
  }

  identity symmetrically-encrypted-value-format {
    if-feature "symmetrically-encrypted-value-format";
    base encrypted-value-format;
    description
      "Base format identity for symmetrically encrypted
       values.";
  }

  identity asymmetrically-encrypted-value-format {
    if-feature "asymmetrically-encrypted-value-format";
    base encrypted-value-format;
    description
      "Base format identity for asymmetrically encrypted
       values.";
  }

  identity cms-encrypted-data-format {
    if-feature "cms-encrypted-data-format";
    base symmetrically-encrypted-value-format;
    description
      "Indicates that the encrypted value conforms to
       the 'encrypted-data-cms' type with the constraint
       that the 'unprotectedAttrs' value is not set.";
    reference
      "RFC 5652:
         Cryptographic Message Syntax (CMS)
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  identity cms-enveloped-data-format {
    if-feature "cms-enveloped-data-format";
    base asymmetrically-encrypted-value-format;
    description
      "Indicates that the encrypted value conforms to the
       'enveloped-data-cms' type with the following constraints:

       The EnvelopedData structure MUST have exactly one
       'RecipientInfo'.

       If the asymmetric key supports public key cryptography
       (e.g., RSA), then the 'RecipientInfo' must be a
       'KeyTransRecipientInfo' with the 'RecipientIdentifier'
       using a 'subjectKeyIdentifier' with the value set using
       'method 1' in RFC 7093 over the recipient's public key.

       Otherwise, if the asymmetric key supports key agreement
       (e.g., Elliptic Curve Cryptography (ECC)), then the
       'RecipientInfo' must be a 'KeyAgreeRecipientInfo'.  The
       'OriginatorIdentifierOrKey' value must use the
       'OriginatorPublicKey' alternative.  The
       'UserKeyingMaterial' value must not be present.  There
       must be exactly one 'RecipientEncryptedKeys' value
       having the 'KeyAgreeRecipientIdentifier' set to 'rKeyId'
       with the value set using 'method 1' in RFC 7093 over the
       recipient's public key.";
    reference
      "RFC 5652:
         Cryptographic Message Syntax (CMS)
       RFC 7093:
         Additional Methods for Generating Key
         Identifiers Values
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /*********************************************************/
  /*   Identities for Certificate Signing Request Formats  */
  /*********************************************************/

  identity csr-format {
    description
      "A base identity for the certificate signing request
       formats.  Additional derived identities MAY be defined
       by future efforts.";
  }

  identity p10-csr-format {
    if-feature "p10-csr-format";
    base csr-format;
    description
      "Indicates the CertificationRequest structure
       defined in RFC 2986.";
    reference
      "RFC 2986: PKCS #10: Certification Request Syntax
                 Specification Version 1.7";
  }


  /***************************************************/
  /*   Typedefs for ASN.1 structures from RFC 2986   */
  /***************************************************/

  typedef csr-info {
    type binary;
    description
      "A CertificationRequestInfo structure, as defined in
       RFC 2986, encoded using ASN.1 distinguished encoding
       rules (DER), as specified in ITU-T X.690.";
    reference
      "RFC 2986:
         PKCS #10: Certification Request Syntax
         Specification Version 1.7
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  typedef p10-csr {
    type binary;
    description
      "A CertificationRequest structure, as specified in
       RFC 2986, encoded using ASN.1 distinguished encoding
       rules (DER), as specified in ITU-T X.690.";
    reference
      "RFC 2986:
         PKCS #10: Certification Request Syntax Specification
         Version 1.7
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /***************************************************/
  /*   Typedefs for ASN.1 structures from RFC 5280   */
  /***************************************************/

  typedef x509 {
    type binary;
    description
      "A Certificate structure, as specified in RFC 5280,
       encoded using ASN.1 distinguished encoding rules (DER),
       as specified in ITU-T X.690.";
    reference
      "RFC 5280:
         Internet X.509 Public Key Infrastructure Certificate
         and Certificate Revocation List (CRL) Profile
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  typedef crl {
    type binary;
    description
      "A CertificateList structure, as specified in RFC 5280,
       encoded using ASN.1 distinguished encoding rules (DER),
       as specified in ITU-T X.690.";
    reference
      "RFC 5280:
         Internet X.509 Public Key Infrastructure Certificate
         and Certificate Revocation List (CRL) Profile
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /***************************************************/
  /*   Typedefs for ASN.1 structures from RFC 6960   */
  /***************************************************/

  typedef oscp-request {
    type binary;
    description
      "A OCSPRequest structure, as specified in RFC 6960,
       encoded using ASN.1 distinguished encoding rules
       (DER), as specified in ITU-T X.690.";
    reference
      "RFC 6960:
         X.509 Internet Public Key Infrastructure Online
         Certificate Status Protocol - OCSP
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  typedef oscp-response {
    type binary;
    description
      "A OCSPResponse structure, as specified in RFC 6960,
       encoded using ASN.1 distinguished encoding rules
       (DER), as specified in ITU-T X.690.";
    reference
      "RFC 6960:
         X.509 Internet Public Key Infrastructure Online
         Certificate Status Protocol - OCSP
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  /***********************************************/
  /*   Typedefs for ASN.1 structures from 5652   */
  /***********************************************/

  typedef cms {
    type binary;
    description
      "A ContentInfo structure, as specified in RFC 5652,
       encoded using ASN.1 distinguished encoding rules (DER),
       as specified in ITU-T X.690.";
    reference
      "RFC 5652:
         Cryptographic Message Syntax (CMS)
       ITU-T X.690:
         Information technology - ASN.1 encoding rules:
         Specification of Basic Encoding Rules (BER),
         Canonical Encoding Rules (CER) and Distinguished
         Encoding Rules (DER) 02/2021";
  }

  typedef data-content-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       data content type, as described in Section 4 of RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  typedef signed-data-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       signed-data content type, as described in Section 5 of
       RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  typedef enveloped-data-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       enveloped-data content type, as described in Section 6
       of RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  typedef digested-data-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       digested-data content type, as described in Section 7
       of RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  typedef encrypted-data-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       encrypted-data content type, as described in Section 8
       of RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  typedef authenticated-data-cms {
    type cms;
    description
      "A CMS structure whose top-most content type MUST be the
       authenticated-data content type, as described in Section 9
       of RFC 5652.";
    reference
      "RFC 5652: Cryptographic Message Syntax (CMS)";
  }

  /*********************************************************/
  /*   Typedefs for ASN.1 structures related to RFC 5280   */
  /*********************************************************/

  typedef trust-anchor-cert-x509 {
    type x509;
    description
      "A Certificate structure that MUST encode a self-signed
       root certificate.";
  }

  typedef end-entity-cert-x509 {
    type x509;
    description
      "A Certificate structure that MUST encode a certificate
       that is neither self-signed nor has Basic constraint
       CA true.";
  }

  /*********************************************************/
  /*   Typedefs for ASN.1 structures related to RFC 5652   */
  /*********************************************************/

  typedef trust-anchor-cert-cms {
    type signed-data-cms;
    description
      "A CMS SignedData structure that MUST contain the chain of
       X.509 certificates needed to authenticate the certificate
       presented by a client or end entity.

       The CMS MUST contain only a single chain of certificates.
       The client or end-entity certificate MUST only authenticate
       to the last intermediate CA certificate listed in the chain.

       In all cases, the chain MUST include a self-signed root
       certificate.  In the case where the root certificate is
       itself the issuer of the client or end-entity certificate,
       only one certificate is present.

       This CMS structure MAY (as applicable where this type is
       used) also contain suitably fresh (as defined by local
       policy) revocation objects with which the device can
       verify the revocation status of the certificates.

       This CMS encodes the degenerate form of the SignedData
       structure (RFC 5652, Section 5.2) that is commonly used
       to disseminate X.509 certificates and revocation objects
       (RFC 5280).";
    reference
      "RFC 5280:
         Internet X.509 Public Key Infrastructure Certificate
         and Certificate Revocation List (CRL) Profile
       RFC 5652:
         Cryptographic Message Syntax (CMS)";
  }

  typedef end-entity-cert-cms {
    type signed-data-cms;
    description
      "A CMS SignedData structure that MUST contain the end-entity
       certificate itself and MAY contain any number
       of intermediate certificates leading up to a trust
       anchor certificate.  The trust anchor certificate
       MAY be included as well.

       The CMS MUST contain a single end-entity certificate.
       The CMS MUST NOT contain any spurious certificates.

       This CMS structure MAY (as applicable where this type is
       used) also contain suitably fresh (as defined by local
       policy) revocation objects with which the device can
       verify the revocation status of the certificates.

       This CMS encodes the degenerate form of the SignedData
       structure (RFC 5652, Section 5.2) that is commonly
       used to disseminate X.509 certificates and revocation
       objects (RFC 5280).";

    reference
      "RFC 5280:
         Internet X.509 Public Key Infrastructure Certificate
         and Certificate Revocation List (CRL) Profile
       RFC 5652:
         Cryptographic Message Syntax (CMS)";
  }

  /*****************/
  /*   Groupings   */
  /*****************/

  grouping encrypted-value-grouping {
    description
      "A reusable grouping for a value that has been encrypted by
       a referenced symmetric or asymmetric key.";
    container encrypted-by {
      nacm:default-deny-write;
      description
        "An empty container enabling a reference to the key that
         encrypted the value to be augmented in.  The referenced
         key MUST be a symmetric key or an asymmetric key.

         A symmetric key MUST be referenced via a leaf node called
         'symmetric-key-ref'.  An asymmetric key MUST be referenced
         via a leaf node called 'asymmetric-key-ref'.

         The leaf nodes MUST be direct descendants in the data tree
         and MAY be direct descendants in the schema tree (e.g.,
         'choice'/'case' statements are allowed but not a
         container).";
    }
    leaf encrypted-value-format {
      type identityref {
        base encrypted-value-format;
      }
      mandatory true;
      description
        "Identifies the format of the 'encrypted-value' leaf.

         If 'encrypted-by' points to a symmetric key, then an
         identity based on 'symmetrically-encrypted-value-format'
         MUST be set (e.g., 'cms-encrypted-data-format').

         If 'encrypted-by' points to an asymmetric key, then an
         identity based on 'asymmetrically-encrypted-value-format'
         MUST be set (e.g., 'cms-enveloped-data-format').";
    }
    leaf encrypted-value {
      nacm:default-deny-write;
      type binary;
      must '../encrypted-by';
      mandatory true;
      description
        "The value, encrypted using the referenced symmetric
         or asymmetric key.  The value MUST be encoded using
         the format associated with the 'encrypted-value-format'
         leaf.";
    }
  }

  grouping password-grouping {
    description
      "A password used for authenticating to a remote system.

       The 'ianach:crypt-hash' typedef from RFC 7317 should be
       used instead when needing a password to authenticate a
       local account.";
    choice password-type {
      nacm:default-deny-write;
      mandatory true;
      description
        "Choice between password types.";
      case cleartext-password {
        if-feature "cleartext-passwords";
        leaf cleartext-password {
          nacm:default-deny-all;
          type string;
          description
            "The cleartext value of the password.";
        }
      }
      case encrypted-password {
        if-feature "encrypted-passwords";
        container encrypted-password {
          description
            "A container for the encrypted password value.";
          uses encrypted-value-grouping;
        }
      }
    }
  }

  grouping symmetric-key-grouping {
    description
      "A symmetric key.";
    leaf key-format {
      nacm:default-deny-write;
      type identityref {
        base symmetric-key-format;
      }
      description
        "Identifies the symmetric key's format.  Implementations
         SHOULD ensure that the incoming symmetric key value is
         encoded in the specified format.

         For encrypted keys, the value is the decrypted key's
         format (i.e., the 'encrypted-value-format' conveys the
         encrypted key's format).";
    }
    choice key-type {
      nacm:default-deny-write;
      mandatory true;
      description
        "Choice between key types.";
      case cleartext-symmetric-key {
        leaf cleartext-symmetric-key {
          if-feature "cleartext-symmetric-keys";
          nacm:default-deny-all;
          type binary;
          must '../key-format';
          description
            "The binary value of the key.  The interpretation of
             the value is defined by the 'key-format' field.";
        }
      }
      case hidden-symmetric-key {
        if-feature "hidden-symmetric-keys";
        leaf hidden-symmetric-key {
          type empty;
          must 'not(../key-format)';
          description
            "A hidden key is not exportable and not extractable;
             therefore, it is of type 'empty' as its value is
             inaccessible via management interfaces.  Though hidden
             to users, such keys are not hidden to the server and
             may be referenced by configuration to indicate which
             key a server should use for a cryptographic operation.
             How such keys are created is outside the scope of this
             module.";
        }
      }
      case encrypted-symmetric-key {
        if-feature "encrypted-symmetric-keys";
        container encrypted-symmetric-key {
          must '../key-format';
          description
            "A container for the encrypted symmetric key value.
             The interpretation of the 'encrypted-value' node
             is via the 'key-format' node";
          uses encrypted-value-grouping;
        }
      }
    }
  }

  grouping public-key-grouping {
    description
      "A public key.";
    leaf public-key-format {
      nacm:default-deny-write;
      type identityref {
        base public-key-format;
      }
      mandatory true;
      description
        "Identifies the public key's format.  Implementations SHOULD
         ensure that the incoming public key value is encoded in the
         specified format.";
    }
    leaf public-key {
      nacm:default-deny-write;
      type binary;
      mandatory true;
      description
        "The binary value of the public key.  The interpretation
         of the value is defined by the 'public-key-format' field.";
    }
  }

  grouping private-key-grouping {
    description
      "A private key.";
    leaf private-key-format {
      nacm:default-deny-write;
      type identityref {
        base private-key-format;
      }
      description
        "Identifies the private key's format.  Implementations SHOULD
         ensure that the incoming private key value is encoded in the
         specified format.

         For encrypted keys, the value is the decrypted key's
         format (i.e., the 'encrypted-value-format' conveys the
         encrypted key's format).";
    }
    choice private-key-type {
      nacm:default-deny-write;
      mandatory true;
      description
        "Choice between key types.";
      case cleartext-private-key {
        if-feature "cleartext-private-keys";
        leaf cleartext-private-key {
          nacm:default-deny-all;
          type binary;
          must '../private-key-format';
          description
            "The value of the binary key.  The key's value is
             interpreted by the 'private-key-format' field.";
        }
      }
      case hidden-private-key {
        if-feature "hidden-private-keys";
        leaf hidden-private-key {
          type empty;
          must 'not(../private-key-format)';
          description
            "A hidden key.  It is of type 'empty' as its value is
             inaccessible via management interfaces.  Though hidden
             to users, such keys are not hidden to the server and
             may be referenced by configuration to indicate which
             key a server should use for a cryptographic operation.
             How such keys are created is outside the scope of this
             module.";
        }
      }
      case encrypted-private-key {
        if-feature "encrypted-private-keys";
        container encrypted-private-key {
          must '../private-key-format';
          description
            "A container for the encrypted asymmetric private key
             value.  The interpretation of the 'encrypted-value'
             node is via the 'private-key-format' node";
          uses encrypted-value-grouping;
        }
      }
    }
  }

  grouping asymmetric-key-pair-grouping {
    description
      "A private key and, optionally, its associated public key.
       Implementations MUST ensure that the two keys, when both
       are specified, are a matching pair.";
    uses public-key-grouping {
      refine "public-key-format" {
        mandatory false;
      }
      refine "public-key" {
        mandatory false;
      }
    }
    uses private-key-grouping;
  }

  grouping certificate-expiration-grouping {
    description
      "A notification for when a certificate is about to expire or
       has already expired.";
    notification certificate-expiration {
      if-feature "certificate-expiration-notification";
      description
        "A notification indicating that the configured certificate
         is either about to expire or has already expired.  When to
         send notifications is an implementation-specific decision,
         but it is RECOMMENDED that a notification be sent once a
         month for 3 months, then once a week for four weeks, and
         then once a day thereafter until the issue is resolved.

         If the certificate's issuer maintains a Certificate
         Revocation List (CRL), the expiration notification MAY
         be sent if the CRL is about to expire.";
      leaf expiration-date {
        type yang:date-and-time;
        mandatory true;
        description
          "Identifies the expiration date on the certificate.";
      }
    }
  }

  grouping trust-anchor-cert-grouping {
    description
      "A trust anchor certificate and a notification for when
       it is about to expire or has already expired.";
    leaf cert-data {
      nacm:default-deny-all;
      type trust-anchor-cert-cms;
      description
        "The binary certificate data for this certificate.";
    }
    uses certificate-expiration-grouping;
  }

  grouping end-entity-cert-grouping {
    description
      "An end-entity certificate and a notification for when
       it is about to expire or has already expired.  Implementations
       SHOULD assert that, where used, the end-entity certificate
       contains the expected public key.";
    leaf cert-data {
      nacm:default-deny-all;
      type end-entity-cert-cms;
      description
        "The binary certificate data for this certificate.";
    }
    uses certificate-expiration-grouping;
  }



  grouping generate-csr-grouping {
    description
      "Defines the 'generate-csr' action.";
    action generate-csr {
      if-feature "csr-generation";
      nacm:default-deny-all;
      description
        "Generates a certificate signing request structure for
         the associated asymmetric key using the passed subject
         and attribute values.

         This 'action' statement is only available when the
         associated 'public-key-format' node's value is
         'subject-public-key-info-format'.";
      input {
        leaf csr-format {
          type identityref {
            base csr-format;
          }
          mandatory true;
          description
            "Specifies the format for the returned certificate.";
        }
        leaf csr-info {
          type csr-info;
          mandatory true;
          description
            "A CertificationRequestInfo structure, as defined in
             RFC 2986.

             Enables the client to provide a fully populated
             CertificationRequestInfo structure that the server
             only needs to sign in order to generate the complete
             CertificationRequest structure to return in the
             'output'.

             The 'AlgorithmIdentifier' field contained inside
             the 'SubjectPublicKeyInfo' field MUST be one known
             to be supported by the device.";
          reference
            "RFC 2986:
               PKCS #10: Certification Request Syntax Specification
             RFC 9640:
               YANG Data Types and Groupings for Cryptography";
        }
      }
      output {
        choice csr-type {
          mandatory true;
          description
            "A choice amongst certificate signing request formats.
             Additional formats MAY be augmented into this 'choice'
             statement by future efforts.";
          case p10-csr {
            leaf p10-csr {
              type p10-csr;
              description
                "A CertificationRequest, as defined in RFC 2986.";
            }
            description
              "A CertificationRequest, as defined in RFC 2986.";
            reference
              "RFC 2986:
                 PKCS #10: Certification Request Syntax Specification
               RFC 9640:
                 YANG Data Types and Groupings for Cryptography";
          }
        }
      }
    }
  } // generate-csr-grouping

  grouping asymmetric-key-pair-with-cert-grouping {
    description
      "A private/public key pair and an associated certificate.
       Implementations MUST assert that the certificate contains
       the matching public key.";
    uses asymmetric-key-pair-grouping;
    uses end-entity-cert-grouping;
    uses generate-csr-grouping;
  } // asymmetric-key-pair-with-cert-grouping

  grouping asymmetric-key-pair-with-certs-grouping {
    description
      "A private/public key pair and a list of associated
       certificates.  Implementations MUST assert that
       certificates contain the matching public key.";
    uses asymmetric-key-pair-grouping;
    container certificates {
      nacm:default-deny-write;
      description
        "Certificates associated with this asymmetric key.";
      list certificate {
        key "name";
        description
          "A certificate for this asymmetric key.";
        leaf name {
          type string;
          description
            "An arbitrary name for the certificate.";
        }
        uses end-entity-cert-grouping {
          refine "cert-data" {
            mandatory true;
          }
        }
      }
    }
    uses generate-csr-grouping;
  } // asymmetric-key-pair-with-certs-grouping

}
</sourcecode>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.1">
        <name slugifiedName="name-no-support-for-crmf">No Support for CRMF</name>
        <t indent="0" pn="section-3.1-1">This document uses PKCS #10 <xref target="RFC2986" format="default" sectionFormat="of" derivedContent="RFC2986"/> for the
          "generate-csr" action.  The use of Certificate
          Request Message Format (CRMF) <xref target="RFC4211" format="default" sectionFormat="of" derivedContent="RFC4211"/> was considered,
          but it was unclear if there was market demand for it.  If it is desired
          to support CRMF in the future, a backwards compatible solution can be
          defined at that time.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.2">
        <name slugifiedName="name-no-support-for-key-generati">No Support for Key Generation</name>
        <t indent="0" pn="section-3.2-1">Early revisions of this document included "rpc" statements for
            generating symmetric and asymmetric keys.  These statements were
            removed due to an inability to obtain consensus for how to
            generically identify the key algorithm to use.  Hence, the
            solution presented in this document only supports keys to be
        configured via an external client.</t>
        <t indent="0" pn="section-3.2-2">Separate protocol-specific modules can present protocol-specific
            key-generating RPCs (e.g., the "generate-asymmetric-key-pair" RPC in 
            <xref target="RFC9644" format="default" sectionFormat="of" derivedContent="RFC9644"/>
            and <xref target="RFC9645" format="default" sectionFormat="of" derivedContent="RFC9645"/>).</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.3">
        <name slugifiedName="name-unconstrained-public-key-us">Unconstrained Public Key Usage</name>
        <t indent="0" pn="section-3.3-1">This module defines the "public-key-grouping" grouping, which
            enables the configuration of public keys without constraints on
            their usage, e.g., what operations the key is allowed to be used
            for (e.g., encryption, verification, or both).</t>
        <t indent="0" pn="section-3.3-2">The "asymmetric-key-pair-grouping" grouping uses the aforementioned
            "public-key-grouping" grouping and carries the same traits.</t>
        <t indent="0" pn="section-3.3-3">The "asymmetric-key-pair-with-cert-grouping" grouping uses the
            aforementioned "asymmetric-key-pair-grouping" grouping, whereby
            associated certificates <bcp14>MUST</bcp14> constrain the usage of the public
            key according to local policy.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.4">
        <name slugifiedName="name-unconstrained-private-key-u">Unconstrained Private Key Usage</name>
        <t indent="0" pn="section-3.4-1">This module defines the "asymmetric-key-pair-grouping" grouping,
            which enables the configuration of private keys without
            constraints on their usage, e.g., what operations the key is
            allowed to be used for (e.g., signature, decryption, or both).</t>
        <t indent="0" pn="section-3.4-2">The "asymmetric-key-pair-with-cert-grouping" grouping uses the aforementioned
            "asymmetric-key-pair-grouping" grouping, whereby configured certificates
            (e.g., identity certificates) may constrain the use of the public
            key according to local policy.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.5">
        <name slugifiedName="name-cleartext-passwords-and-key">Cleartext Passwords and Keys</name>
        <t indent="0" pn="section-3.5-1">The module contained within this document enables, only when
          specific "feature" statements are enabled, for the cleartext
          value of passwords and keys to be stored in the configuration
          database.  Storing cleartext values for passwords and keys is
          <bcp14>NOT RECOMMENDED</bcp14>.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.6">
        <name slugifiedName="name-encrypting-passwords-and-ke">Encrypting Passwords and Keys</name>
        <t indent="0" pn="section-3.6-1">The module contained within this document enables cleartext
            passwords and keys to be encrypted via another key, either
            symmetric or asymmetric.  Both formats use a CMS structure
            (EncryptedData and EnvelopedData, respectively), which allows
            any encryption algorithm to be used.</t>
        <t indent="0" pn="section-3.6-2">To securely encrypt a password or key with a symmetric key, a
        proper block cipher mode, such as an Authenticated Encryption with Associated Data (AEAD) or Cipher Block Chaining (CBC), <bcp14>MUST</bcp14> be used.


	This
            ensures that a random Initialization Vector (IV) is part of the input, which guarantees
            that the output for encrypting the same password or key still
            produces a different unpredictable ciphertext. This avoids leaking
            that some encrypted keys or passwords are the same and makes it
            much harder to pre-generate rainbow tables to brute-force attack
            weak passwords.
	The Electronic Codebook (ECB) block cipher mode <bcp14>MUST NOT</bcp14> be used.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.7">
        <name slugifiedName="name-deletion-of-cleartext-key-v">Deletion of Cleartext Key Values</name>
        <t indent="0" pn="section-3.7-1">This module defines storage for cleartext key values that <bcp14>SHOULD</bcp14>
            be zeroized when deleted so as to prevent the remnants of their
            persisted storage locations from being analyzed in any meaningful
            way.</t>
        <t indent="0" pn="section-3.7-2">The cleartext key values are the "cleartext-symmetric-key" node defined in the
            "symmetric-key-grouping" grouping (<xref target="symmetric-key-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.3"/>)
              and the "cleartext-private-key" node defined in the "asymmetric-key-pair-grouping"
              grouping (<xref target="asymmetric-key-pair-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.4.6"/>).</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-3.8">
        <name slugifiedName="name-considerations-for-the-ietf">Considerations for the "ietf-crypto-types" YANG Module</name>
        <t indent="0" pn="section-3.8-1">This section is modeled after the template defined in <xref section="3.7.1" target="RFC8407" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc8407#section-3.7.1" derivedContent="RFC8407"/>.</t>
        <t indent="0" pn="section-3.8-2">The "ietf-crypto-types" YANG module defines "grouping" statements
            that are designed to be accessed via YANG-based management
            protocols, such as NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> and RESTCONF
            <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.  Both of these protocols have
            mandatory-to-implement secure transport layers (e.g., Secure Shell (SSH) <xref target="RFC4252" format="default" sectionFormat="of" derivedContent="RFC4252"/>, TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>, and QUIC <xref target="RFC9000" format="default" sectionFormat="of" derivedContent="RFC9000"/>) and mandatory-to-implement mutual authentication.</t>
        <t indent="0" pn="section-3.8-3">The Network Configuration Access Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>
            provides the means to restrict access for particular users to a
            preconfigured subset of all available protocol operations and
            content.</t>
        <t indent="0" pn="section-3.8-4">Since the module in this document only defines groupings,
            these considerations are primarily for the designers of other
            modules that use these groupings.</t>
        <t indent="0" pn="section-3.8-5">Some of the readable data nodes defined in this YANG module
            may be considered sensitive or vulnerable in some network
            environments. It is thus important to control read access
            (e.g., via get, get-config, or notification) to these
            data nodes. The following subtrees and data nodes have particular
            sensitivity/vulnerability:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-3.8-6">
          <li pn="section-3.8-6.1">
            <t indent="0" pn="section-3.8-6.1.1">The "cleartext-password" node:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-3.8-6.1.2">
              <li pn="section-3.8-6.1.2.1">The "cleartext-password" node defined in the "password-grouping"
                    grouping is additionally sensitive to read operations such that,
                    in normal use cases, it should never be returned to a client.
                    For this reason, the NACM extension "default-deny-all" has been
                    applied to it.</li>
            </ul>
          </li>
          <li pn="section-3.8-6.2">
            <t indent="0" pn="section-3.8-6.2.1">The "cleartext-symmetric-key" node:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-3.8-6.2.2">
              <li pn="section-3.8-6.2.2.1">The "cleartext-symmetric-key" node defined in the "symmetric-key-grouping"
                    grouping is additionally sensitive to read operations such that,
                    in normal use cases, it should never be returned to a client.
                    For this reason, the NACM extension "default-deny-all" has been
                    applied to it.</li>
            </ul>
          </li>
          <li pn="section-3.8-6.3">
            <t indent="0" pn="section-3.8-6.3.1">The "cleartext-private-key" node:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-3.8-6.3.2">
              <li pn="section-3.8-6.3.2.1">The "cleartext-private-key" node defined in the "asymmetric-key-pair-grouping"
                    grouping is additionally sensitive to read operations such that, in
                    normal use cases, it should never be returned to a client.  For this
                    reason, the NACM extension "default-deny-all" has been applied to it.</li>
            </ul>
          </li>
          <li pn="section-3.8-6.4">
            <t indent="0" pn="section-3.8-6.4.1">The "cert-data" node:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-3.8-6.4.2">
              <li pn="section-3.8-6.4.2.1">The "cert-data" node defined in both the "trust-anchor-cert-grouping"
                    and "end-entity-cert-grouping" groupings is additionally sensitive to
                    read operations, as certificates may provide insight into which other
                    resources/applications/servers this particular server communicates with,
                    as well as potentially  divulge personally identifying information (e.g.,
                    end-entity certificates).  For this reason, the NACM extension
                    "default-deny-all" has been applied to it.</li>
            </ul>
          </li>
        </ul>
        <t indent="0" pn="section-3.8-7">All the writable data nodes defined by all the groupings defined
            in this module may be considered sensitive or vulnerable in
            some network environments.  For instance, even the modification
            of a public key or a certificate can dramatically alter the
            implemented security policy.  For this reason, the NACM extension
            "default-deny-write" has been applied to all the data nodes
            defined in the module.</t>
        <t indent="0" pn="section-3.8-8">Some of the operations in this YANG module may be considered
            sensitive or vulnerable in some network environments. It is
            thus important to control access to these operations. These
            are the operations and their sensitivity/vulnerability:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-3.8-9">
          <li pn="section-3.8-9.1">
            <t indent="0" pn="section-3.8-9.1.1">generate-csr:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-3.8-9.1.2">
              <li pn="section-3.8-9.1.2.1">This "action" statement <bcp14>SHOULD</bcp14> only be executed by authorized
                    users.  For this reason, the NACM extension "default-deny-all"
                    has been applied.  Note that NACM uses "default-deny-all"
                    to protect "rpc" and "action" statements; it does not define,
                    e.g., an extension called "default-deny-execute".</li>
              <li pn="section-3.8-9.1.2.2">For this action, it is <bcp14>RECOMMENDED</bcp14> that implementations assert
                    channel binding <xref target="RFC5056" format="default" sectionFormat="of" derivedContent="RFC5056"/> so as to ensure
                    that the application layer that sent the request is the same
                    as the device authenticated when the secure transport layer
                    was established.</li>
            </ul>
          </li>
        </ul>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-4.1">
        <name slugifiedName="name-the-ietf-xml-registry">The IETF XML Registry</name>
        <t indent="0" pn="section-4.1-1">IANA has registered the following URI in the "ns" registry
          of the "IETF XML Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-4.1-2">
          <dt pn="section-4.1-2.1">URI:</dt>
          <dd pn="section-4.1-2.2">urn:ietf:params:xml:ns:yang:ietf-crypto-types</dd>
          <dt pn="section-4.1-2.3">Registrant Contact:</dt>
          <dd pn="section-4.1-2.4">The IESG</dd>
          <dt pn="section-4.1-2.5">XML:</dt>
          <dd pn="section-4.1-2.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-4.2">
        <name slugifiedName="name-the-yang-module-names-regis">The YANG Module Names Registry</name>
        <t indent="0" pn="section-4.2-1">IANA has registered the following YANG module in the
          "YANG Module Names" registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>.
        </t>
        <dl newline="false" spacing="compact" indent="3" pn="section-4.2-2">
          <dt pn="section-4.2-2.1">Name:</dt>
          <dd pn="section-4.2-2.2">ietf-crypto-types</dd>
          <dt pn="section-4.2-2.3">Namespace:</dt>
          <dd pn="section-4.2-2.4">urn:ietf:params:xml:ns:yang:ietf-crypto-types</dd>
          <dt pn="section-4.2-2.5">Prefix:</dt>
          <dd pn="section-4.2-2.6">ct</dd>
          <dt pn="section-4.2-2.7">Reference:</dt>
          <dd pn="section-4.2-2.8">RFC 9640</dd>
        </dl>
      </section>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-netconf-http-client-server" to="HTTP-CLIENT-SERVER"/>
    <displayreference target="I-D.ietf-netconf-netconf-client-server" to="NETCONF-CLIENT-SERVER"/>
    <displayreference target="I-D.ietf-netconf-restconf-client-server" to="RESTCONF-CLIENT-SERVER"/>
    <references pn="section-5">
      <name slugifiedName="name-references">References</name>
      <references pn="section-5.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="ITU.X680.2021" target="https://www.itu.int/rec/T-REC-X.680-202102-I" quoteTitle="true" derivedAnchor="ITU.X680.2021">
          <front>
            <title>Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation</title>
            <author>
              <organization showOnFrontPage="true">ITU-T</organization>
            </author>
            <date month="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.680"/>
          <seriesInfo name="ISO/IEC" value="8824-1:2021"/>
        </reference>
        <reference anchor="ITU.X690.2021" target="https://www.itu.int/rec/T-REC-X.690-202102-I" quoteTitle="true" derivedAnchor="ITU.X690.2021">
          <front>
            <title>Information Technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)</title>
            <author>
              <organization showOnFrontPage="true">ITU-T</organization>
            </author>
            <date month="February" year="2021"/>
          </front>
          <seriesInfo name="ITU-T Recommendation" value="X.690"/>
          <seriesInfo name="ISO/IEC" value="8825-1:2021"/>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC2986" target="https://www.rfc-editor.org/info/rfc2986" quoteTitle="true" derivedAnchor="RFC2986">
          <front>
            <title>PKCS #10: Certification Request Syntax Specification Version 1.7</title>
            <author fullname="M. Nystrom" initials="M." surname="Nystrom"/>
            <author fullname="B. Kaliski" initials="B." surname="Kaliski"/>
            <date month="November" year="2000"/>
            <abstract>
              <t indent="0">This memo represents a republication of PKCS #10 v1.7 from RSA Laboratories' Public-Key Cryptography Standards (PKCS) series, and change control is retained within the PKCS process. The body of this document, except for the security considerations section, is taken directly from the PKCS #9 v2.0 or the PKCS #10 v1.7 document. This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="2986"/>
          <seriesInfo name="DOI" value="10.17487/RFC2986"/>
        </reference>
        <reference anchor="RFC4252" target="https://www.rfc-editor.org/info/rfc4252" quoteTitle="true" derivedAnchor="RFC4252">
          <front>
            <title>The Secure Shell (SSH) Authentication Protocol</title>
            <author fullname="T. Ylonen" initials="T." surname="Ylonen"/>
            <author fullname="C. Lonvick" initials="C." role="editor" surname="Lonvick"/>
            <date month="January" year="2006"/>
            <abstract>
              <t indent="0">The Secure Shell Protocol (SSH) is a protocol for secure remote login and other secure network services over an insecure network. This document describes the SSH authentication protocol framework and public key, password, and host-based client authentication methods. Additional authentication methods are described in separate documents. The SSH authentication protocol runs on top of the SSH transport layer protocol and provides a single authenticated tunnel for the SSH connection protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4252"/>
          <seriesInfo name="DOI" value="10.17487/RFC4252"/>
        </reference>
        <reference anchor="RFC4253" target="https://www.rfc-editor.org/info/rfc4253" quoteTitle="true" derivedAnchor="RFC4253">
          <front>
            <title>The Secure Shell (SSH) Transport Layer Protocol</title>
            <author fullname="T. Ylonen" initials="T." surname="Ylonen"/>
            <author fullname="C. Lonvick" initials="C." role="editor" surname="Lonvick"/>
            <date month="January" year="2006"/>
            <abstract>
              <t indent="0">The Secure Shell (SSH) is a protocol for secure remote login and other secure network services over an insecure network.</t>
              <t indent="0">This document describes the SSH transport layer protocol, which typically runs on top of TCP/IP. The protocol can be used as a basis for a number of secure network services. It provides strong encryption, server authentication, and integrity protection. It may also provide compression.</t>
              <t indent="0">Key exchange method, public key algorithm, symmetric encryption algorithm, message authentication algorithm, and hash algorithm are all negotiated.</t>
              <t indent="0">This document also describes the Diffie-Hellman key exchange method and the minimal set of algorithms that are needed to implement the SSH transport layer protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4253"/>
          <seriesInfo name="DOI" value="10.17487/RFC4253"/>
        </reference>
        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280" quoteTitle="true" derivedAnchor="RFC5280">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author fullname="D. Cooper" initials="D." surname="Cooper"/>
            <author fullname="S. Santesson" initials="S." surname="Santesson"/>
            <author fullname="S. Farrell" initials="S." surname="Farrell"/>
            <author fullname="S. Boeyen" initials="S." surname="Boeyen"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="W. Polk" initials="W." surname="Polk"/>
            <date month="May" year="2008"/>
            <abstract>
              <t indent="0">This memo profiles the X.509 v3 certificate and X.509 v2 certificate revocation list (CRL) for use in the Internet. An overview of this approach and model is provided as an introduction. The X.509 v3 certificate format is described in detail, with additional information regarding the format and semantics of Internet name forms. Standard certificate extensions are described and two Internet-specific extensions are defined. A set of required certificate extensions is specified. The X.509 v2 CRL format is described in detail along with standard and Internet-specific extensions. An algorithm for X.509 certification path validation is described. An ASN.1 module and examples are provided in the appendices. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5280"/>
          <seriesInfo name="DOI" value="10.17487/RFC5280"/>
        </reference>
        <reference anchor="RFC5652" target="https://www.rfc-editor.org/info/rfc5652" quoteTitle="true" derivedAnchor="RFC5652">
          <front>
            <title>Cryptographic Message Syntax (CMS)</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="September" year="2009"/>
            <abstract>
              <t indent="0">This document describes the Cryptographic Message Syntax (CMS). This syntax is used to digitally sign, digest, authenticate, or encrypt arbitrary message content. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="70"/>
          <seriesInfo name="RFC" value="5652"/>
          <seriesInfo name="DOI" value="10.17487/RFC5652"/>
        </reference>
        <reference anchor="RFC5915" target="https://www.rfc-editor.org/info/rfc5915" quoteTitle="true" derivedAnchor="RFC5915">
          <front>
            <title>Elliptic Curve Private Key Structure</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="D. Brown" initials="D." surname="Brown"/>
            <date month="June" year="2010"/>
            <abstract>
              <t indent="0">This document specifies the syntax and semantics for conveying Elliptic Curve (EC) private key information. The syntax and semantics defined herein are based on similar syntax and semantics defined by the Standards for Efficient Cryptography Group (SECG). This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5915"/>
          <seriesInfo name="DOI" value="10.17487/RFC5915"/>
        </reference>
        <reference anchor="RFC5958" target="https://www.rfc-editor.org/info/rfc5958" quoteTitle="true" derivedAnchor="RFC5958">
          <front>
            <title>Asymmetric Key Packages</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <date month="August" year="2010"/>
            <abstract>
              <t indent="0">This document defines the syntax for private-key information and a content type for it. Private-key information includes a private key for a specified public-key algorithm and a set of attributes. The Cryptographic Message Syntax (CMS), as defined in RFC 5652, can be used to digitally sign, digest, authenticate, or encrypt the asymmetric key format content type. This document obsoletes RFC 5208. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5958"/>
          <seriesInfo name="DOI" value="10.17487/RFC5958"/>
        </reference>
        <reference anchor="RFC6031" target="https://www.rfc-editor.org/info/rfc6031" quoteTitle="true" derivedAnchor="RFC6031">
          <front>
            <title>Cryptographic Message Syntax (CMS) Symmetric Key Package Content Type</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <date month="December" year="2010"/>
            <abstract>
              <t indent="0">This document defines the symmetric key format content type. It is transport independent. The Cryptographic Message Syntax (CMS) can be used to digitally sign, digest, authenticate, or encrypt this content type. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6031"/>
          <seriesInfo name="DOI" value="10.17487/RFC6031"/>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <author fullname="R. Enns" initials="R." role="editor" surname="Enns"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <author fullname="A. Bierman" initials="A." role="editor" surname="Bierman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices. It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages. The NETCONF protocol operations are realized as remote procedure calls (RPCs). This document obsoletes RFC 4741. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6241"/>
          <seriesInfo name="DOI" value="10.17487/RFC6241"/>
        </reference>
        <reference anchor="RFC6960" target="https://www.rfc-editor.org/info/rfc6960" quoteTitle="true" derivedAnchor="RFC6960">
          <front>
            <title>X.509 Internet Public Key Infrastructure Online Certificate Status Protocol - OCSP</title>
            <author fullname="S. Santesson" initials="S." surname="Santesson"/>
            <author fullname="M. Myers" initials="M." surname="Myers"/>
            <author fullname="R. Ankney" initials="R." surname="Ankney"/>
            <author fullname="A. Malpani" initials="A." surname="Malpani"/>
            <author fullname="S. Galperin" initials="S." surname="Galperin"/>
            <author fullname="C. Adams" initials="C." surname="Adams"/>
            <date month="June" year="2013"/>
            <abstract>
              <t indent="0">This document specifies a protocol useful in determining the current status of a digital certificate without requiring Certificate Revocation Lists (CRLs). Additional mechanisms addressing PKIX operational requirements are specified in separate documents. This document obsoletes RFCs 2560 and 6277. It also updates RFC 5912.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6960"/>
          <seriesInfo name="DOI" value="10.17487/RFC6960"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <date month="July" year="2013"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language. This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7093" target="https://www.rfc-editor.org/info/rfc7093" quoteTitle="true" derivedAnchor="RFC7093">
          <front>
            <title>Additional Methods for Generating Key Identifiers Values</title>
            <author fullname="S. Turner" initials="S." surname="Turner"/>
            <author fullname="S. Kent" initials="S." surname="Kent"/>
            <author fullname="J. Manger" initials="J." surname="Manger"/>
            <date month="December" year="2013"/>
            <abstract>
              <t indent="0">This document specifies additional example methods for generating Key Identifier values for use in the AKI (Authority Key Identifier) and SKI (Subject Key Identifier) certificate extensions.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7093"/>
          <seriesInfo name="DOI" value="10.17487/RFC7093"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols. This document describes the syntax and semantics of version 1.1 of the YANG language. YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification. There are a small number of backward incompatibilities from YANG version 1. This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7950"/>
          <seriesInfo name="DOI" value="10.17487/RFC7950"/>
        </reference>
        <reference anchor="RFC8017" target="https://www.rfc-editor.org/info/rfc8017" quoteTitle="true" derivedAnchor="RFC8017">
          <front>
            <title>PKCS #1: RSA Cryptography Specifications Version 2.2</title>
            <author fullname="K. Moriarty" initials="K." role="editor" surname="Moriarty"/>
            <author fullname="B. Kaliski" initials="B." surname="Kaliski"/>
            <author fullname="J. Jonsson" initials="J." surname="Jonsson"/>
            <author fullname="A. Rusch" initials="A." surname="Rusch"/>
            <date month="November" year="2016"/>
            <abstract>
              <t indent="0">This document provides recommendations for the implementation of public-key cryptography based on the RSA algorithm, covering cryptographic primitives, encryption schemes, signature schemes with appendix, and ASN.1 syntax for representing keys and for identifying the schemes.</t>
              <t indent="0">This document represents a republication of PKCS #1 v2.2 from RSA Laboratories' Public-Key Cryptography Standards (PKCS) series. By publishing this RFC, change control is transferred to the IETF.</t>
              <t indent="0">This document also obsoletes RFC 3447.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8017"/>
          <seriesInfo name="DOI" value="10.17487/RFC8017"/>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
          <front>
            <title>RESTCONF Protocol</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
          <front>
            <title>Network Configuration Access Control Model</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t>
              <t indent="0">This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="91"/>
          <seriesInfo name="RFC" value="8341"/>
          <seriesInfo name="DOI" value="10.17487/RFC8341"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol. TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC9000" target="https://www.rfc-editor.org/info/rfc9000" quoteTitle="true" derivedAnchor="RFC9000">
          <front>
            <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
            <author fullname="J. Iyengar" initials="J." role="editor" surname="Iyengar"/>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson"/>
            <date month="May" year="2021"/>
            <abstract>
              <t indent="0">This document defines the core of the QUIC transport protocol. QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration. QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances. Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9000"/>
          <seriesInfo name="DOI" value="10.17487/RFC9000"/>
        </reference>
      </references>
      <references pn="section-5.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="I-D.ietf-netconf-http-client-server" target="https://datatracker.ietf.org/doc/html/draft-ietf-netconf-http-client-server-23" quoteTitle="true" derivedAnchor="HTTP-CLIENT-SERVER">
          <front>
            <title>YANG Groupings for HTTP Clients and HTTP Servers</title>
            <author fullname="Kent Watsen" initials="K." surname="Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date day="15" month="August" year="2024"/>
            <abstract>
              <t indent="0">This document presents two YANG modules: the first defines a minimal grouping for configuring an HTTP client, and the second defines a minimal grouping for configuring an HTTP server. It is intended that these groupings will be used to help define the configuration for simple HTTP-based protocols (not for complete web servers or browsers). Support is provided for HTTP/1.1, HTTP/2, and HTTP/3.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-netconf-http-client-server-23"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="I-D.ietf-netconf-netconf-client-server" target="https://datatracker.ietf.org/doc/html/draft-ietf-netconf-netconf-client-server-37" quoteTitle="true" derivedAnchor="NETCONF-CLIENT-SERVER">
          <front>
            <title>NETCONF Client and Server Models</title>
            <author fullname="Kent Watsen" initials="K." surname="Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date day="14" month="August" year="2024"/>
            <abstract>
              <t indent="0">This document presents two YANG modules, one module to configure a NETCONF client and the other module to configure a NETCONF server. Both modules support both the SSH and TLS transport protocols, and support both standard NETCONF and NETCONF Call Home connections. Editorial Note (To be removed by RFC Editor) This draft contains placeholder values that need to be replaced with finalized values at the time of publication. This note summarizes all of the substitutions that are needed. No other RFC Editor instructions are specified elsewhere in this document. Artwork in this document contains shorthand references to drafts in progress. Please apply the following replacements (note: not all may be present): * AAAA --&gt; the assigned RFC value for draft-ietf-netconf-crypto- types * BBBB --&gt; the assigned RFC value for draft-ietf-netconf-trust- anchors * CCCC --&gt; the assigned RFC value for draft-ietf-netconf-keystore * DDDD --&gt; the assigned RFC value for draft-ietf-netconf-tcp-client- server * EEEE --&gt; the assigned RFC value for draft-ietf-netconf-ssh-client- server * FFFF --&gt; the assigned RFC value for draft-ietf-netconf-tls-client- server * GGGG --&gt; the assigned RFC value for draft-ietf-netconf-http- client-server * HHHH --&gt; the assigned RFC value for this draft Artwork in this document contains placeholder values for the date of publication of this draft. Please apply the following replacement: * 2024-08-14 --&gt; the publication date of this draft The "Relation to other RFCs" section Section 1.1 contains the text "one or more YANG modules" and, later, "modules". This text is sourced from a file in a context where it is unknown how many modules a draft defines. The text is not wrong as is, but it may be improved by stating more directly how many modules are defined. The "Relation to other RFCs" section Section 1.1 contains a self- reference to this draft, along with a corresponding reference in the Appendix. Please replace the self-reference in this section with "This RFC" (or similar) and remove the self-reference in the "Normative/Informative References" section, whichever it is in. Tree-diagrams in this draft may use the '\' line-folding mode defined in RFC 8792. However, nicer-to-the-eye is when the '\\' line-folding mode is used. The AD suggested suggested putting a request here for the RFC Editor to help convert "ugly" '\' folded examples to use the '\\' folding mode. "Help convert" may be interpreted as, identify what looks ugly and ask the authors to make the adjustment. The following Appendix section is to be removed prior to publication: * Appendix A. Change Log</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-netconf-netconf-client-server-37"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="I-D.ietf-netconf-restconf-client-server" target="https://datatracker.ietf.org/doc/html/draft-ietf-netconf-restconf-client-server-38" quoteTitle="true" derivedAnchor="RESTCONF-CLIENT-SERVER">
          <front>
            <title>RESTCONF Client and Server Models</title>
            <author fullname="Kent Watsen" initials="K." surname="Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date day="14" month="August" year="2024"/>
            <abstract>
              <t indent="0">This document presents two YANG modules, one module to configure a RESTCONF client and the other module to configure a RESTCONF server. Both modules support the TLS transport protocol with both standard RESTCONF and RESTCONF Call Home connections. Editorial Note (To be removed by RFC Editor) This draft contains placeholder values that need to be replaced with finalized values at the time of publication. This note summarizes all of the substitutions that are needed. No other RFC Editor instructions are specified elsewhere in this document. Artwork in this document contains shorthand references to drafts in progress. Please apply the following replacements (note: not all may be present): * AAAA --&gt; the assigned RFC value for draft-ietf-netconf-crypto- types * BBBB --&gt; the assigned RFC value for draft-ietf-netconf-trust- anchors * CCCC --&gt; the assigned RFC value for draft-ietf-netconf-keystore * DDDD --&gt; the assigned RFC value for draft-ietf-netconf-tcp-client- server * EEEE --&gt; the assigned RFC value for draft-ietf-netconf-ssh-client- server * FFFF --&gt; the assigned RFC value for draft-ietf-netconf-tls-client- server * GGGG --&gt; the assigned RFC value for draft-ietf-netconf-http- client-server * HHHH --&gt; the assigned RFC value for draft-ietf-netconf-netconf- client-server * IIII --&gt; the assigned RFC value for this draft Artwork in this document contains placeholder values for the date of publication of this draft. Please apply the following replacement: * 2024-08-14 --&gt; the publication date of this draft The "Relation to other RFCs" section Section 1.1 contains the text "one or more YANG modules" and, later, "modules". This text is sourced from a file in a context where it is unknown how many modules a draft defines. The text is not wrong as is, but it may be improved by stating more directly how many modules are defined. The "Relation to other RFCs" section Section 1.1 contains a self- reference to this draft, along with a corresponding reference in the Appendix. Please replace the self-reference in this section with "This RFC" (or similar) and remove the self-reference in the "Normative/Informative References" section, whichever it is in. Tree-diagrams in this draft may use the '\' line-folding mode defined in RFC 8792. However, nicer-to-the-eye is when the '\\' line-folding mode is used. The AD suggested suggested putting a request here for the RFC Editor to help convert "ugly" '\' folded examples to use the '\\' folding mode. "Help convert" may be interpreted as, identify what looks ugly and ask the authors to make the adjustment. The following Appendix section is to be removed prior to publication: * Appendix A. Change Log</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-netconf-restconf-client-server-38"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author fullname="M. Mealling" initials="M." surname="Mealling"/>
            <date month="January" year="2004"/>
            <abstract>
              <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC4211" target="https://www.rfc-editor.org/info/rfc4211" quoteTitle="true" derivedAnchor="RFC4211">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate Request Message Format (CRMF)</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="September" year="2005"/>
            <abstract>
              <t indent="0">This document describes the Certificate Request Message Format (CRMF) syntax and semantics. This syntax is used to convey a request for a certificate to a Certification Authority (CA), possibly via a Registration Authority (RA), for the purposes of X.509 certificate production. The request will typically include a public key and the associated registration information. This document does not define a certificate request protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4211"/>
          <seriesInfo name="DOI" value="10.17487/RFC4211"/>
        </reference>
        <reference anchor="RFC5056" target="https://www.rfc-editor.org/info/rfc5056" quoteTitle="true" derivedAnchor="RFC5056">
          <front>
            <title>On the Use of Channel Bindings to Secure Channels</title>
            <author fullname="N. Williams" initials="N." surname="Williams"/>
            <date month="November" year="2007"/>
            <abstract>
              <t indent="0">The concept of channel binding allows applications to establish that the two end-points of a secure channel at one network layer are the same as at a higher layer by binding authentication at the higher layer to the channel at the lower layer. This allows applications to delegate session protection to lower layers, which has various performance benefits.</t>
              <t indent="0">This document discusses and formalizes the concept of channel binding to secure channels. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5056"/>
          <seriesInfo name="DOI" value="10.17487/RFC5056"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="October" year="2010"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC7317" target="https://www.rfc-editor.org/info/rfc7317" quoteTitle="true" derivedAnchor="RFC7317">
          <front>
            <title>A YANG Data Model for System Management</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="August" year="2014"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the configuration and identification of some common system properties within a device containing a Network Configuration Protocol (NETCONF) server. This document also includes data node definitions for system identification, time-of-day management, user management, DNS resolver configuration, and some protocol operations for system management.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7317"/>
          <seriesInfo name="DOI" value="10.17487/RFC7317"/>
        </reference>
        <reference anchor="RFC8259" target="https://www.rfc-editor.org/info/rfc8259" quoteTitle="true" derivedAnchor="RFC8259">
          <front>
            <title>The JavaScript Object Notation (JSON) Data Interchange Format</title>
            <author fullname="T. Bray" initials="T." role="editor" surname="Bray"/>
            <date month="December" year="2017"/>
            <abstract>
              <t indent="0">JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. It was derived from the ECMAScript Programming Language Standard. JSON defines a small set of formatting rules for the portable representation of structured data.</t>
              <t indent="0">This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="90"/>
          <seriesInfo name="RFC" value="8259"/>
          <seriesInfo name="DOI" value="10.17487/RFC8259"/>
        </reference>
        <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" quoteTitle="true" derivedAnchor="RFC8340">
          <front>
            <title>YANG Tree Diagrams</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="L. Berger" initials="L." role="editor" surname="Berger"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document captures the current syntax used in YANG module tree diagrams. The purpose of this document is to provide a single location for this definition. This syntax may be updated from time to time based on the evolution of the YANG language.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="215"/>
          <seriesInfo name="RFC" value="8340"/>
          <seriesInfo name="DOI" value="10.17487/RFC8340"/>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." surname="Schoenwaelder"/>
            <author fullname="P. Shafer" initials="P." surname="Shafer"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="R. Wilton" initials="R." surname="Wilton"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF. This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model. This document updates RFC 7950.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8342"/>
          <seriesInfo name="DOI" value="10.17487/RFC8342"/>
        </reference>
        <reference anchor="RFC8407" target="https://www.rfc-editor.org/info/rfc8407" quoteTitle="true" derivedAnchor="RFC8407">
          <front>
            <title>Guidelines for Authors and Reviewers of Documents Containing YANG Data Models</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <date month="October" year="2018"/>
            <abstract>
              <t indent="0">This memo provides guidelines for authors and reviewers of specifications containing YANG modules. Recommendations and procedures are defined, which are intended to increase interoperability and usability of Network Configuration Protocol (NETCONF) and RESTCONF protocol implementations that utilize YANG modules. This document obsoletes RFC 6087.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="216"/>
          <seriesInfo name="RFC" value="8407"/>
          <seriesInfo name="DOI" value="10.17487/RFC8407"/>
        </reference>
        <reference anchor="RFC8792" target="https://www.rfc-editor.org/info/rfc8792" quoteTitle="true" derivedAnchor="RFC8792">
          <front>
            <title>Handling Long Lines in Content of Internet-Drafts and RFCs</title>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="E. Auerswald" initials="E." surname="Auerswald"/>
            <author fullname="A. Farrel" initials="A." surname="Farrel"/>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <date month="June" year="2020"/>
            <abstract>
              <t indent="0">This document defines two strategies for handling long lines in width-bounded text content. One strategy, called the "single backslash" strategy, is based on the historical use of a single backslash ('\') character to indicate where line-folding has occurred, with the continuation occurring with the first character that is not a space character (' ') on the next line. The second strategy, called the "double backslash" strategy, extends the first strategy by adding a second backslash character to identify where the continuation begins and is thereby able to handle cases not supported by the first strategy. Both strategies use a self-describing header enabling automated reconstitution of the original content.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8792"/>
          <seriesInfo name="DOI" value="10.17487/RFC8792"/>
        </reference>
        <reference anchor="RFC9641" target="https://www.rfc-editor.org/info/rfc9641" quoteTitle="true" derivedAnchor="RFC9641">
          <front>
            <title>A YANG Data Model for a Truststore</title>
            <author initials="K." surname="Watsen" fullname="Kent Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date month="October" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9641"/>
          <seriesInfo name="DOI" value="10.17487/RFC9641"/>
        </reference>
        <reference anchor="RFC9642" target="https://www.rfc-editor.org/info/rfc9642" quoteTitle="true" derivedAnchor="RFC9642">
          <front>
            <title>A YANG Data Model for a Keystore</title>
            <author initials="K." surname="Watsen" fullname="Kent Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date month="October" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9642"/>
          <seriesInfo name="DOI" value="10.17487/RFC9642"/>
        </reference>
        <reference anchor="RFC9643" target="https://www.rfc-editor.org/info/rfc9643" quoteTitle="true" derivedAnchor="RFC9643">
          <front>
            <title>YANG Groupings for TCP Clients and TCP Servers</title>
            <author initials="K." surname="Watsen" fullname="Kent Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <author initials="M." surname="Scharf" fullname="Michael Scharf">
              <organization showOnFrontPage="true">Hochschule Esslingen - University of Applied Sciences</organization>
            </author>
            <date month="October" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9643"/>
          <seriesInfo name="DOI" value="10.17487/RFC9643"/>
        </reference>
        <reference anchor="RFC9644" target="https://www.rfc-editor.org/info/rfc9644" quoteTitle="true" derivedAnchor="RFC9644">
          <front>
            <title>YANG Groupings for SSH Clients and SSH Servers</title>
            <author initials="K." surname="Watsen" fullname="Kent Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date month="October" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9644"/>
          <seriesInfo name="DOI" value="10.17487/RFC9644"/>
        </reference>
        <reference anchor="RFC9645" target="https://www.rfc-editor.org/info/rfc9645" quoteTitle="true" derivedAnchor="RFC9645">
          <front>
            <title>YANG Groupings for TLS Clients and TLS Servers</title>
            <author initials="K." surname="Watsen" fullname="Kent Watsen">
              <organization showOnFrontPage="true">Watsen Networks</organization>
            </author>
            <date month="October" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9645"/>
          <seriesInfo name="DOI" value="10.17487/RFC9645"/>
        </reference>
        <reference anchor="W3C.REC-xml-20081126" target="https://www.w3.org/TR/2008/REC-xml-20081126/" quoteTitle="true" derivedAnchor="W3C.REC-xml-20081126">
          <front>
            <title>Extensible Markup Language (XML) 1.0 (Fifth Edition)</title>
            <author initials="T." surname="Bray" fullname="Tim Bray"/>
            <author initials="J." surname="Paoli" fullname="Jean Paoli"/>
            <author initials="C.M." surname="Sperberg-McQueen" fullname="C. M. Sperberg-McQueen"/>
            <author initials="E." surname="Maler" fullname="Eve Maler"/>
            <author initials="F." surname="Yergeau" fullname="François Yergeau"/>
            <date month="November" year="2008"/>
          </front>
          <seriesInfo name="World Wide Web Consortium                     Recommendation" value="REC-xml-20081126"/>
        </reference>
      </references>
    </references>
    <section numbered="false" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t indent="0" pn="section-appendix.a-1">The authors would like to thank the following for
        lively discussions on list and in the halls (ordered
          by first name):
          <contact fullname="Balázs Kovács"/>,
          <contact fullname="Carsten Bormann"/>,
          <contact fullname="Dale Worley"/>,
          <contact fullname="Eric Voit"/>,
          <contact fullname="Éric Vyncke"/>,
          <contact fullname="Francesca Palombini"/>,
          <contact fullname="Jürgen Schönwälder"/>,
          <contact fullname="Lars Eggert"/>,
          <contact fullname="Liang Xia"/>,
          <contact fullname="Mahesh Jethanandani"/>,	  
          <contact fullname="Martin Björklund"/>,
          <contact fullname="Murray Kucherawy"/>,
          <contact fullname="Nick Hancock"/>,
          <contact fullname="Orie Steele"/>,
          <contact fullname="Paul Wouters"/>,
          <contact fullname="Rich Salz"/>,
          <contact fullname="Rifaat Shekh-Yusef"/>,
          <contact fullname="Rob Wilton"/>,
          <contact fullname="Roman Danyliw"/>,
          <contact fullname="Russ Housley"/>,
          <contact fullname="Sandra Murphy"/>,
          <contact fullname="Tom Petch"/>,
          <contact fullname="Valery Smyslov"/>,
          <contact fullname="Wang Haiguang"/>,
          <contact fullname="Warren Kumari"/>,
          and <contact fullname="Zaheduzzaman Sarker"/>.
      </t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="K." surname="Watsen" fullname="Kent Watsen">
        <organization showOnFrontPage="true">Watsen Networks</organization>
        <address>
          <email>kent+ietf@watsen.net</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
