<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" submissionType="IETF" docName="draft-ietf-netconf-ssh-client-server-40" number="9644" updates="" obsoletes="" ipr="trust200902" tocInclude="true" symRefs="true" sortRefs="true" prepTime="2024-10-10T17:19:46" indexInclude="true" scripts="Common,Latin" tocDepth="3">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-netconf-ssh-client-server-40" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9644" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="Groupings for SSH Clients and Servers">YANG Groupings for SSH Clients and SSH Servers</title>
    <seriesInfo name="RFC" value="9644" stream="IETF"/>
    <author fullname="Kent Watsen" initials="K." surname="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 three IETF-defined YANG modules and a script used to create four supporting IANA modules.</t>
      <t indent="0" pn="section-abstract-2">The three IETF modules are ietf-ssh-common, ietf-ssh-client, and
        ietf-ssh-server.  The "ietf-ssh-client" and "ietf-ssh-server" modules
        are the primary productions of this work, supporting the configuration
        and monitoring of Secure Shell (SSH) clients and servers.</t>
      <t indent="0" pn="section-abstract-3">The four IANA modules are iana-ssh-encryption-algs, iana-ssh-key-exchange-algs,
        iana-ssh-mac-algs, and iana-ssh-public-key-algs.  These modules each
        define YANG enumerations providing support for an IANA-maintained algorithm registry.</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/rfc9644" 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-regarding-the-three-ietf-mo">Regarding the Three IETF Modules</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-relation-to-other-rfcs">Relation to Other RFCs</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-specification-language">Specification Language</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-adherence-to-the-nmda">Adherence to the NMDA</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.5">
                <t indent="0" pn="section-toc.1-1.1.2.5.1"><xref derivedContent="1.5" format="counter" sectionFormat="of" target="section-1.5"/>.  <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-ssh-common-module">The "ietf-ssh-common" 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-the-ietf-ssh-client-module">The "ietf-ssh-client" Module</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-data-model-overview-2">Data Model Overview</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-example-usage-2">Example Usage</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-yang-module-2">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-the-ietf-ssh-server-module">The "ietf-ssh-server" Module</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-data-model-overview-3">Data Model Overview</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-example-usage-3">Example Usage</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.3">
                <t indent="0" pn="section-toc.1-1.4.2.3.1"><xref derivedContent="4.3" format="counter" sectionFormat="of" target="section-4.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-3">YANG Module</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-security-considerations">Security Considerations</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-considerations-for-the-iana">Considerations for the "iana-ssh-key-exchange-algs" Module</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-considerations-for-the-iana-">Considerations for the "iana-ssh-encryption-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.3">
                <t indent="0" pn="section-toc.1-1.5.2.3.1"><xref derivedContent="5.3" format="counter" sectionFormat="of" target="section-5.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-s">Considerations for the "iana-ssh-mac-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.4">
                <t indent="0" pn="section-toc.1-1.5.2.4.1"><xref derivedContent="5.4" format="counter" sectionFormat="of" target="section-5.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-ss">Considerations for the "iana-ssh-public-key-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.5">
                <t indent="0" pn="section-toc.1-1.5.2.5.1"><xref derivedContent="5.5" format="counter" sectionFormat="of" target="section-5.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-ietf">Considerations for the "ietf-ssh-common" YANG Module</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.6">
                <t indent="0" pn="section-toc.1-1.5.2.6.1"><xref derivedContent="5.6" format="counter" sectionFormat="of" target="section-5.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-ietf-">Considerations for the "ietf-ssh-client" YANG Module</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.7">
                <t indent="0" pn="section-toc.1-1.5.2.7.1"><xref derivedContent="5.7" format="counter" sectionFormat="of" target="section-5.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-ietf-s">Considerations for the "ietf-ssh-server" YANG Module</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <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.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.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.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-yang-module-names-regis">The YANG Module Names Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.3">
                <t indent="0" pn="section-toc.1-1.6.2.3.1"><xref derivedContent="6.3" format="counter" sectionFormat="of" target="section-6.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-ssh">Considerations for the "iana-ssh-encryption-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.4">
                <t indent="0" pn="section-toc.1-1.6.2.4.1"><xref derivedContent="6.4" format="counter" sectionFormat="of" target="section-6.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-ssh-">Considerations for the "iana-ssh-mac-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.5">
                <t indent="0" pn="section-toc.1-1.6.2.5.1"><xref derivedContent="6.5" format="counter" sectionFormat="of" target="section-6.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-ssh-p">Considerations for the "iana-ssh-public-key-algs" Module</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.6">
                <t indent="0" pn="section-toc.1-1.6.2.6.1"><xref derivedContent="6.6" format="counter" sectionFormat="of" target="section-6.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-considerations-for-the-iana-ssh-k">Considerations for the "iana-ssh-key-exchange-algs" Module</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <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.7.2">
              <li pn="section-toc.1-1.7.2.1">
                <t indent="0" pn="section-toc.1-1.7.2.1.1"><xref derivedContent="7.1" format="counter" sectionFormat="of" target="section-7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.2">
                <t indent="0" pn="section-toc.1-1.7.2.2.1"><xref derivedContent="7.2" format="counter" sectionFormat="of" target="section-7.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-script-to-generate-iana-mai">Script to Generate IANA-Maintained YANG Modules</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-contributors">Contributors</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.d"/><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 three IETF-defined YANG modules <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> and a script used to create four supporting IANA modules.</t>
      <t indent="0" pn="section-1-2">The three IETF modules are ietf-ssh-common (<xref target="ssh-common-model" format="default" sectionFormat="of" derivedContent="Section 2"/>),
        ietf-ssh-client (<xref target="ssh-client-model" format="default" sectionFormat="of" derivedContent="Section 3"/>), and ietf-ssh-server
        (<xref target="ssh-server-model" format="default" sectionFormat="of" derivedContent="Section 4"/>).  The "ietf-ssh-client" and "ietf-ssh-server"
        modules are the primary productions of this work, supporting the configuration
          and monitoring of SSH clients and servers.</t>
      <t indent="0" pn="section-1-3">The groupings defined in this document are expected to be used in
        conjunction with the groupings defined in an underlying transport-level
        module, such as the groupings defined in <xref target="RFC9643" format="default" sectionFormat="of" derivedContent="RFC9643"/>.
        The transport-level data model enables the configuration of transport-level
        values, such as a remote address, a remote port, a local address, and a
        local port.</t>
      <t indent="0" pn="section-1-4">The four IANA modules are: iana-ssh-encryption-algs,
        iana-ssh-key-exchange-algs,
        iana-ssh-mac-algs, and iana-ssh-public-key-algs.  These modules each define YANG
        enumerations providing support for an IANA-maintained algorithm registry.</t>
      <t indent="0" pn="section-1-5">This document assumes that the four IANA modules exist
        and presents a script in <xref target="iana-script" format="default" sectionFormat="of" derivedContent="Appendix A"/> that IANA
        may use to generate those YANG modules.  This document does not
        publish the initial versions of these four modules.  IANA publishes
        these modules.</t>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.1">
        <name slugifiedName="name-regarding-the-three-ietf-mo">Regarding the Three IETF Modules</name>
        <t indent="0" pn="section-1.1-1">The three IETF modules define features and groupings to model "generic" SSH
         clients and SSH servers, where "generic" should be interpreted as "least
         common denominator" rather than "complete."  Support for the basic SSH protocol
         <xref target="RFC4252" format="default" sectionFormat="of" derivedContent="RFC4252"/> <xref target="RFC4253" format="default" sectionFormat="of" derivedContent="RFC4253"/> <xref target="RFC4254" format="default" sectionFormat="of" derivedContent="RFC4254"/>
         is afforded by these modules, leaving configuration of advanced features
         (e.g., multiple channels) to augmentations made by consuming modules.</t>
        <t indent="0" pn="section-1.1-2">It is intended that the YANG groupings will be used by applications
        needing to configure SSH client and server protocol stacks.
	For
         instance, these groupings are used to help define the data models
         in <xref target="I-D.ietf-netconf-netconf-client-server" format="default" sectionFormat="of" derivedContent="NETCONF-CLIENT-SERVER"/>, for
	 clients and servers using the Network Configuration Protocol (NETCONF) over SSH <xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>.</t>
        <t indent="0" pn="section-1.1-3">The "ietf-ssh-client" and "ietf-ssh-server" YANG modules each define one
        grouping, which is focused on just SSH-specific configuration, and
        specifically avoid any transport-level configuration, such as what
        ports to listen on or connect to. This affords applications the
        opportunity to define their own strategy for how the underlying TCP
        connection is established. For instance, applications supporting NETCONF
        Call Home <xref target="RFC8071" format="default" sectionFormat="of" derivedContent="RFC8071"/> could use the "ssh-server-grouping"
        grouping for the SSH parts it provides while adding data nodes for the
        TCP-level call-home configuration.</t>
        <t indent="0" pn="section-1.1-4">The modules defined in this document optionally support <xref target="RFC6187" format="default" sectionFormat="of" derivedContent="RFC6187"/>, which describes enabling host keys and
          public keys based on X.509v3 certificates.</t>
      </section>
      <section anchor="collective-effort" numbered="true" removeInRFC="false" toc="include" pn="section-1.2">
        <name slugifiedName="name-relation-to-other-rfcs">Relation to Other RFCs</name>
        <t indent="0" pn="section-1.2-1">This document presents three YANG modules <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>
            that are part of a collection of RFCs that work together
            to ultimately support the configuration of both the clients
            and servers of both the NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> and
            RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/> protocols.</t>
        <t indent="0" pn="section-1.2-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 shorthand names are provided below
            the diagram.</t>
        <t indent="0" pn="section-1.2-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="left" pn="section-1.2-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-label-in-diagram-to-rfc-map">Label 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">
                <xref target="RFC9640" format="default" sectionFormat="of" derivedContent="RFC9640"/></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">
                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.3">
        <name slugifiedName="name-specification-language">Specification Language</name>
        <t indent="0" pn="section-1.3-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.4">
        <name slugifiedName="name-adherence-to-the-nmda">Adherence to the NMDA</name>
        <t indent="0" pn="section-1.4-1">This document is compliant with the Network Management Datastore
          Architecture (NMDA) <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.  For instance, as
          described in <xref target="RFC9641" format="default" sectionFormat="of" derivedContent="RFC9641"/> and
          <xref target="RFC9642" format="default" sectionFormat="of" derivedContent="RFC9642"/>, trust anchors and keys
          installed during manufacturing are expected to appear
          in &lt;operational&gt; (<xref section="5.3" target="RFC8342" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc8342#section-5.3" derivedContent="RFC8342"/>) and &lt;system&gt;
          <xref target="I-D.ietf-netmod-system-config" format="default" sectionFormat="of" derivedContent="SYSTEM-CONFIG"/> if implemented.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.5">
        <name slugifiedName="name-conventions">Conventions</name>
        <t indent="0" pn="section-1.5-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" target="RFC7950" format="default" sectionFormat="of" 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.5-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.5-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 anchor="ssh-common-model" numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-the-ietf-ssh-common-module">The "ietf-ssh-common" Module</name>
      <t indent="0" pn="section-2-1">The SSH common model presented in this section is common to both SSH clients and SSH servers. The
      "transport-params-grouping" grouping can be used to configure
      the list of SSH transport algorithms permitted by the SSH client
      or SSH server. The lists of permitted algorithms are in decreasing
      order of usage preference.  The algorithm that appears first in
      the client list that also appears in the server list is the one
      that is used for the SSH transport layer connection.  The ability
      to restrict the algorithms allowed is provided in this grouping
      for SSH clients and SSH servers that are capable of doing so
      and may serve to make SSH clients and SSH servers compliant
      with security policies.</t>
      <section 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-ssh-common" module in terms of its features, identities, groupings, and protocol-accessible nodes.</t>
        <section anchor="common-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-ssh-common" module:</t>
          <sourcecode type="yangtree" markers="false" pn="section-2.1.1-2">
Features:
  +-- ssh-x509-certs
  +-- transport-params
  +-- asymmetric-key-pair-generation
  +-- algorithm-discovery
</sourcecode>
          <t indent="0" pn="section-2.1.1-3">The diagram above uses syntax that is similar to but not
            defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
          <t indent="0" pn="section-2.1.1-4">Please refer to the YANG module for a description of each feature.</t>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.2">
          <name slugifiedName="name-groupings">Groupings</name>
          <t indent="0" pn="section-2.1.2-1">The "ietf-ssh-common" module defines the following "grouping" statement:</t>
          <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2.1.2-2">
            <li pn="section-2.1.2-2.1">transport-params-grouping</li>
          </ul>
          <t indent="0" pn="section-2.1.2-3">This grouping is presented in the following subsection.</t>
          <section anchor="transport-params-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.2.1">
            <name slugifiedName="name-the-transport-params-groupi">The "transport-params-grouping" Grouping</name>
            <t indent="0" pn="section-2.1.2.1-1">The following tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrates the
              "transport-params-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-2.1.2.1-2">
  grouping transport-params-grouping:
    +-- host-key
    |  +-- host-key-alg*   ssh-public-key-algorithm
    +-- key-exchange
    |  +-- key-exchange-alg*   ssh-key-exchange-algorithm
    +-- encryption
    |  +-- encryption-alg*   ssh-encryption-algorithm
    +-- mac
       +-- mac-alg*   ssh-mac-algorithm
</sourcecode>
            <t indent="0" pn="section-2.1.2.1-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.2.1-4">
              <li pn="section-2.1.2.1-4.1">This grouping is used by both the "ssh-client-grouping" and the
                "ssh-server-grouping" groupings defined in Sections <xref target="ssh-client-grouping" format="counter" sectionFormat="of" derivedContent="3.1.2.1"/>
                and <xref target="ssh-server-grouping" format="counter" sectionFormat="of" derivedContent="4.1.2.1"/>, respectively.</li>
              <li pn="section-2.1.2.1-4.2">This grouping enables client and server configurations to
                specify the algorithms that are to be used when establishing
                SSH sessions.</li>
              <li pn="section-2.1.2.1-4.3">Each list is "ordered-by user".</li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-2.1.3">
          <name slugifiedName="name-protocol-accessible-nodes">Protocol-Accessible Nodes</name>
          <t indent="0" pn="section-2.1.3-1">The following tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> lists all the
             protocol-accessible nodes defined in the "ietf-ssh-common" module
             without expanding the "grouping" statements:</t>
          <sourcecode type="yangtree" markers="false" pn="section-2.1.3-2">
module: ietf-ssh-common
  +--ro supported-algorithms {algorithm-discovery}?
     +--ro public-key-algorithms
     |  +--ro supported-algorithm*   ssh-public-key-algorithm
     +--ro encryption-algorithms
     |  +--ro supported-algorithm*   ssh-encryption-algorithm
     +--ro key-exchange-algorithms
     |  +--ro supported-algorithm*   ssh-key-exchange-algorithm
     +--ro mac-algorithms
        +--ro supported-algorithm*   ssh-mac-algorithm

  rpcs:
    +---x generate-asymmetric-key-pair
            {asymmetric-key-pair-generation}?
       +---w input
       |  +---w algorithm               ssh-public-key-algorithm
       |  +---w num-bits?               uint16
       |  +---w private-key-encoding
       |     +---w (private-key-encoding)
       |        +--:(cleartext) {ct:cleartext-private-keys}?
       |        |  +---w cleartext?   empty
       |        +--:(encrypted) {ct:encrypted-private-keys}?
       |        |  +---w encrypted
       |        |     +---w ks:encrypted-by-grouping
       |        +--:(hidden) {ct:hidden-private-keys}?
       |           +---w hidden?      empty
       +--ro output
          +--ro (key-or-hidden)?
             +--:(key)
             |  +---u ct:asymmetric-key-pair-grouping
             +--:(hidden)
                +--ro location?
                        instance-identifier
</sourcecode>
          <t indent="0" pn="section-2.1.3-3">Comments:</t>
          <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-2.1.3-4">
            <li pn="section-2.1.3-4.1">Protocol-accessible nodes are those nodes that are accessible
                when the module is "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"/>.</li>
            <li pn="section-2.1.3-4.2">The protocol-accessible nodes for the "ietf-ssh-common" module
                are limited to the "supported-algorithms" container, which is constrained
                by the "algorithm-discovery" feature, and the "generate-asymmetric-key-pair" RPC,
                which is constrained by the "asymmetric-key-pair-generation" feature.</li>
            <li pn="section-2.1.3-4.3">The "encrypted-by-grouping" grouping is discussed in
                <xref section="2.1.3.1" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.1.3.1" derivedContent="RFC9642"/>.</li>
            <li pn="section-2.1.3-4.4">The "asymmetric-key-pair-grouping" grouping is discussed in
              <xref section="2.1.4.6" target="RFC9640" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9640#section-2.1.4.6" derivedContent="RFC9640"/>.</li>
          </ul>
        </section>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.2">
        <name slugifiedName="name-example-usage">Example Usage</name>
        <t indent="0" pn="section-2.2-1">The following example illustrates the "transport-params-grouping'
        grouping when populated with some data.</t>
        <sourcecode type="xml" markers="false" pn="section-2.2-2">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;!-- The outermost element below doesn't exist in the data model. --&gt;
&lt;!--  It simulates if the "grouping" were a "container" instead.  --&gt;

&lt;transport-params
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-common"&gt;
  &lt;host-key&gt;
    &lt;host-key-alg&gt;x509v3-rsa2048-sha256&lt;/host-key-alg&gt;
    &lt;host-key-alg&gt;ssh-rsa&lt;/host-key-alg&gt;
    &lt;host-key-alg&gt;ssh-rsa@openssh.com&lt;/host-key-alg&gt;
  &lt;/host-key&gt;
  &lt;key-exchange&gt;
    &lt;key-exchange-alg&gt;diffie-hellman-group-exchange-sha256&lt;/key-exch\
ange-alg&gt;
  &lt;/key-exchange&gt;
  &lt;encryption&gt;
    &lt;encryption-alg&gt;aes256-ctr&lt;/encryption-alg&gt;
    &lt;encryption-alg&gt;aes192-ctr&lt;/encryption-alg&gt;
    &lt;encryption-alg&gt;aes128-ctr&lt;/encryption-alg&gt;
    &lt;encryption-alg&gt;aes256-gcm@openssh.com&lt;/encryption-alg&gt;
  &lt;/encryption&gt;
  &lt;mac&gt;
    &lt;mac-alg&gt;hmac-sha2-256&lt;/mac-alg&gt;
    &lt;mac-alg&gt;hmac-sha2-512&lt;/mac-alg&gt;
  &lt;/mac&gt;
&lt;/transport-params&gt;
</sourcecode>
        <t indent="0" pn="section-2.2-3">The following example illustrates operational state data indicating
        the SSH algorithms supported by the server.</t>
        <sourcecode type="xml" markers="false" pn="section-2.2-4">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;supported-algorithms
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-common"&gt;
  &lt;encryption-algorithms&gt;
    &lt;supported-algorithm&gt;aes256-ctr&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;arcfour256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;serpent256-ctr&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;AEAD_AES_128_GCM&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;AEAD_AES_256_GCM&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;aes256-gcm@openssh.com&lt;/supported-algorithm&gt;
  &lt;/encryption-algorithms&gt;
  &lt;key-exchange-algorithms&gt;
    &lt;supported-algorithm&gt;ecdh-sha2-nistp256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;rsa2048-sha256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;gss-group14-sha1-nistp256&lt;/supported-algori\
thm&gt;
    &lt;supported-algorithm&gt;gss-gex-sha1-nistp256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;gss-group14-sha256-1.2.840.10045.3.1.1&lt;/sup\
ported-algorithm&gt;
    &lt;supported-algorithm&gt;curve25519-sha256&lt;/supported-algorithm&gt;
  &lt;/key-exchange-algorithms&gt;
  &lt;mac-algorithms&gt;
    &lt;supported-algorithm&gt;hmac-sha2-256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;hmac-sha2-512&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;AEAD_AES_256_GCM&lt;/supported-algorithm&gt;
  &lt;/mac-algorithms&gt;
  &lt;public-key-algorithms&gt;
    &lt;supported-algorithm&gt;rsa-sha2-256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;rsa-sha2-512&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;spki-sign-rsa&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;pgp-sign-dss&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;x509v3-rsa2048-sha256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;ecdsa-sha2-nistp256&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;ecdsa-sha2-1.3.132.0.37&lt;/supported-algorith\
m&gt;
    &lt;supported-algorithm&gt;ssh-ed25519&lt;/supported-algorithm&gt;
    &lt;supported-algorithm&gt;ssh-rsa@openssh.com&lt;/supported-algorithm&gt;
  &lt;/public-key-algorithms&gt;
&lt;/supported-algorithms&gt;
</sourcecode>
        <t indent="0" pn="section-2.2-5">The following example illustrates the "generate-asymmetric-key-pair" RPC.</t>
        <t keepWithNext="true" indent="0" pn="section-2.2-6">REQUEST</t>
        <sourcecode type="xml" markers="false" pn="section-2.2-7">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;rpc message-id="101"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;generate-asymmetric-key-pair
    xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-common"&gt;
    &lt;algorithm&gt;ecdsa-sha2-nistp256&lt;/algorithm&gt;
    &lt;num-bits&gt;521&lt;/num-bits&gt;
    &lt;private-key-encoding&gt;
      &lt;encrypted&gt;
        &lt;asymmetric-key-ref&gt;hidden-asymmetric-key&lt;/asymmetric-key-re\
f&gt;
      &lt;/encrypted&gt;
    &lt;/private-key-encoding&gt;
  &lt;/generate-asymmetric-key-pair&gt;
&lt;/rpc&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-2.2-8">RESPONSE</t>
        <sourcecode type="xml" markers="false" pn="section-2.2-9">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;rpc-reply message-id="101"
  xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"
  xmlns:sshcmn="urn:ietf:params:xml:ns:yang:ietf-ssh-common"&gt;
  &lt;sshcmn:public-key-format&gt;ct:subject-public-key-info-format&lt;/sshcm\
n:public-key-format&gt;
  &lt;sshcmn:public-key&gt;BASE64VALUE=&lt;/sshcmn:public-key&gt;
  &lt;sshcmn:private-key-format&gt;ct:ec-private-key-format&lt;/sshcmn:privat\
e-key-format&gt;
  &lt;sshcmn:cleartext-private-key&gt;BASE64VALUE=&lt;/sshcmn:cleartext-priva\
te-key&gt;
&lt;/rpc-reply&gt;
</sourcecode>
      </section>
      <section anchor="ssh-common-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 YANG module has normative references to <xref target="RFC4250" format="default" sectionFormat="of" derivedContent="RFC4250"/>, <xref target="RFC4253" format="default" sectionFormat="of" derivedContent="RFC4253"/>,
        <xref target="RFC6187" format="default" sectionFormat="of" derivedContent="RFC6187"/>, and <xref target="FIPS_186-5" format="default" sectionFormat="of" derivedContent="FIPS_186-5"/>.</t>
        <sourcecode type="yang" name="ietf-ssh-common@2024-10-10.yang" markers="true" pn="section-2.3-2">
module ietf-ssh-common {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ssh-common";
  prefix sshcmn;

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

  import ietf-keystore {
    prefix ks;
    reference
      "RFC 9642: A YANG Data Model for a Keystore";
  }

  import iana-ssh-encryption-algs {
    prefix sshea;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  import iana-ssh-key-exchange-algs {
    prefix sshkea;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  import iana-ssh-mac-algs {
    prefix sshma;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  import iana-ssh-public-key-algs {
    prefix sshpka;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  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;
     Author:   Gary Wu &lt;mailto:garywu@cisco.com&gt;";

  description
    "This module defines common features and groupings for
     Secure Shell (SSH).

     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 9644
     (https://www.rfc-editor.org/info/rfc9644); see the RFC
     itself for full legal notices.";

  revision 2024-10-10 {
    description
      "Initial version.";
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  // Features

  feature ssh-x509-certs {
    description
      "X.509v3 certificates are supported for SSH.";
    reference
      "RFC 6187: X.509v3 Certificates for Secure Shell
                 Authentication";
  }

  feature transport-params {
    description
      "SSH transport layer parameters are configurable.";
  }

  feature asymmetric-key-pair-generation {
    description
      "Indicates that the server implements the
       'generate-asymmetric-key-pair' RPC.";
  }

  feature algorithm-discovery {
    description
      "Indicates that the server implements the
       'supported-algorithms' container.";
  }

  // Typedefs

  typedef ssh-public-key-algorithm {
    type union {
      type sshpka:ssh-public-key-algorithm;
      type string {
        length "1..64" {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
        pattern '.*@.*' {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
      }
    }
    description
      "A type that enables the public key algorithm to be
       either an IANA-maintained public key algorithm in
       the 'iana-ssh-public-key-algs' YANG module (RFC 9644)
       or a locally defined algorithm, per Section 4.6.1
       of RFC 4250.";
    reference
      "RFC 4250: The Secure Shell (SSH) Protocol Assigned Numbers
       RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  typedef ssh-key-exchange-algorithm {
    type union {
      type sshkea:ssh-key-exchange-algorithm;
      type string {
        length "1..64" {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC 4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
        pattern '.*@.*' {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC 4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                     Numbers";
        }
      }
    }
    description
      "A type that enables the key exchange algorithm to be
       either an IANA-maintained key exchange algorithm in
       the 'iana-ssh-key-exchange-algs' YANG module (RFC 9644)
       or a locally defined algorithm, per Section 4.6.1
       of RFC 4250.";
    reference
      "RFC 4250: The Secure Shell (SSH) Protocol Assigned Numbers
       RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  typedef ssh-encryption-algorithm {
    type union {
      type sshea:ssh-encryption-algorithm;
      type string {
        length "1..64" {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
        pattern '.*@.*' {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
      }
    }
    description
      "A type that enables the encryption algorithm to be
       either an IANA-maintained encryption algorithm in
       the 'iana-ssh-encryption-algs' YANG module (RFC 9644)
       or a locally defined algorithm, per Section 4.6.1
       of RFC 4250.";
    reference
      "RFC 4250: The Secure Shell (SSH) Protocol Assigned Numbers
       RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  typedef ssh-mac-algorithm {
    type union {
      type sshma:ssh-mac-algorithm;
      type string {
        length "1..64" {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
        pattern '.*@.*' {
          description
            "Non-IANA-maintained algorithms must include the
             at sign (@) in them, per Section 4.6.1 of RFC
             4250.";
          reference
            "RFC 4250: The Secure Shell (SSH) Protocol Assigned
                       Numbers";
        }
      }
    }
    description
      "A type that enables the message authentication code (MAC)
       algorithm to be either an IANA-maintained MAC algorithm
       in the 'iana-ssh-mac-algs' YANG module (RFC 9644)
       or a locally defined algorithm, per Section 4.6.1
       of RFC 4250.";
    reference
      "RFC 4250: The Secure Shell (SSH) Protocol Assigned Numbers
       RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  // Groupings

  grouping transport-params-grouping {
    description
      "A reusable grouping for SSH transport parameters.";
    reference
      "RFC 4253: The Secure Shell (SSH) Transport Layer Protocol";
    container host-key {
      description
        "Parameters regarding host key.";
      leaf-list host-key-alg {
        type ssh-public-key-algorithm;
        ordered-by user;
        description
          "Acceptable host key algorithms in order of decreasing
           preference.

           If this leaf-list is not configured (has zero
           elements), the acceptable host key algorithms are
           implementation-defined.";
        reference
          "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
      }
    }
    container key-exchange {
      description
        "Parameters regarding key exchange.";
      leaf-list key-exchange-alg {
        type ssh-key-exchange-algorithm;
        ordered-by user;
        description
          "Acceptable key exchange algorithms in order of decreasing
           preference.

           If this leaf-list is not configured (has zero
           elements), the acceptable key exchange algorithms are
           implementation-defined.";
      }
    }
    container encryption {
      description
        "Parameters regarding encryption.";
      leaf-list encryption-alg {
        type ssh-encryption-algorithm;
        ordered-by user;
        description
          "Acceptable encryption algorithms in order of decreasing
           preference.

           If this leaf-list is not configured (has zero
           elements), the acceptable encryption algorithms are
           implementation-defined.";
      }
    }
    container mac {
      description
        "Parameters regarding message authentication code (MAC).";
      leaf-list mac-alg {
        type ssh-mac-algorithm;
        ordered-by user;
        description
          "Acceptable MAC algorithms in order of decreasing
           preference.

           If this leaf-list is not configured (has zero
           elements), the acceptable MAC algorithms are
           implementation-defined.";
      }
    }
  }

  // Protocol-accessible Nodes

  container supported-algorithms {
    if-feature "algorithm-discovery";
    config false;
    description
      "Identifies all of the supported algorithms.";
    container public-key-algorithms {
      description
        "A container for a list of public key algorithms
         supported by the server.";
      leaf-list supported-algorithm {
        type ssh-public-key-algorithm;
        description
          "A public key algorithm supported by the server.";
      }
    }
    container encryption-algorithms {
      description
        "A container for a list of encryption algorithms
         supported by the server.";
      leaf-list supported-algorithm {
        type ssh-encryption-algorithm;
        description
          "An encryption algorithm supported by the server.";
      }
    }
    container key-exchange-algorithms {
      config false;
      description
        "A container for a list of key exchange algorithms
         supported by the server.";
      leaf-list supported-algorithm {
        type ssh-key-exchange-algorithm;
        description
          "A key exchange algorithm supported by the server.";
      }
    }
    container mac-algorithms {
      config false;
      description
        "A container for a list of MAC algorithms
         supported by the server.";
      leaf-list supported-algorithm {
        type ssh-mac-algorithm;
        description
          "A MAC algorithm supported by the server.";
      }
    }
  }

  rpc generate-asymmetric-key-pair {
    if-feature "asymmetric-key-pair-generation";
    description
      "Requests the device to generate a public key using
       the specified key algorithm.";
    input {
      leaf algorithm {
        type ssh-public-key-algorithm;
        mandatory true;
        description
          "The algorithm to be used when generating the key.";
      }
      leaf num-bits {
        type uint16;
        description
          "Specifies the number of bits in the key to create.
           For RSA keys, the minimum size is 1024 bits and
           the default is 3072 bits.  Generally, 3072 bits is
           considered sufficient.  DSA keys must be exactly 1024
           bits, as specified by FIPS 186-5.  For Elliptic Curve
           Digital Signature Algorithm (ECDSA) keys, the
           'num-bits' value determines the key length by selecting
           from one of three elliptic curve sizes: 256, 384, or
           521 bits.  Attempting to use bit lengths other than
           these three values for ECDSA keys will fail.  ECDSA-SK,
           Ed25519, and Ed25519-SK keys have a fixed length, and
           thus, the 'num-bits' value is not specified.";
        reference
          "FIPS 186-5: Digital Signature Standard (DSS)";
      }
      container private-key-encoding {
        description
          "Indicates how the private key is to be encoded.";
        choice private-key-encoding {
          mandatory true;
          description
            "A choice amongst optional private key handling.";
          case cleartext {
            if-feature "ct:cleartext-private-keys";
            leaf cleartext {
              type empty;
              description
                "Indicates that the private key is to be returned
                 as a cleartext value.";
            }
          }
          case encrypted {
            if-feature "ct:encrypted-private-keys";
            container encrypted {
              description
                "Indicates that the private key is to be encrypted
                 using the specified symmetric or asymmetric key.";
              uses ks:encrypted-by-grouping;
            }
          }
          case hidden {
            if-feature "ct:hidden-private-keys";
            leaf hidden {
              type empty;
              description
                "Indicates that the private key is to be hidden.

                 Unlike the 'cleartext' and 'encrypt' options, the
                 key returned is a placeholder for an internally
                 stored key.  See the 'Support for Built-in Keys'
                 section in RFC 9642 for information about hidden
                 keys.

                 It is expected that the server will instantiate
                 the hidden key in the same location where built-in
                 keys are located.  Rather than returning the key,
                 just the key's location is returned in the output.";
            }
          }
        }
      }
    }
    output {
      choice key-or-hidden {
        case key {
          uses ct:asymmetric-key-pair-grouping;
        }
        case hidden {
          leaf location {
            type instance-identifier;
            description
              "The location to where a hidden key was created.";
          }
        }
        description
          "The output can be either a key (for cleartext and
           encrypted keys) or the location to where the key
           was created (for hidden keys).";
      }
    }
  } // end generate-asymmetric-key-pair

}
</sourcecode>
      </section>
    </section>
    <section anchor="ssh-client-model" numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-the-ietf-ssh-client-module">The "ietf-ssh-client" Module</name>
      <t indent="0" pn="section-3-1">This section defines a YANG 1.1 <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> module called
        "ietf-ssh-client".  A high-level overview of the module is provided in
        <xref target="client-overview" format="default" sectionFormat="of" derivedContent="Section 3.1"/>. Examples illustrating the module's use
        are provided in <xref target="client-examples" format="default" sectionFormat="of" derivedContent="Section 3.2"/> ("Example Usage"). The YANG
        module itself is defined in <xref target="client-yang-module" format="default" sectionFormat="of" derivedContent="Section 3.3"/>.</t>
      <section anchor="client-overview" numbered="true" removeInRFC="false" toc="include" pn="section-3.1">
        <name slugifiedName="name-data-model-overview-2">Data Model Overview</name>
        <t indent="0" pn="section-3.1-1">This section provides an overview of the "ietf-ssh-client" module
          in terms of its features and groupings.</t>
        <section anchor="client-features" toc="exclude" numbered="true" removeInRFC="false" pn="section-3.1.1">
          <name slugifiedName="name-features-2">Features</name>
          <t indent="0" pn="section-3.1.1-1">The following diagram lists all the "feature" statements
            defined in the "ietf-ssh-client" module:</t>
          <sourcecode type="yangtree" markers="false" pn="section-3.1.1-2">
Features:
  +-- ssh-client-keepalives
  +-- client-ident-password
  +-- client-ident-publickey
  +-- client-ident-hostbased
  +-- client-ident-none
</sourcecode>
          <t indent="0" pn="section-3.1.1-3">The diagram above uses syntax that is similar to but not
            defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
          <t indent="0" pn="section-3.1.1-4">Please refer to the YANG module for a description of each feature.</t>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-3.1.2">
          <name slugifiedName="name-groupings-2">Groupings</name>
          <t indent="0" pn="section-3.1.2-1">The "ietf-ssh-client" module defines the following "grouping" statement:</t>
          <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-3.1.2-2">
            <li pn="section-3.1.2-2.1">ssh-client-grouping</li>
          </ul>
          <t indent="0" pn="section-3.1.2-3">This grouping is presented in the following subsection.</t>
          <section anchor="ssh-client-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-3.1.2.1">
            <name slugifiedName="name-the-ssh-client-grouping-gro">The "ssh-client-grouping" Grouping</name>
            <t indent="0" pn="section-3.1.2.1-1">The following tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrates the
              "ssh-client-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-3.1.2.1-2">
=============== NOTE: '\' line wrapping per RFC 8792 ================

  grouping ssh-client-grouping:
    +-- client-identity
    |  +-- username?      string
    |  +-- public-key! {client-ident-publickey}?
    |  |  +---u ks:inline-or-keystore-asymmetric-key-grouping
    |  +-- password! {client-ident-password}?
    |  |  +---u ct:password-grouping
    |  +-- hostbased! {client-ident-hostbased}?
    |  |  +---u ks:inline-or-keystore-asymmetric-key-grouping
    |  +-- none?          empty {client-ident-none}?
    |  +-- certificate! {sshcmn:ssh-x509-certs}?
    |     +---u ks:inline-or-keystore-end-entity-cert-with-key-group\
ing
    +-- server-authentication
    |  +-- ssh-host-keys!
    |  |  +---u ts:inline-or-truststore-public-keys-grouping
    |  +-- ca-certs! {sshcmn:ssh-x509-certs}?
    |  |  +---u ts:inline-or-truststore-certs-grouping
    |  +-- ee-certs! {sshcmn:ssh-x509-certs}?
    |     +---u ts:inline-or-truststore-certs-grouping
    +-- transport-params {sshcmn:transport-params}?
    |  +---u sshcmn:transport-params-grouping
    +-- keepalives! {ssh-client-keepalives}?
       +-- max-wait?       uint16
       +-- max-attempts?   uint8
</sourcecode>
            <t indent="0" pn="section-3.1.2.1-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-3.1.2.1-4">
              <li pn="section-3.1.2.1-4.1">The "client-identity" node configures a "username" and authentication methods,
                each enabled by a "feature" statement defined in <xref target="client-features" format="default" sectionFormat="of" derivedContent="Section 3.1.1"/>.</li>
              <li pn="section-3.1.2.1-4.2">The "server-authentication" node configures trust anchors for
                authenticating the SSH server, with each option enabled by a "feature" statement.</li>
              <li pn="section-3.1.2.1-4.3">The "transport-params" node, which must be enabled by a feature, configures
                parameters for the SSH sessions established by this configuration.</li>
              <li pn="section-3.1.2.1-4.4">The "keepalives" node, which must be enabled by a feature, configures
                a "presence" container for testing the aliveness of the SSH server.  The
                aliveness-test occurs at the SSH protocol layer.</li>
              <li pn="section-3.1.2.1-4.5">
                <t indent="0" pn="section-3.1.2.1-4.5.1">For the referenced grouping statements:
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-3.1.2.1-4.5.2">
                  <li pn="section-3.1.2.1-4.5.2.1">The "inline-or-keystore-asymmetric-key-grouping" grouping is
                    discussed in <xref section="2.1.3.4" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.1.3.4" derivedContent="RFC9642"/>.</li>
                  <li pn="section-3.1.2.1-4.5.2.2">The "inline-or-keystore-end-entity-cert-with-key-grouping" grouping is
                    discussed in <xref section="2.1.3.6" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.1.3.6" derivedContent="RFC9642"/>.</li>
                  <li pn="section-3.1.2.1-4.5.2.3">The "inline-or-truststore-public-keys-grouping" grouping is
                    discussed in <xref section="2.1.3.4" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.1.3.4" derivedContent="RFC9641"/>.</li>
                  <li pn="section-3.1.2.1-4.5.2.4">The "inline-or-truststore-certs-grouping" grouping is
                    discussed in <xref section="2.1.3.3" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.1.3.3" derivedContent="RFC9641"/>.</li>
                  <li pn="section-3.1.2.1-4.5.2.5">The "transport-params-grouping" grouping is discussed in
                  <xref target="transport-params-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.2.1"/> in this document.</li>
                </ul>
              </li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-3.1.3">
          <name slugifiedName="name-protocol-accessible-nodes-2">Protocol-Accessible Nodes</name>
          <t indent="0" pn="section-3.1.3-1">The "ietf-ssh-client" module defines only "grouping" statements that are
            used by other modules to instantiate protocol-accessible nodes.   Thus, this
            module, when implemented, does not itself define any protocol-accessible nodes.</t>
        </section>
      </section>
      <section anchor="client-examples" numbered="true" removeInRFC="false" toc="include" pn="section-3.2">
        <name slugifiedName="name-example-usage-2">Example Usage</name>
        <t indent="0" pn="section-3.2-1">This section presents two examples showing the "ssh-client-grouping"
        grouping populated with some data. These examples are effectively the same,
        except the first configures the client identity using an inlined key,
        while the second uses a key configured in a keystore. Both examples
        are consistent with the examples presented in
        <xref section="2.2.1" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.2.1" derivedContent="RFC9641"/> and
        <xref section="2.2.1" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.2.1" derivedContent="RFC9642"/>.</t>
        <t indent="0" pn="section-3.2-2">The following configuration example uses inline-definitions for the
          client identity and server authentication:
        </t>
        <sourcecode type="xml" markers="false" pn="section-3.2-3">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;!-- The outermost element below doesn't exist in the data model. --&gt;
&lt;!--  It simulates if the "grouping" were a "container" instead.  --&gt;

&lt;ssh-client
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-client"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;

  &lt;!-- how this client will authenticate itself to the server --&gt;
  &lt;client-identity&gt;
    &lt;username&gt;foobar&lt;/username&gt;
    &lt;public-key&gt;
      &lt;inline-definition&gt;
        &lt;private-key-format&gt;ct:rsa-private-key-format&lt;/private-key-f\
ormat&gt;
        &lt;cleartext-private-key&gt;BASE64VALUE=&lt;/cleartext-private-key&gt;
      &lt;/inline-definition&gt;
    &lt;/public-key&gt;
  &lt;/client-identity&gt;

  &lt;!-- which host keys will this client trust --&gt;
  &lt;server-authentication&gt;
    &lt;ssh-host-keys&gt;
      &lt;inline-definition&gt;
        &lt;public-key&gt;
          &lt;name&gt;corp-fw1&lt;/name&gt;
          &lt;public-key-format&gt;ct:ssh-public-key-format&lt;/public-key-fo\
rmat&gt;
          &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
        &lt;/public-key&gt;
        &lt;public-key&gt;
          &lt;name&gt;corp-fw2&lt;/name&gt;
          &lt;public-key-format&gt;ct:ssh-public-key-format&lt;/public-key-fo\
rmat&gt;
          &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
        &lt;/public-key&gt;
      &lt;/inline-definition&gt;
    &lt;/ssh-host-keys&gt;
    &lt;ca-certs&gt;
      &lt;inline-definition&gt;
        &lt;certificate&gt;
          &lt;name&gt;Server Cert Issuer #1&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
        &lt;certificate&gt;
          &lt;name&gt;Server Cert Issuer #2&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
      &lt;/inline-definition&gt;
    &lt;/ca-certs&gt;
    &lt;ee-certs&gt;
      &lt;inline-definition&gt;
        &lt;certificate&gt;
          &lt;name&gt;My Application #1&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
        &lt;certificate&gt;
          &lt;name&gt;My Application #2&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
      &lt;/inline-definition&gt;
    &lt;/ee-certs&gt;
  &lt;/server-authentication&gt;

  &lt;keepalives&gt;
    &lt;max-wait&gt;30&lt;/max-wait&gt;
    &lt;max-attempts&gt;3&lt;/max-attempts&gt;
  &lt;/keepalives&gt;

&lt;/ssh-client&gt;
</sourcecode>
        <t indent="0" pn="section-3.2-4">The following configuration example uses central-keystore-references for the
          client identity and central-truststore-references for server authentication
          from the keystore:
        </t>
        <sourcecode type="xml" markers="false" pn="section-3.2-5">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;!-- The outermost element below doesn't exist in the data model. --&gt;
&lt;!--  It simulates if the "grouping" were a "container" instead.  --&gt;

&lt;ssh-client
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-client"
  xmlns:algs="urn:ietf:params:xml:ns:yang:ietf-ssh-common"&gt;

  &lt;!-- how this client will authenticate itself to the server --&gt;
  &lt;client-identity&gt;
    &lt;username&gt;foobar&lt;/username&gt;
    &lt;public-key&gt;
      &lt;central-keystore-reference&gt;ssh-rsa-key&lt;/central-keystore-refe\
rence&gt;
    &lt;/public-key&gt;
    &lt;certificate&gt;
      &lt;central-keystore-reference&gt;
        &lt;asymmetric-key&gt;ssh-rsa-key-with-cert&lt;/asymmetric-key&gt;
        &lt;certificate&gt;ex-rsa-cert2&lt;/certificate&gt;
      &lt;/central-keystore-reference&gt;
    &lt;/certificate&gt;
  &lt;/client-identity&gt;

  &lt;!-- which host-keys will this client trust --&gt;
  &lt;server-authentication&gt;
    &lt;ssh-host-keys&gt;
      &lt;central-truststore-reference&gt;trusted-ssh-public-keys&lt;/central\
-truststore-reference&gt;
    &lt;/ssh-host-keys&gt;
    &lt;ca-certs&gt;
      &lt;central-truststore-reference&gt;trusted-server-ca-certs&lt;/central\
-truststore-reference&gt;
    &lt;/ca-certs&gt;
    &lt;ee-certs&gt;
      &lt;central-truststore-reference&gt;trusted-server-ee-certs&lt;/central\
-truststore-reference&gt;
    &lt;/ee-certs&gt;
  &lt;/server-authentication&gt;

  &lt;keepalives&gt;
    &lt;max-wait&gt;30&lt;/max-wait&gt;
    &lt;max-attempts&gt;3&lt;/max-attempts&gt;
  &lt;/keepalives&gt;

&lt;/ssh-client&gt;
</sourcecode>
      </section>
      <section anchor="client-yang-module" numbered="true" removeInRFC="false" toc="include" pn="section-3.3">
        <name slugifiedName="name-yang-module-2">YANG Module</name>
        <t indent="0" pn="section-3.3-1">This YANG module has normative references to <xref target="RFC4252" format="default" sectionFormat="of" derivedContent="RFC4252"/>,
        <xref target="RFC4254" format="default" sectionFormat="of" derivedContent="RFC4254"/>, <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>, <xref target="RFC9640" format="default" sectionFormat="of" derivedContent="RFC9640"/>,
        <xref target="RFC9641" format="default" sectionFormat="of" derivedContent="RFC9641"/>, and <xref target="RFC9642" format="default" sectionFormat="of" derivedContent="RFC9642"/>.</t>
        <sourcecode type="yang" markers="true" name="ietf-ssh-client@2024-10-10.yang" pn="section-3.3-2">
module ietf-ssh-client {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ssh-client";
  prefix sshc;

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

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

  import ietf-truststore {
    prefix ts;
    reference
      "RFC 9641: A YANG Data Model for a Truststore";
  }

  import ietf-keystore {
    prefix ks;
    reference
      "RFC 9642: A YANG Data Model for a Keystore";
  }

  import ietf-ssh-common {
    prefix sshcmn;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  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 a reusable grouping for SSH clients that
     can be used as a basis for specific SSH client instances.

     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 9644
     (https://www.rfc-editor.org/info/rfc9644); see the RFC
     itself for full legal notices.";

  revision 2024-10-10 {
    description
      "Initial version.";
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  // Features

  feature ssh-client-keepalives {
    description
      "SSH keepalive parameters are configurable for
       SSH clients on the server implementing this feature.";
  }

  feature client-ident-publickey {
    description
      "Indicates that the 'publickey' authentication type, per
       RFC 4252, is supported for client identification.
       The 'publickey' authentication type is required by
       RFC 4252, but common implementations allow it to
       be disabled.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature client-ident-password {
    description
      "Indicates that the 'password' authentication type, per
       RFC 4252, is supported for client identification.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature client-ident-hostbased {
    description
      "Indicates that the 'hostbased' authentication type, per
       RFC 4252, is supported for client identification.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature client-ident-none {
    description
      "Indicates that the 'none' authentication type, per
       RFC 4252, is supported for client identification.
       It is NOT RECOMMENDED to enable this feature.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  // Groupings

  grouping ssh-client-grouping {
    description
      "A reusable grouping for configuring an SSH client without
       any consideration for how an underlying TCP session is
       established.

       Note that this grouping uses fairly typical descendant
       node names such that a nesting of 'uses' statements will
       have name conflicts.  It is intended that the consuming
       data model will resolve the issue (e.g., by wrapping
       the 'uses' statement in a container called
       'ssh-client-parameters').  This model purposely does
       not do this itself so as to provide maximum flexibility
       to consuming models.";

    container client-identity {
      nacm:default-deny-write;
      description
        "The username and authentication methods for the client.
         The authentication methods are unordered.  Clients may
         initially send any configured method or, per Section 5.2 of
         RFC 4252, send the 'none' method to prompt the server
         to provide a list of productive methods.  Whenever a
         choice amongst methods arises, implementations SHOULD
         use a default ordering that prioritizes automation
         over human interaction.";
      leaf username {
        type string;
        description
          "The username of this user.  This will be the username
           used, for instance, to log into an SSH server.";
      }
      container public-key {
        if-feature "client-ident-publickey";
        presence
          "Indicates that public-key-based authentication has been
           configured.  This statement is present so the mandatory
           descendant nodes do not imply that this node must be
           configured.";
        description
          "A locally defined or referenced asymmetric key
           pair to be used for client identification.";
        reference
          "RFC 9642: A YANG Data Model for a Keystore";
        uses ks:inline-or-keystore-asymmetric-key-grouping {
          refine "inline-or-keystore/inline/inline-definition" {
            must 'not(public-key-format) or derived-from-or-self'
               + '(public-key-format, "ct:ssh-public-key-format")';
          }
          refine "inline-or-keystore/central-keystore/"
               + "central-keystore-reference" {
            must 'not(deref(.)/../ks:public-key-format) or derived-'
               + 'from-or-self(deref(.)/../ks:public-key-format, '
               + '"ct:ssh-public-key-format")';
          }
        }
      }
      container password {
        if-feature "client-ident-password";
        presence
          "Indicates that password-based authentication has been
           configured.  This statement is present so the mandatory
           descendant nodes do not imply that this node must be
           configured.";
        description
          "A password to be used to authenticate the client's
           identity.";
        uses ct:password-grouping;
      }
      container hostbased {
        if-feature "client-ident-hostbased";
        presence
          "Indicates that host-based authentication is configured.
           This statement is present so the mandatory descendant
           nodes do not imply that this node must be configured.";
        description
          "A locally defined or referenced asymmetric key
           pair to be used for host identification.";
        reference
          "RFC 9642: A YANG Data Model for a Keystore";
        uses ks:inline-or-keystore-asymmetric-key-grouping {
          refine "inline-or-keystore/inline/inline-definition" {
            must 'not(public-key-format) or derived-from-or-self('
               + 'public-key-format, "ct:ssh-public-key-format")';
          }
          refine "inline-or-keystore/central-keystore/"
               + "central-keystore-reference" {
            must 'not(deref(.)/../ks:public-key-format) or derived-'
               + 'from-or-self(deref(.)/../ks:public-key-format, '
               + '"ct:ssh-public-key-format")';
          }
        }
      }
      leaf none {
        if-feature "client-ident-none";
        type empty;
        description
          "Indicates that the 'none' algorithm is used for client
           identification.";
      }
      container certificate {
        if-feature "sshcmn:ssh-x509-certs";
        presence
          "Indicates that certificate-based authentication has been
           configured.  This statement is present so the mandatory
           descendant nodes do not imply that this node must be
           configured.";
        description
          "A locally defined or referenced certificate
           to be used for client identification.";
        reference
          "RFC 9642: A YANG Data Model for a Keystore";
        uses
          ks:inline-or-keystore-end-entity-cert-with-key-grouping {
          refine "inline-or-keystore/inline/inline-definition" {
            must 'not(public-key-format) or derived-from-or-self('
               + 'public-key-format, "ct:subject-public-key-info-'
               + 'format")';
          }
          refine "inline-or-keystore/central-keystore/"
               + "central-keystore-reference/asymmetric-key" {
            must 'not(deref(.)/../ks:public-key-format) or derived-'
               + 'from-or-self(deref(.)/../ks:public-key-format, '
               + '"ct:subject-public-key-info-format")';
          }
        }
      }
    } // container client-identity

    container server-authentication {
      nacm:default-deny-write;
      must 'ssh-host-keys or ca-certs or ee-certs';
      description
        "Specifies how the SSH client can authenticate SSH servers.
         Any combination of authentication methods is additive and
         unordered.";
      container ssh-host-keys {
        presence
          "Indicates that the SSH host key have been configured.
           This statement is present so the mandatory descendant
           nodes do not imply that this node must be configured.";
        description
          "A bag of SSH host keys used by the SSH client to
           authenticate SSH server host keys.  A server host key
           is authenticated if it is an exact match to a
           configured SSH host key.";
        reference
          "RFC 9641: A YANG Data Model for a Truststore";
        uses ts:inline-or-truststore-public-keys-grouping {
          refine
            "inline-or-truststore/inline/inline-definition/public"
            + "-key" {
            must 'derived-from-or-self(public-key-format,'
               + ' "ct:ssh-public-key-format")';
          }
          refine "inline-or-truststore/central-truststore/"
               + "central-truststore-reference" {
            must 'not(deref(.)/../ts:public-key/ts:public-key-'
               + 'format[not(derived-from-or-self(., "ct:ssh-'
               + 'public-key-format"))])';
          }
        }
      }
      container ca-certs {
        if-feature "sshcmn:ssh-x509-certs";
        presence
          "Indicates that the CA certificates have been configured.
           This statement is present so the mandatory descendant
           nodes do not imply that this node must be configured.";
        description
          "A set of Certification Authority (CA) certificates used by
           the SSH client to authenticate SSH servers.  A server
           is authenticated if its certificate has a valid chain
           of trust to a configured CA certificate.";
        reference
          "RFC 9641: A YANG Data Model for a Truststore";
        uses ts:inline-or-truststore-certs-grouping;
      }
      container ee-certs {
        if-feature "sshcmn:ssh-x509-certs";
        presence
          "Indicates that the EE certificates have been configured.
           This statement is present so the mandatory descendant
           nodes do not imply that this node must be configured.";
        description
          "A set of end-entity (EE) certificates used by the SSH
           client to authenticate SSH servers.  A server is
           authenticated if its certificate is an exact match to a
           configured end-entity certificate.";
        reference
          "RFC 9641: A YANG Data Model for a Truststore";
        uses ts:inline-or-truststore-certs-grouping;
      }
    } // container server-authentication

    container transport-params {
      nacm:default-deny-write;
      if-feature "sshcmn:transport-params";
      description
        "Configurable parameters of the SSH transport layer.";
      uses sshcmn:transport-params-grouping;
    } // container transport-parameters

    container keepalives {
      nacm:default-deny-write;
      if-feature "ssh-client-keepalives";
      presence
        "Indicates that the SSH client proactively tests the
         aliveness of the remote SSH server.";
      description
        "Configures the keepalive policy to proactively test
         the aliveness of the SSH server.  An unresponsive SSH
         server is dropped after approximately max-wait *
         max-attempts seconds.  Per Section 4 of RFC 4254,
         the SSH client SHOULD send an SSH_MSG_GLOBAL_REQUEST
         message with a purposely nonexistent 'request name'
         value (e.g., keepalive@example.com) and the 'want reply'
         value set to '1'.";
      reference
        "RFC 4254: The Secure Shell (SSH) Connection Protocol";
      leaf max-wait {
        type uint16 {
          range "1..max";
        }
        units "seconds";
        default "30";
        description
          "Sets the amount of time in seconds after which an
           SSH-level message will be sent to test the aliveness
           of the SSH server if no data has been received from the
           SSH server.";
      }
      leaf max-attempts {
        type uint8;
        default "3";
        description
          "Sets the maximum number of sequential keepalive
           messages that can fail to obtain a response from
           the SSH server before assuming the SSH server is
           no longer alive.";
      }
    } // container keepalives
  } // grouping ssh-client-grouping

}
</sourcecode>
      </section>
    </section>
    <section anchor="ssh-server-model" numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-the-ietf-ssh-server-module">The "ietf-ssh-server" Module</name>
      <t indent="0" pn="section-4-1">This section defines a YANG 1.1 module called
        "ietf-ssh-server".  A high-level overview of the module is provided in
        <xref target="server-overview" format="default" sectionFormat="of" derivedContent="Section 4.1"/>. Examples illustrating the module's use
        are provided in <xref target="server-examples" format="default" sectionFormat="of" derivedContent="Section 4.2"/> ("Example Usage"). The YANG
        module itself is defined in <xref target="server-yang-module" format="default" sectionFormat="of" derivedContent="Section 4.3"/>.</t>
      <section anchor="server-overview" numbered="true" removeInRFC="false" toc="include" pn="section-4.1">
        <name slugifiedName="name-data-model-overview-3">Data Model Overview</name>
        <t indent="0" pn="section-4.1-1">This section provides an overview of the "ietf-ssh-server" module
          in terms of its features and groupings.</t>
        <section anchor="server-features" toc="exclude" numbered="true" removeInRFC="false" pn="section-4.1.1">
          <name slugifiedName="name-features-3">Features</name>
          <t indent="0" pn="section-4.1.1-1">The following diagram lists all the "feature" statements
            defined in the "ietf-ssh-server" module:</t>
          <sourcecode type="yangree" markers="false" pn="section-4.1.1-2">
Features:
  +-- ssh-server-keepalives
  +-- local-users-supported
  +-- local-user-auth-publickey {local-users-supported}?
  +-- local-user-auth-password {local-users-supported}?
  +-- local-user-auth-hostbased {local-users-supported}?
  +-- local-user-auth-none {local-users-supported}?
</sourcecode>
          <t indent="0" pn="section-4.1.1-3">The diagram above uses syntax that is similar to but not
            defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
          <t indent="0" pn="section-4.1.1-4">Please refer to the YANG module for a description of each feature.</t>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-4.1.2">
          <name slugifiedName="name-groupings-3">Groupings</name>
          <t indent="0" pn="section-4.1.2-1">The "ietf-ssh-server" module defines the following "grouping" statement:</t>
          <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-4.1.2-2">
            <li pn="section-4.1.2-2.1">ssh-server-grouping</li>
          </ul>
          <t indent="0" pn="section-4.1.2-3">This grouping is presented in the following subsection.</t>
          <section anchor="ssh-server-grouping" numbered="true" removeInRFC="false" toc="exclude" pn="section-4.1.2.1">
            <name slugifiedName="name-the-ssh-server-grouping-gro">The "ssh-server-grouping" Grouping</name>
            <t indent="0" pn="section-4.1.2.1-1">The following tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> illustrates the
              "ssh-server-grouping" grouping:</t>
            <sourcecode type="yangtree" markers="false" pn="section-4.1.2.1-2">
=============== NOTE: '\' line wrapping per RFC 8792 ================

  grouping ssh-server-grouping:
    +-- server-identity
    |  +-- host-key* [name]
    |     +-- name                string
    |     +-- (host-key-type)
    |        +--:(public-key)
    |        |  +-- public-key
    |        |     +---u ks:inline-or-keystore-asymmetric-key-groupi\
ng
    |        +--:(certificate)
    |           +-- certificate {sshcmn:ssh-x509-certs}?
    |              +---u ks:inline-or-keystore-end-entity-cert-with-\
key-grouping
    +-- client-authentication
    |  +-- users {local-users-supported}?
    |  |  +-- user* [name]
    |  |     +-- name          string
    |  |     +-- public-keys! {local-user-auth-publickey}?
    |  |     |  +---u ts:inline-or-truststore-public-keys-grouping
    |  |     +-- password
    |  |     |  +-- hashed-password?   ianach:crypt-hash
    |  |     |  |       {local-user-auth-password}?
    |  |     |  +--ro last-modified?     yang:date-and-time
    |  |     +-- hostbased! {local-user-auth-hostbased}?
    |  |     |  +---u ts:inline-or-truststore-public-keys-grouping
    |  |     +-- none?          empty {local-user-auth-none}?
    |  +-- ca-certs! {sshcmn:ssh-x509-certs}?
    |  |  +---u ts:inline-or-truststore-certs-grouping
    |  +-- ee-certs! {sshcmn:ssh-x509-certs}?
    |     +---u ts:inline-or-truststore-certs-grouping
    +-- transport-params {sshcmn:transport-params}?
    |  +---u sshcmn:transport-params-grouping
    +-- keepalives! {ssh-server-keepalives}?
       +-- max-wait?       uint16
       +-- max-attempts?   uint8
</sourcecode>
            <t indent="0" pn="section-4.1.2.1-3">Comments:</t>
            <ul bare="false" empty="false" indent="3" spacing="normal" pn="section-4.1.2.1-4">
              <li pn="section-4.1.2.1-4.1">The "server-identity" node configures the authentication methods the
                server can use to identify itself to clients.  The ability to use a
                certificate is enabled by a "feature".</li>
              <li pn="section-4.1.2.1-4.2">The "client-authentication" node configures trust anchors for
                authenticating the SSH client, with each option enabled by a "feature" statement.</li>
              <li pn="section-4.1.2.1-4.3">The "transport-params" node, which must be enabled by a feature, configures
                parameters for the SSH sessions established by this configuration.</li>
              <li pn="section-4.1.2.1-4.4">The "keepalives" node, which must be enabled by a feature, configures
                a "presence" container for testing the aliveness of the SSH client.  The
                aliveness-test occurs at the SSH protocol layer.</li>
              <li pn="section-4.1.2.1-4.5">
                <t indent="0" pn="section-4.1.2.1-4.5.1">For the referenced grouping statements:
                </t>
                <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4.1.2.1-4.5.2">
                  <li pn="section-4.1.2.1-4.5.2.1">The "inline-or-keystore-asymmetric-key-grouping" grouping is
                    discussed in <xref section="2.1.3.4" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.1.3.4" derivedContent="RFC9642"/>.</li>
                  <li pn="section-4.1.2.1-4.5.2.2">The "inline-or-keystore-end-entity-cert-with-key-grouping" grouping is
                    discussed in <xref section="2.1.3.6" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.1.3.6" derivedContent="RFC9642"/>.</li>
                  <li pn="section-4.1.2.1-4.5.2.3">The "inline-or-truststore-public-keys-grouping" grouping is
                    discussed in <xref section="2.1.3.4" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.1.3.4" derivedContent="RFC9641"/>.</li>
                  <li pn="section-4.1.2.1-4.5.2.4">The "inline-or-truststore-certs-grouping" grouping is
                    discussed in <xref section="2.1.3.3" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.1.3.3" derivedContent="RFC9641"/>.</li>
                  <li pn="section-4.1.2.1-4.5.2.5">The "transport-params-grouping" grouping is discussed in
                  <xref target="transport-params-grouping" format="default" sectionFormat="of" derivedContent="Section 2.1.2.1"/> in this document.</li>
                </ul>
              </li>
            </ul>
          </section>
        </section>
        <section toc="exclude" numbered="true" removeInRFC="false" pn="section-4.1.3">
          <name slugifiedName="name-protocol-accessible-nodes-3">Protocol-Accessible Nodes</name>
          <t indent="0" pn="section-4.1.3-1">The "ietf-ssh-server" module defines only "grouping" statements that are
            used by other modules to instantiate protocol-accessible nodes.   Thus, this
            module, when implemented, does not itself define any protocol-accessible nodes.</t>
        </section>
      </section>
      <section anchor="server-examples" numbered="true" removeInRFC="false" toc="include" pn="section-4.2">
        <name slugifiedName="name-example-usage-3">Example Usage</name>
        <t indent="0" pn="section-4.2-1">This section presents two examples showing the "ssh-server-grouping"
        grouping populated with some data. These examples are effectively the same,
        except the first configures the server identity using an inlined key,
        while the second uses a key configured in a keystore. Both examples
        are consistent with the examples presented in
        <xref section="2.2.1" target="RFC9641" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9641#section-2.2.1" derivedContent="RFC9641"/> and
        <xref section="2.2.1" target="RFC9642" format="default" sectionFormat="of" derivedLink="https://rfc-editor.org/rfc/rfc9642#section-2.2.1" derivedContent="RFC9642"/>.</t>
        <t indent="0" pn="section-4.2-2">The following configuration example uses inline-definitions for the
          server identity and client authentication:
        </t>
        <sourcecode type="xml" markers="false" pn="section-4.2-3">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;!-- The outermost element below doesn't exist in the data model. --&gt;
&lt;!--  It simulates if the "grouping" were a "container" instead.  --&gt;

&lt;ssh-server
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-server"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"&gt;

  &lt;!-- the host-key this SSH server will present --&gt;
  &lt;server-identity&gt;
    &lt;host-key&gt;
      &lt;name&gt;my-pubkey-based-host-key&lt;/name&gt;
      &lt;public-key&gt;
        &lt;inline-definition&gt;
          &lt;private-key-format&gt;ct:rsa-private-key-format&lt;/private-key\
-format&gt;
          &lt;cleartext-private-key&gt;BASE64VALUE=&lt;/cleartext-private-key&gt;
        &lt;/inline-definition&gt;
      &lt;/public-key&gt;
    &lt;/host-key&gt;
    &lt;host-key&gt;
      &lt;name&gt;my-cert-based-host-key&lt;/name&gt;
      &lt;certificate&gt;
        &lt;inline-definition&gt;
          &lt;private-key-format&gt;ct:rsa-private-key-format&lt;/private-key\
-format&gt;
          &lt;cleartext-private-key&gt;BASE64VALUE=&lt;/cleartext-private-key&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/inline-definition&gt;
      &lt;/certificate&gt;
    &lt;/host-key&gt;
  &lt;/server-identity&gt;

  &lt;!-- the client credentials this SSH server will trust --&gt;
  &lt;client-authentication&gt;
    &lt;users&gt;
      &lt;user&gt;
        &lt;name&gt;mary&lt;/name&gt;
        &lt;password&gt;
          &lt;hashed-password&gt;$0$example-secret&lt;/hashed-password&gt;
        &lt;/password&gt;
        &lt;public-keys&gt;
          &lt;inline-definition&gt;
            &lt;public-key&gt;
              &lt;name&gt;Mary-Key-1&lt;/name&gt;
              &lt;public-key-format&gt;ct:ssh-public-key-format&lt;/public-ke\
y-format&gt;
              &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
            &lt;/public-key&gt;
            &lt;public-key&gt;
              &lt;name&gt;Mary-Key-2&lt;/name&gt;
              &lt;public-key-format&gt;ct:ssh-public-key-format&lt;/public-ke\
y-format&gt;
              &lt;public-key&gt;BASE64VALUE=&lt;/public-key&gt;
            &lt;/public-key&gt;
          &lt;/inline-definition&gt;
        &lt;/public-keys&gt;
      &lt;/user&gt;
    &lt;/users&gt;
    &lt;ca-certs&gt;
      &lt;inline-definition&gt;
        &lt;certificate&gt;
          &lt;name&gt;Identity Cert Issuer #1&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
        &lt;certificate&gt;
          &lt;name&gt;Identity Cert Issuer #2&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
      &lt;/inline-definition&gt;
    &lt;/ca-certs&gt;
    &lt;ee-certs&gt;
      &lt;inline-definition&gt;
        &lt;certificate&gt;
          &lt;name&gt;Application #1&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
        &lt;certificate&gt;
          &lt;name&gt;Application #2&lt;/name&gt;
          &lt;cert-data&gt;BASE64VALUE=&lt;/cert-data&gt;
        &lt;/certificate&gt;
      &lt;/inline-definition&gt;
    &lt;/ee-certs&gt;
  &lt;/client-authentication&gt;

  &lt;keepalives&gt;
    &lt;max-wait&gt;30&lt;/max-wait&gt;
    &lt;max-attempts&gt;3&lt;/max-attempts&gt;
  &lt;/keepalives&gt;

&lt;/ssh-server&gt;
</sourcecode>
        <t indent="0" pn="section-4.2-4">The following configuration example uses central-keystore-references for the
          server identity and central-truststore-references for client authentication
          from the keystore:
        </t>
        <sourcecode type="xml" markers="false" pn="section-4.2-5">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;!-- The outermost element below doesn't exist in the data model. --&gt;
&lt;!--  It simulates if the "grouping" were a "container" instead.  --&gt;

&lt;ssh-server
  xmlns="urn:ietf:params:xml:ns:yang:ietf-ssh-server"&gt;

  &lt;!-- the host-key this SSH server will present --&gt;
  &lt;server-identity&gt;
    &lt;host-key&gt;
      &lt;name&gt;my-pubkey-based-host-key&lt;/name&gt;
      &lt;public-key&gt;
        &lt;central-keystore-reference&gt;ssh-rsa-key&lt;/central-keystore-re\
ference&gt;
      &lt;/public-key&gt;
    &lt;/host-key&gt;
    &lt;host-key&gt;
      &lt;name&gt;my-cert-based-host-key&lt;/name&gt;
      &lt;certificate&gt;
        &lt;central-keystore-reference&gt;
          &lt;asymmetric-key&gt;ssh-rsa-key-with-cert&lt;/asymmetric-key&gt;
          &lt;certificate&gt;ex-rsa-cert2&lt;/certificate&gt;
        &lt;/central-keystore-reference&gt;
      &lt;/certificate&gt;
    &lt;/host-key&gt;
  &lt;/server-identity&gt;

  &lt;!-- the client credentials this SSH server will trust --&gt;
  &lt;client-authentication&gt;
    &lt;users&gt;
      &lt;user&gt;
        &lt;name&gt;mary&lt;/name&gt;
        &lt;password&gt;
          &lt;hashed-password&gt;$0$example-secret&lt;/hashed-password&gt;
        &lt;/password&gt;
        &lt;public-keys&gt;
          &lt;central-truststore-reference&gt;SSH Public Keys for Applicat\
ion A&lt;/central-truststore-reference&gt;
        &lt;/public-keys&gt;
      &lt;/user&gt;
    &lt;/users&gt;
    &lt;ca-certs&gt;
      &lt;central-truststore-reference&gt;trusted-client-ca-certs&lt;/central\
-truststore-reference&gt;
    &lt;/ca-certs&gt;
    &lt;ee-certs&gt;
      &lt;central-truststore-reference&gt;trusted-client-ee-certs&lt;/central\
-truststore-reference&gt;
    &lt;/ee-certs&gt;
  &lt;/client-authentication&gt;

  &lt;keepalives&gt;
    &lt;max-wait&gt;30&lt;/max-wait&gt;
    &lt;max-attempts&gt;3&lt;/max-attempts&gt;
  &lt;/keepalives&gt;

&lt;/ssh-server&gt;
</sourcecode>
      </section>
      <section anchor="server-yang-module" numbered="true" removeInRFC="false" toc="include" pn="section-4.3">
        <name slugifiedName="name-yang-module-3">YANG Module</name>
        <t indent="0" pn="section-4.3-1">This YANG module has normative references to <xref target="RFC4251" format="default" sectionFormat="of" derivedContent="RFC4251"/>, <xref target="RFC4252" format="default" sectionFormat="of" derivedContent="RFC4252"/>,
        <xref target="RFC4253" format="default" sectionFormat="of" derivedContent="RFC4253"/>, <xref target="RFC4254" format="default" sectionFormat="of" derivedContent="RFC4254"/>, <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>, <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/>,
        <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>, <xref target="RFC9640" format="default" sectionFormat="of" derivedContent="RFC9640"/>,
        <xref target="RFC9641" format="default" sectionFormat="of" derivedContent="RFC9641"/>, and
        <xref target="RFC9642" format="default" sectionFormat="of" derivedContent="RFC9642"/>.</t>
        <sourcecode type="yang" markers="true" name="ietf-ssh-server@2024-10-10.yang" pn="section-4.3-2">
module ietf-ssh-server {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ssh-server";
  prefix sshs;

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

  import iana-crypt-hash {
    prefix ianach;
    reference
      "RFC 7317: A YANG Data Model for System Management";
  }

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

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

  import ietf-truststore {
    prefix ts;
    reference
      "RFC 9641: A YANG Data Model for a Truststore";
  }

  import ietf-keystore {
    prefix ks;
    reference
      "RFC 9642: A YANG Data Model for a Keystore";
  }

  import ietf-ssh-common {
    prefix sshcmn;
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  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 a reusable grouping for SSH servers that
     can be used as a basis for specific SSH server instances.

     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 9644
     (https://www.rfc-editor.org/info/rfc9644); see the RFC
     itself for full legal notices.";

  revision 2024-10-10 {
    description
      "Initial version.";
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  // Features

  feature ssh-server-keepalives {
    description
      "SSH keepalive parameters are configurable for
       SSH servers on the server implementing this feature.";
  }

  feature local-users-supported {
    description
      "Indicates that the configuration for users can be
       configured herein, as opposed to in an application-
       specific location.";
  }

  feature local-user-auth-publickey {
    if-feature "local-users-supported";
    description
      "Indicates that the 'publickey' authentication type,
       per RFC 4252, is supported for locally defined users.
       The 'publickey' authentication type is required by
       RFC 4252, but common implementations allow it to
       be disabled.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature local-user-auth-password {
    if-feature "local-users-supported";
    description
      "Indicates that the 'password' authentication type,
       per RFC 4252, is supported for locally defined users.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature local-user-auth-hostbased {
    if-feature "local-users-supported";
    description
      "Indicates that the 'hostbased' authentication type,
       per RFC 4252, is supported for locally defined users.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  feature local-user-auth-none {
    if-feature "local-users-supported";
    description
      "Indicates that the 'none' authentication type, per
       RFC 4252, is supported.  It is NOT RECOMMENDED to
       enable this feature.";
    reference
      "RFC 4252:
        The Secure Shell (SSH) Authentication Protocol";
  }

  // Groupings

  grouping ssh-server-grouping {
    description
      "A reusable grouping for configuring an SSH server without
       any consideration for how underlying TCP sessions are
       established.

       Note that this grouping uses fairly typical descendant
       node names such that a nesting of 'uses' statements will
       have name conflicts.  It is intended that the consuming
       data model will resolve the issue (e.g., by wrapping
       the 'uses' statement in a container called
       'ssh-server-parameters').  This model purposely does
       not do this itself so as to provide maximum flexibility
       to consuming models.";

    container server-identity {
      nacm:default-deny-write;
      description
        "The list of host keys the SSH server will present when
         establishing an SSH connection.";
      list host-key {
        key "name";
        min-elements 1;
        ordered-by user;
        description
          "An ordered list of host keys (see RFC 4251) the SSH
           server will use to construct its ordered list of
           algorithms when sending its SSH_MSG_KEXINIT message,
           as defined in Section 7.1 of RFC 4253.";
        reference
          "RFC 4251: The Secure Shell (SSH) Protocol Architecture
           RFC 4253: The Secure Shell (SSH) Transport Layer
                     Protocol";
        leaf name {
          type string;
          description
            "An arbitrary name for this host key.";
        }
        choice host-key-type {
          mandatory true;
          description
            "The type of host key being specified.";
          container public-key {
            description
              "A locally defined or referenced asymmetric key pair
               to be used for the SSH server's host key.";
            reference
              "RFC 9642: A YANG Data Model for a Keystore";
            uses ks:inline-or-keystore-asymmetric-key-grouping {
              refine "inline-or-keystore/inline/inline-definition" {
                must 'not(public-key-format) or derived-from-or-self'
                 + '(public-key-format, "ct:ssh-public-key-format")';

              }
              refine "inline-or-keystore/central-keystore/"
                   + "central-keystore-reference" {
                must 'not(deref(.)/../ks:public-key-format) or '
                   + 'derived-from-or-self(deref(.)/../ks:public-'
                   + 'key-format, "ct:ssh-public-key-format")';
              }
            }
          }
          container certificate {
            if-feature "sshcmn:ssh-x509-certs";
            description
              "A locally defined or referenced end-entity
               certificate to be used for the SSH server's
               host key.";
            reference
              "RFC 9642: A YANG Data Model for a Keystore";
            uses
            ks:inline-or-keystore-end-entity-cert-with-key-grouping{
              refine "inline-or-keystore/inline/inline-definition" {
                must 'not(public-key-format) or derived-from-or-self'
                   + '(public-key-format, "ct:subject-public-key-'
                   + 'info-format")';
              }
              refine "inline-or-keystore/central-keystore/"
                   + "central-keystore-reference/asymmetric-key" {
                must 'not(deref(.)/../ks:public-key-format) or '
                   + 'derived-from-or-self(deref(.)/../ks:public-key'
                   + '-format, "ct:subject-public-key-info-format")';
              }
            }
          }
        }
      }
    } // container server-identity

    container client-authentication {
      nacm:default-deny-write;
      description
        "Specifies how the SSH server can be configured to
         authenticate SSH clients.  See RFC 4252 for a general
         discussion about SSH authentication.";
      reference
        "RFC 4252: The Secure Shell (SSH) Authentication Protocol";
      container users {
        if-feature "local-users-supported";
        description
          "A list of locally configured users.";
        list user {
          key "name";
          description
            "A locally configured user.

             The server SHOULD derive the list of authentication
             'method names' returned to the SSH client from the
             descendant nodes configured herein, per Sections
             5.1 and 5.2 of RFC 4252.

             The authentication methods are unordered.  Clients
             must authenticate to all configured methods.
             Whenever a choice amongst methods arises,
             implementations SHOULD use a default ordering
             that prioritizes automation over human interaction.";
          leaf name {
            type string;
            description
              "The 'username' for the SSH client, as defined in
               the SSH_MSG_USERAUTH_REQUEST message in RFC 4253.";
            reference
              "RFC 4253: The Secure Shell (SSH) Transport Layer
                         Protocol";
          }
          container public-keys {
            if-feature "local-user-auth-publickey";
            presence
              "Indicates that public keys have been configured.
               This statement is present so the mandatory descendant
               nodes do not imply that this node must be
               configured.";
            description
              "A set of SSH public keys may be used by the SSH
               server to authenticate this user.  A user is
               authenticated if its public key is an exact
               match to a configured public key.";
            reference
              "RFC 9641: A YANG Data Model for a Truststore";
            uses ts:inline-or-truststore-public-keys-grouping {
              refine "inline-or-truststore/inline/inline-definition/"
                   + "public-key" {
                must 'derived-from-or-self(public-key-format,'
                   + ' "ct:ssh-public-key-format")';
              }
              refine "inline-or-truststore/central-truststore/"
                   + "central-truststore-reference" {
                must 'not(deref(.)/../ts:public-key/ts:public-key-'
                   + 'format[not(derived-from-or-self(., "ct:ssh-'
                   + 'public-key-format"))])';
              }
            }
          }
          container password {
            description
              "A password the SSH server may use to authenticate
               this user.  A user is authenticated if the hash
               of the supplied password matches this value.";
            leaf hashed-password {
              if-feature "local-user-auth-password";
              type ianach:crypt-hash;
              description
                "The password for this user.";
            }
            leaf last-modified {
              type yang:date-and-time;
              config false;
              description
                "Identifies when the password was last set.";
            }
          }
          container hostbased {
            if-feature "local-user-auth-hostbased";
            presence
              "Indicates that host-based (RFC 4252) keys have been
               configured.  This statement is present so the
               mandatory descendant nodes do not imply that this
               node must be configured.";
            description
              "A set of SSH host keys used by the SSH server to
               authenticate this user's host.  A user's host is
               authenticated if its host key is an exact match
               to a configured host key.";
            reference
              "RFC 4252: The Secure Shell (SSH) Authentication
                         Protocol
               RFC 9641: A YANG Data Model for a Truststore";
            uses ts:inline-or-truststore-public-keys-grouping {
              refine "inline-or-truststore/inline/inline-definition/"
                   + "public-key" {
                must 'derived-from-or-self(public-key-format,'
                   + ' "ct:ssh-public-key-format")';
              }
              refine "inline-or-truststore/central-truststore/"
                   + "central-truststore-reference" {
                must 'not(deref(.)/../ts:public-key/ts:public-key-'
                   + 'format[not(derived-from-or-self(., "ct:ssh-'
                   + 'public-key-format"))])';
              }
            }
          }
          leaf none {
            if-feature "local-user-auth-none";
            type empty;
            description
              "Indicates that the 'none' method is configured
               for this user.";
            reference
              "RFC 4252: The Secure Shell (SSH) Authentication
                         Protocol";
          }
        }
      } // users
      container ca-certs {
        if-feature "sshcmn:ssh-x509-certs";
        presence
          "Indicates that CA certificates have been configured.
           This statement is present so the mandatory descendant
           nodes do not imply this node must be configured.";
        description
          "A set of Certification Authority (CA) certificates used by
           the SSH server to authenticate SSH client certificates.
           A client certificate is authenticated if it has a valid
           chain of trust to a configured CA certificate.";
        reference
          "RFC 9641: A YANG Data Model for a Truststore";
        uses ts:inline-or-truststore-certs-grouping;
      }
      container ee-certs {
        if-feature "sshcmn:ssh-x509-certs";
        presence
          "Indicates that EE certificates have been configured.
           This statement is present so the mandatory descendant
           nodes do not imply this node must be configured.";
        description
          "A set of client certificates (i.e., end-entity
           certificates) used by the SSH server to authenticate
           the certificates presented by SSH clients.  A client
           certificate is authenticated if it is an exact match
           to a configured end-entity certificate.";
        reference
          "RFC 9641: A YANG Data Model for a Truststore";
        uses ts:inline-or-truststore-certs-grouping;
      }
    } // container client-authentication

    container transport-params {
      nacm:default-deny-write;
      if-feature "sshcmn:transport-params";
      description
        "Configurable parameters of the SSH transport layer.";
      uses sshcmn:transport-params-grouping;
    } // container transport-params

    container keepalives {
      nacm:default-deny-write;
      if-feature "ssh-server-keepalives";
      presence
        "Indicates that the SSH server proactively tests the
         aliveness of the remote SSH client.";
      description
        "Configures the keepalive policy to proactively test
         the aliveness of the SSH client.  An unresponsive SSH
         client is dropped after approximately max-wait *
         max-attempts seconds.  Per Section 4 of RFC 4254,
         the SSH server SHOULD send an SSH_MSG_GLOBAL_REQUEST
         message with a purposely nonexistent 'request name'
         value (e.g., keepalive@example.com) and the 'want reply'
         value set to '1'.";
      reference
        "RFC 4254: The Secure Shell (SSH) Connection Protocol";
      leaf max-wait {
        type uint16 {
          range "1..max";
        }
        units "seconds";
        default "30";
        description
          "Sets the amount of time in seconds after which
           an SSH-level message will be sent to test the
           aliveness of the SSH client if no data has been
           received from the SSH client.";
      }
      leaf max-attempts {
        type uint8;
        default "3";
        description
          "Sets the maximum number of sequential keepalive
           messages that can fail to obtain a response from
           the SSH client before assuming the SSH client is
           no longer alive.";
      }
    }
  } // grouping ssh-server-grouping

}
</sourcecode>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-5-1">The three IETF YANG modules in this document define groupings and will
        not be deployed as standalone modules. Their security implications
        may be context-dependent based on their use in other modules.  The
        designers of modules that import these groupings must conduct their
      own analysis of the security considerations.</t>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1">
        <name slugifiedName="name-considerations-for-the-iana">Considerations for the "iana-ssh-key-exchange-algs" Module</name>
        <t indent="0" pn="section-5.1-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-5.1-2">The "iana-ssh-key-exchange-algs" YANG module defines a data model
          that is 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"/>.  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-5.1-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-5.1-4">This YANG module defines YANG enumerations for a public IANA-maintained
          registry.</t>
        <t indent="0" pn="section-5.1-5">YANG enumerations are not security-sensitive, as they are statically
          defined in the publicly accessible YANG module.  IANA <bcp14>MAY</bcp14> deprecate
          and/or obsolete enumerations over time as needed to address security
          issues found in the algorithms.</t>
        <t indent="0" pn="section-5.1-6">This module does not define any writable nodes, RPCs, actions,
          or notifications, and thus, the security considerations for such
          are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.2">
        <name slugifiedName="name-considerations-for-the-iana-">Considerations for the "iana-ssh-encryption-algs" Module</name>
        <t indent="0" pn="section-5.2-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-5.2-2">The "iana-ssh-encryption-algs" YANG module defines a data model
          that is 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"/>.  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-5.2-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-5.2-4">This YANG module defines YANG enumerations for a public IANA-maintained
          registry.</t>
        <t indent="0" pn="section-5.2-5">YANG enumerations are not security-sensitive, as they are statically
          defined in the publicly accessible YANG module.</t>
        <t indent="0" pn="section-5.2-6">This module does not define any writable nodes, RPCs, actions,
          or notifications, and thus, the security considerations for such
          are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.3">
        <name slugifiedName="name-considerations-for-the-iana-s">Considerations for the "iana-ssh-mac-algs" Module</name>
        <t indent="0" pn="section-5.3-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-5.3-2">The "iana-ssh-mac-algs" YANG module defines a data model
          that is 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"/>.  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-5.3-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-5.3-4">This YANG module defines YANG enumerations for a public IANA-maintained
          registry.</t>
        <t indent="0" pn="section-5.3-5">YANG enumerations are not security-sensitive, as they are statically
          defined in the publicly accessible YANG module.</t>
        <t indent="0" pn="section-5.3-6">This module does not define any writable nodes, RPCs, actions,
          or notifications, and thus, the security considerations for such
          are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.4">
        <name slugifiedName="name-considerations-for-the-iana-ss">Considerations for the "iana-ssh-public-key-algs" Module</name>
        <t indent="0" pn="section-5.4-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-5.4-2">The "iana-ssh-public-key-algs" YANG module defines a data model
          that is 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"/>. 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-5.4-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-5.4-4">This YANG module defines YANG enumerations for a public IANA-maintained
          registry.</t>
        <t indent="0" pn="section-5.4-5">YANG enumerations are not security-sensitive, as they are statically
          defined in the publicly accessible YANG module.</t>
        <t indent="0" pn="section-5.4-6">This module does not define any writable nodes, RPCs, actions,
          or notifications, and thus, the security considerations for such
          are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.5">
        <name slugifiedName="name-considerations-for-the-ietf">Considerations for the "ietf-ssh-common" YANG Module</name>
        <t indent="0" pn="section-5.5-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-5.5-2">The "ietf-ssh-common" YANG module defines a data model that is 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"/>. 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-5.5-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-5.5-4">Please be aware that this YANG module uses groupings from
          other YANG modules that define nodes that may be considered
          sensitive or vulnerable in network environments.  Please
          review the security considerations for dependent YANG modules
          for information as to which nodes may be considered sensitive
          or vulnerable in network environments.</t>
        <t indent="0" pn="section-5.5-5">None of the readable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-all" extension has not been set for
          any data nodes defined in this module.</t>
        <t indent="0" pn="section-5.5-6">None of the writable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-write" extension has not been set for
          any data nodes defined in this module.</t>
        <t indent="0" pn="section-5.5-7">This module defines the "generate-asymmetric-key-pair" RPC, which may, if
          the "ct:cleartext-private-keys" feature is enabled and the client
          requests it, return the private clear in cleartext form.  It is
          <bcp14>NOT RECOMMENDED</bcp14> for private keys to pass the server's security
          perimeter.</t>
        <t indent="0" pn="section-5.5-8">This module does not define any actions or notifications,
          and thus, the security considerations for such are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.6">
        <name slugifiedName="name-considerations-for-the-ietf-">Considerations for the "ietf-ssh-client" YANG Module</name>
        <t indent="0" pn="section-5.6-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-5.6-2">The "ietf-ssh-client" 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"/>. 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-5.6-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-5.6-4">Please be aware that this YANG module uses groupings from
          other YANG modules that define nodes that may be considered
          sensitive or vulnerable in network environments.  Please
          review the security considerations for dependent YANG modules
          for information as to which nodes may be considered sensitive
          or vulnerable in network environments.</t>
        <t indent="0" pn="section-5.6-5">One readable data node defined in this YANG module may be considered
          sensitive or vulnerable in some network environments. This
          node is as follows:
        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5.6-6">
          <li pn="section-5.6-6.1">
            <t indent="0" pn="section-5.6-6.1.1">The "client-identity/password" node:
            </t>
            <ul empty="true" bare="false" indent="3" spacing="normal" pn="section-5.6-6.1.2">
              <li pn="section-5.6-6.1.2.1">The cleartext "password" node defined in the "ssh-client-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>
        </ul>
        <t indent="0" pn="section-5.6-7">All the writable data nodes defined by this module may be
          considered sensitive or vulnerable in some network environments.
          For instance, any modification to a key or reference to a key
          may dramatically alter the implemented security policy.  For
          this reason, the NACM extension "default-deny-write" has been
          set for all data nodes defined in this module.</t>
        <t indent="0" pn="section-5.6-8">This module does not define any RPCs, actions, or notifications,
          and thus, the security considerations for such are not provided here.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.7">
        <name slugifiedName="name-considerations-for-the-ietf-s">Considerations for the "ietf-ssh-server" YANG Module</name>
        <t indent="0" pn="section-5.7-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-5.7-2">The "ietf-ssh-server" 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"/>. 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-5.7-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-5.7-4">Please be aware that this YANG module uses groupings from
          other YANG modules that define nodes that may be considered
          sensitive or vulnerable in network environments.  Please
          review the security considerations for dependent YANG modules
          for information as to which nodes may be considered sensitive
          or vulnerable in network environments.</t>
        <t indent="0" pn="section-5.7-5">None of the readable data nodes defined in this YANG module are
          considered sensitive or vulnerable in network environments.
          The NACM "default-deny-all" extension has not been set for
          any data nodes defined in this module.</t>
        <t indent="0" pn="section-5.7-6">All the writable data nodes defined by this module may be
          considered sensitive or vulnerable in some network environments.
          For instance, the addition or removal of references to keys,
          certificates, trusted anchors, etc., or even the modification
          of transport or keepalive parameters can dramatically alter
          the implemented security policy.  For this reason, the NACM
          extension "default-deny-write" has been set for all data nodes
          defined in this module.</t>
        <t indent="0" pn="section-5.7-7">This module does not define any RPCs, actions, or notifications,
          and thus, the security considerations for such are not provided here.</t>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.1">
        <name slugifiedName="name-the-ietf-xml-registry">The IETF XML Registry</name>
        <t indent="0" pn="section-6.1-1">IANA has registered seven URIs in the "ns" registry of the
        "IETF XML Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/> as follows.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-2">
          <dt pn="section-6.1-2.1">URI:</dt>
          <dd pn="section-6.1-2.2">urn:ietf:params:xml:ns:yang:iana-ssh-key-exchange-algs</dd>
          <dt pn="section-6.1-2.3">Registrant Contact:</dt>
          <dd pn="section-6.1-2.4">The IESG</dd>
          <dt pn="section-6.1-2.5">XML:</dt>
          <dd pn="section-6.1-2.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-3">
          <dt pn="section-6.1-3.1">URI:</dt>
          <dd pn="section-6.1-3.2">urn:ietf:params:xml:ns:yang:iana-ssh-encryption-algs</dd>
          <dt pn="section-6.1-3.3">Registrant Contact:</dt>
          <dd pn="section-6.1-3.4">The IESG</dd>
          <dt pn="section-6.1-3.5">XML:</dt>
          <dd pn="section-6.1-3.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-4">
          <dt pn="section-6.1-4.1">URI:</dt>
          <dd pn="section-6.1-4.2">urn:ietf:params:xml:ns:yang:iana-ssh-mac-algs</dd>
          <dt pn="section-6.1-4.3">Registrant Contact:</dt>
          <dd pn="section-6.1-4.4">The IESG</dd>
          <dt pn="section-6.1-4.5">XML:</dt>
          <dd pn="section-6.1-4.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-5">
          <dt pn="section-6.1-5.1">URI:</dt>
          <dd pn="section-6.1-5.2">urn:ietf:params:xml:ns:yang:iana-ssh-public-key-algs</dd>
          <dt pn="section-6.1-5.3">Registrant Contact:</dt>
          <dd pn="section-6.1-5.4">The IESG</dd>
          <dt pn="section-6.1-5.5">XML:</dt>
          <dd pn="section-6.1-5.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-6">
          <dt pn="section-6.1-6.1">URI:</dt>
          <dd pn="section-6.1-6.2">urn:ietf:params:xml:ns:yang:ietf-ssh-common</dd>
          <dt pn="section-6.1-6.3">Registrant Contact:</dt>
          <dd pn="section-6.1-6.4">The IESG</dd>
          <dt pn="section-6.1-6.5">XML:</dt>
          <dd pn="section-6.1-6.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-7">
          <dt pn="section-6.1-7.1">URI:</dt>
          <dd pn="section-6.1-7.2">urn:ietf:params:xml:ns:yang:ietf-ssh-client</dd>
          <dt pn="section-6.1-7.3">Registrant Contact:</dt>
          <dd pn="section-6.1-7.4">The IESG</dd>
          <dt pn="section-6.1-7.5">XML:</dt>
          <dd pn="section-6.1-7.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.1-8">
          <dt pn="section-6.1-8.1">URI:</dt>
          <dd pn="section-6.1-8.2">urn:ietf:params:xml:ns:yang:ietf-ssh-server</dd>
          <dt pn="section-6.1-8.3">Registrant Contact:</dt>
          <dd pn="section-6.1-8.4">The IESG</dd>
          <dt pn="section-6.1-8.5">XML:</dt>
          <dd pn="section-6.1-8.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.2">
        <name slugifiedName="name-the-yang-module-names-regis">The YANG Module Names Registry</name>
        <t indent="0" pn="section-6.2-1">IANA has registered seven YANG modules in the "YANG Module Names"
        registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/> as follows.</t>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-2">
          <dt pn="section-6.2-2.1">Name:</dt>
          <dd pn="section-6.2-2.2">iana-ssh-key-exchange-algs</dd>
          <dt pn="section-6.2-2.3">Namespace:</dt>
          <dd pn="section-6.2-2.4">urn:ietf:params:xml:ns:yang:iana-ssh-key-exchange-algs</dd>
          <dt pn="section-6.2-2.5">Prefix:</dt>
          <dd pn="section-6.2-2.6">sshkea</dd>
          <dt pn="section-6.2-2.7">Reference:</dt>
          <dd pn="section-6.2-2.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-3">
          <dt pn="section-6.2-3.1">Name:</dt>
          <dd pn="section-6.2-3.2">iana-ssh-encryption-algs</dd>
          <dt pn="section-6.2-3.3">Namespace:</dt>
          <dd pn="section-6.2-3.4">urn:ietf:params:xml:ns:yang:iana-ssh-encryption-algs</dd>
          <dt pn="section-6.2-3.5">Prefix:</dt>
          <dd pn="section-6.2-3.6">sshea</dd>
          <dt pn="section-6.2-3.7">Reference:</dt>
          <dd pn="section-6.2-3.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-4">
          <dt pn="section-6.2-4.1">Name:</dt>
          <dd pn="section-6.2-4.2">iana-ssh-mac-algs</dd>
          <dt pn="section-6.2-4.3">Namespace:</dt>
          <dd pn="section-6.2-4.4">urn:ietf:params:xml:ns:yang:iana-ssh-mac-algs</dd>
          <dt pn="section-6.2-4.5">Prefix:</dt>
          <dd pn="section-6.2-4.6">sshma</dd>
          <dt pn="section-6.2-4.7">Reference:</dt>
          <dd pn="section-6.2-4.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-5">
          <dt pn="section-6.2-5.1">Name:</dt>
          <dd pn="section-6.2-5.2">iana-ssh-public-key-algs</dd>
          <dt pn="section-6.2-5.3">Namespace:</dt>
          <dd pn="section-6.2-5.4">urn:ietf:params:xml:ns:yang:iana-ssh-public-key-algs</dd>
          <dt pn="section-6.2-5.5">Prefix:</dt>
          <dd pn="section-6.2-5.6">sshpka</dd>
          <dt pn="section-6.2-5.7">Reference:</dt>
          <dd pn="section-6.2-5.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-6">
          <dt pn="section-6.2-6.1">Name:</dt>
          <dd pn="section-6.2-6.2">ietf-ssh-common</dd>
          <dt pn="section-6.2-6.3">Namespace:</dt>
          <dd pn="section-6.2-6.4">urn:ietf:params:xml:ns:yang:ietf-ssh-common</dd>
          <dt pn="section-6.2-6.5">Prefix:</dt>
          <dd pn="section-6.2-6.6">sshcmn</dd>
          <dt pn="section-6.2-6.7">Reference:</dt>
          <dd pn="section-6.2-6.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-7">
          <dt pn="section-6.2-7.1">Name:</dt>
          <dd pn="section-6.2-7.2">ietf-ssh-client</dd>
          <dt pn="section-6.2-7.3">Namespace:</dt>
          <dd pn="section-6.2-7.4">urn:ietf:params:xml:ns:yang:ietf-ssh-client</dd>
          <dt pn="section-6.2-7.5">Prefix:</dt>
          <dd pn="section-6.2-7.6">sshc</dd>
          <dt pn="section-6.2-7.7">Reference:</dt>
          <dd pn="section-6.2-7.8">RFC 9644</dd>
        </dl>
        <dl newline="false" spacing="compact" indent="3" pn="section-6.2-8">
          <dt pn="section-6.2-8.1">Name:</dt>
          <dd pn="section-6.2-8.2">ietf-ssh-server</dd>
          <dt pn="section-6.2-8.3">Namespace:</dt>
          <dd pn="section-6.2-8.4">urn:ietf:params:xml:ns:yang:ietf-ssh-server</dd>
          <dt pn="section-6.2-8.5">Prefix:</dt>
          <dd pn="section-6.2-8.6">sshs</dd>
          <dt pn="section-6.2-8.7">Reference:</dt>
          <dd pn="section-6.2-8.8">RFC 9644</dd>
        </dl>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.3">
        <name slugifiedName="name-considerations-for-the-iana-ssh">Considerations for the "iana-ssh-encryption-algs" Module</name>
        <t indent="0" pn="section-6.3-1">This section follows the template defined in <xref section="4.30.3.1" target="I-D.ietf-netmod-rfc8407bis" format="default" sectionFormat="of" derivedLink="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-17#section-4.30.3.1" derivedContent="YANG-GUIDE"/>.</t>
        <t indent="0" pn="section-6.3-2">This document presents a script (see <xref target="iana-script" format="default" sectionFormat="of" derivedContent="Appendix A"/>) for
          IANA to use to generate the IANA-maintained "iana-ssh-encryption-algs" YANG module.
          The most recent version of the YANG module is available in the "YANG Parameters"
          registry group <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/>.</t>
        <t indent="0" pn="section-6.3-3">IANA has added the following note to the registry:</t>
        <blockquote pn="section-6.3-4">New values must not be directly added to the "iana-ssh-encryption-algs"
          YANG module.  They must instead be added to the "Encryption Algorithm Names" registry of the
          "Secure Shell (SSH) Protocol Parameters" registry group <xref target="IANA-ENC-ALGS" format="default" sectionFormat="of" derivedContent="IANA-ENC-ALGS"/>.</blockquote>
        <t indent="0" pn="section-6.3-5">When a value is added to the "Encryption Algorithm Names" registry, a new "enum"
          statement must be added to the "iana-ssh-encryption-algs" YANG module.  The
          "enum" statement, and substatements thereof, should be defined as follows:</t>
        <dl newline="true" indent="3" spacing="normal" pn="section-6.3-6">
          <dt pn="section-6.3-6.1">enum</dt>
          <dd pn="section-6.3-6.2">Replicates a name from the registry.</dd>
          <dt pn="section-6.3-6.3">value</dt>
          <dd pn="section-6.3-6.4">Contains the decimal value of the IANA-assigned value.</dd>
          <dt pn="section-6.3-6.5">status</dt>
          <dd pn="section-6.3-6.6">Include only if a registration has been deprecated or obsoleted.
            An IANA "Note" containing the word "HISTORIC" maps to YANG status "obsolete".
            Since the registry is unable to express a "<bcp14>SHOULD NOT</bcp14>" recommendation,
            there is no mapping to YANG status "deprecated".</dd>
          <dt pn="section-6.3-6.7">description</dt>
          <dd pn="section-6.3-6.8">Contains "Enumeration for the 'foo-bar' algorithm.", where "foo-bar" is
            a placeholder for the algorithm's name (e.g., "3des-cbc").</dd>
          <dt pn="section-6.3-6.9">reference</dt>
          <dd pn="section-6.3-6.10">Replicates the reference(s) from the registry with the title of the
            document(s) added.</dd>
        </dl>
        <t indent="0" pn="section-6.3-7">Unassigned or reserved values are not present in the module.</t>
        <t indent="0" pn="section-6.3-8">When the "iana-ssh-encryption-algs" YANG module is updated, a new "revision" statement
          with a unique revision date must be added in front of the existing revision statements.
          The "revision" must have a "description" statement explaining why the 
          update occurred and must have a "reference" substatement that points to the 
          document defining the registry update that resulted in this change. For instance:</t>
        <sourcecode type="yang" markers="false" pn="section-6.3-9">
revision 2024-02-02 {
    description
      "This update reflects the update made to the underlying
       Foo Bar registry per RFC XXXX.";
  reference
      "RFC XXXX: Extend the Foo Bars Registry
                 to Support Something Important";
}</sourcecode>
        <t indent="0" pn="section-6.3-10">IANA has added the following note to the "Encryption Algorithm Names"
          registry.</t>
        <blockquote pn="section-6.3-11">When this registry is modified, the YANG module "iana-ssh-encryption-algs"
          <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/> must be updated as defined in RFC 9644.</blockquote>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.4">
        <name slugifiedName="name-considerations-for-the-iana-ssh-">Considerations for the "iana-ssh-mac-algs" Module</name>
        <t indent="0" pn="section-6.4-1">This section follows the template defined in <xref section="4.30.3.1" target="I-D.ietf-netmod-rfc8407bis" format="default" sectionFormat="of" derivedLink="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-17#section-4.30.3.1" derivedContent="YANG-GUIDE"/>.</t>
        <t indent="0" pn="section-6.4-2">This document presents a script (see <xref target="iana-script" format="default" sectionFormat="of" derivedContent="Appendix A"/>) for
          IANA to use to generate the IANA-maintained "iana-ssh-mac-algs" YANG module.
          The most recent version of the YANG module is available in the "YANG Parameters"
          registry group <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/>.</t>
        <t indent="0" pn="section-6.4-3">IANA has added the following note to the registry:</t>
        <blockquote pn="section-6.4-4">New values must not be directly added to the "iana-ssh-mac-algs"
          YANG module.  They must instead be added to the "MAC Algorithm Names" registry of the
          "Secure Shell (SSH) Protocol Parameters" registry group <xref target="IANA-MAC-ALGS" format="default" sectionFormat="of" derivedContent="IANA-MAC-ALGS"/>.</blockquote>
        <t indent="0" pn="section-6.4-5">When a value is added to the "MAC Algorithm Names" registry, a new "enum"
          statement must be added to the "iana-ssh-mac-algs" YANG module.  The
          "enum" statement, and substatements thereof, should be defined as follows:</t>
        <dl newline="true" indent="3" spacing="normal" pn="section-6.4-6">
          <dt pn="section-6.4-6.1">enum</dt>
          <dd pn="section-6.4-6.2">Replicates a name from the registry.</dd>
          <dt pn="section-6.4-6.3">value</dt>
          <dd pn="section-6.4-6.4">Contains the decimal value of the IANA-assigned value.</dd>
          <dt pn="section-6.4-6.5">status</dt>
          <dd pn="section-6.4-6.6">Include only if a registration has been deprecated or obsoleted.</dd>
          <dt pn="section-6.4-6.7">description</dt>
          <dd pn="section-6.4-6.8">Contains "Enumeration for the 'foo-bar' algorithm.", where "foo-bar" is
            a placeholder for the algorithm's name (e.g., "3des-cbc").</dd>
          <dt pn="section-6.4-6.9">reference</dt>
          <dd pn="section-6.4-6.10">Replicates the reference(s) from the registry with the title of the
            document(s) added.</dd>
        </dl>
        <t indent="0" pn="section-6.4-7">Unassigned or reserved values are not present in the module.</t>
        <t indent="0" pn="section-6.4-8">When the "iana-ssh-mac-algs" YANG module is updated, a new "revision" statement
          with a unique revision date must be added in front of the existing revision statements.
          The "revision" must have a "description" statement explaining why the 
          update occurred and must have a "reference" substatement that points to the 
          document defining the registry update that resulted in this change. For instance:</t>
        <sourcecode type="yang" markers="false" pn="section-6.4-9">
revision 2024-10-10 {
    description
      "This update reflects the update made to the underlying
       Foo Bar registry per RFC XXXX.";
  reference
      "RFC XXXX: Extend the Foo Bars Registry
                 to Support Something Important";
}</sourcecode>
        <t indent="0" pn="section-6.4-10">IANA has added the following note to the "MAC Algorithm Names" registry.</t>
        <blockquote pn="section-6.4-11">When this registry is modified, the YANG module "iana-ssh-mac-algs"
          <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/> must be updated as defined in RFC 9644.</blockquote>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.5">
        <name slugifiedName="name-considerations-for-the-iana-ssh-p">Considerations for the "iana-ssh-public-key-algs" Module</name>
        <t indent="0" pn="section-6.5-1">This section follows the template defined in <xref section="4.30.3.1" target="I-D.ietf-netmod-rfc8407bis" format="default" sectionFormat="of" derivedLink="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-17#section-4.30.3.1" derivedContent="YANG-GUIDE"/>.</t>
        <t indent="0" pn="section-6.5-2">This document presents a script (see <xref target="iana-script" format="default" sectionFormat="of" derivedContent="Appendix A"/>) for
          IANA to use to generate the IANA-maintained "iana-ssh-public-key-algs" YANG module.
          The most recent version of the YANG module is available in the "YANG Parameters"
          registry group <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/>.</t>
        <t indent="0" pn="section-6.5-3">IANA has added the following note to the registry:</t>
        <blockquote pn="section-6.5-4">New values must not be directly added to the "iana-ssh-public-key-algs"
          YANG module.  They must instead be added to the "Public Key Algorithm Names" registry of the
          "Secure Shell (SSH) Protocol Parameters" registry group <xref target="IANA-PUBKEY-ALGS" format="default" sectionFormat="of" derivedContent="IANA-PUBKEY-ALGS"/>.</blockquote>
        <t indent="0" pn="section-6.5-5">When a value is added to the "Public Key Algorithm Names" registry, a new "enum"
          statement must be added to the "iana-ssh-public-key-algs" YANG module.  The
          "enum" statement, and substatements thereof, should be defined as follows:</t>
        <dl newline="true" indent="3" spacing="normal" pn="section-6.5-6">
          <dt pn="section-6.5-6.1">enum</dt>
          <dd pn="section-6.5-6.2">Replicates a name from the registry.</dd>
          <dt pn="section-6.5-6.3">value</dt>
          <dd pn="section-6.5-6.4">Contains the decimal value of the IANA-assigned value.</dd>
          <dt pn="section-6.5-6.5">status</dt>
          <dd pn="section-6.5-6.6">Include only if a registration has been deprecated or obsoleted.</dd>
          <dt pn="section-6.5-6.7">description</dt>
          <dd pn="section-6.5-6.8">Contains "Enumeration for the 'foo-bar' algorithm.", where "foo-bar" is
            a placeholder for the algorithm's name (e.g., "3des-cbc").</dd>
          <dt pn="section-6.5-6.9">reference</dt>
          <dd pn="section-6.5-6.10">Replicates the reference(s) from the registry with the title of the
            document(s) added.</dd>
        </dl>
        <t indent="0" pn="section-6.5-7">In the case that the algorithm name ends with "-*", the family of enumerations 
          must be added.  The family of enum algorithm names are generated by replacing
          the "*" character with these strings: "nistp256", "nistp384", "nistp521",
          "1.3.132.0.1", "1.2.840.10045.3.1.1", "1.3.132.0.33", "1.3.132.0.26",
          "1.3.132.0.27", "1.3.132.0.16", "1.3.132.0.36", "1.3.132.0.37", and "1.3.132.0.38".</t>
        <t indent="0" pn="section-6.5-8">Unassigned or reserved values are not present in the module.</t>
        <t indent="0" pn="section-6.5-9">When the "iana-ssh-public-key-algs" YANG module is updated, a new "revision" statement
          with a unique revision date must be added in front of the existing revision statements.
          The "revision" must have a "description" statement explaining why the 
          update occurred and must have a "reference" substatement that points to the 
          document defining the registry update that resulted in this change. For instance:</t>
        <sourcecode type="yang" markers="false" pn="section-6.5-10">
revision 2024-10-10 {
    description
      "This update reflects the update made to the underlying
       Foo Bar registry per RFC XXXX.";
  reference
      "RFC XXXX: Extend the Foo Bars Registry
                 to Support Something Important";
}</sourcecode>
        <t indent="0" pn="section-6.5-11">IANA has added the following note to the "Public Key Algorithm Names" registry.</t>
        <blockquote pn="section-6.5-12">When this registry is modified, the YANG module "iana-ssh-public-key-algs"
          <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/> must be updated as defined in RFC 9644.</blockquote>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.6">
        <name slugifiedName="name-considerations-for-the-iana-ssh-k">Considerations for the "iana-ssh-key-exchange-algs" Module</name>
        <t indent="0" pn="section-6.6-1">This section follows the template defined in <xref section="4.30.3.1" target="I-D.ietf-netmod-rfc8407bis" format="default" sectionFormat="of" derivedLink="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-17#section-4.30.3.1" derivedContent="YANG-GUIDE"/>.</t>
        <t indent="0" pn="section-6.6-2">This document presents a script (see <xref target="iana-script" format="default" sectionFormat="of" derivedContent="Appendix A"/>) for
          IANA to use to generate the IANA-maintained "iana-ssh-key-exchange-algs" YANG module.
          The most recent version of the YANG module is available in the "YANG Parameters"
          registry group <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/>.</t>
        <t indent="0" pn="section-6.6-3">IANA has added the following note to the registry:</t>
        <blockquote pn="section-6.6-4">New values must not be directly added to the "iana-ssh-key-exchange-algs"
          YANG module.  They must instead be added to the "Key Exchange Method Names" registry of the
          "Secure Shell (SSH) Protocol Parameters" registry group <xref target="IANA-KEYEX-ALGS" format="default" sectionFormat="of" derivedContent="IANA-KEYEX-ALGS"/>.</blockquote>
        <t indent="0" pn="section-6.6-5">When a value is added to the "Key Exchange Method Names" registry, a new
          "enum" statement must be added to the "iana-ssh-key-exchange-algs" YANG module.
          The "enum" statement, and substatements thereof, should be defined as follows:</t>
        <dl newline="true" indent="3" spacing="normal" pn="section-6.6-6">
          <dt pn="section-6.6-6.1">enum</dt>
          <dd pn="section-6.6-6.2">Replicates a name from the registry.</dd>
          <dt pn="section-6.6-6.3">value</dt>
          <dd pn="section-6.6-6.4">Contains the decimal value of the IANA-assigned value.</dd>
          <dt pn="section-6.6-6.5">status</dt>
          <dd pn="section-6.6-6.6">Include only if a registration has been deprecated or obsoleted. 
             An IANA "OK to Implement" containing "<bcp14>SHOULD NOT</bcp14>" maps to YANG status "deprecated".
             An IANA "OK to Implement" containing "<bcp14>MUST NOT</bcp14>" maps to YANG status "obsolete".</dd>
          <dt pn="section-6.6-6.7">description</dt>
          <dd pn="section-6.6-6.8">Contains "Enumeration for the 'foo-bar' algorithm.", where "foo-bar" is
            a placeholder for the algorithm's name (e.g., "3des-cbc").</dd>
          <dt pn="section-6.6-6.9">reference</dt>
          <dd pn="section-6.6-6.10">Replicates the reference(s) from the registry with the title of the
            document(s) added.</dd>
        </dl>
        <t indent="0" pn="section-6.6-7">In the case that the algorithm name ends with "-*", the family of enumerations 
          must be added.  The family of enum algorithm names are generated by replacing
          the "*" character with these strings: "nistp256", "nistp384", "nistp521",
          "1.3.132.0.1", "1.2.840.10045.3.1.1", "1.3.132.0.33", "1.3.132.0.26",
          "1.3.132.0.27", "1.3.132.0.16", "1.3.132.0.36", "1.3.132.0.37", and "1.3.132.0.38".</t>
        <t indent="0" pn="section-6.6-8">Unassigned or reserved values are not present in the module.</t>
        <t indent="0" pn="section-6.6-9">When the "iana-ssh-key-exchange-algs" YANG module is updated, a new "revision" statement
          with a unique revision date must be added in front of the existing revision statements.
          The "revision" must have a "description" statement explaining why the 
          update occurred, and must have a "reference" substatement that points to the 
          document defining the registry update that resulted in this change. For instance:</t>
        <sourcecode type="yang" markers="false" pn="section-6.6-10">
revision 2024-10-10 {
    description
      "This update reflects the update made to the underlying
       Foo Bar registry per RFC XXXX.";
  reference
      "RFC XXXX: Extend the Foo Bars Registry
                 to Support Something Important";
}</sourcecode>
        <t indent="0" pn="section-6.6-11">IANA has added the following note to the "Key Exchange Method Names" registry.</t>
        <blockquote pn="section-6.6-12">When this registry is modified, the YANG module "iana-ssh-key-exchange-algs"
          <xref target="IANA-YANG-PARAMETERS" format="default" sectionFormat="of" derivedContent="IANA-YANG-PARAMETERS"/> must be updated as defined in RFC 9644.</blockquote>
      </section>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-netmod-system-config" to="SYSTEM-CONFIG"/>
    <displayreference target="I-D.ietf-netmod-rfc8407bis" to="YANG-GUIDE"/>
    <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-7">
      <name slugifiedName="name-references">References</name>
      <references pn="section-7.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <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="RFC4250" target="https://www.rfc-editor.org/info/rfc4250" quoteTitle="true" derivedAnchor="RFC4250">
          <front>
            <title>The Secure Shell (SSH) Protocol Assigned Numbers</title>
            <author fullname="S. Lehtinen" initials="S." surname="Lehtinen"/>
            <author fullname="C. Lonvick" initials="C." role="editor" surname="Lonvick"/>
            <date month="January" year="2006"/>
            <abstract>
              <t indent="0">This document defines the instructions to the IANA and the initial state of the IANA assigned numbers for the Secure Shell (SSH) protocol. It is intended only for the initialization of the IANA registries referenced in the set of SSH documents. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4250"/>
          <seriesInfo name="DOI" value="10.17487/RFC4250"/>
        </reference>
        <reference anchor="RFC4251" target="https://www.rfc-editor.org/info/rfc4251" quoteTitle="true" derivedAnchor="RFC4251">
          <front>
            <title>The Secure Shell (SSH) Protocol Architecture</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) Protocol is a protocol for secure remote login and other secure network services over an insecure network. This document describes the architecture of the SSH protocol, as well as the notation and terminology used in SSH protocol documents. It also discusses the SSH algorithm naming system that allows local extensions. The SSH protocol consists of three major components: The Transport Layer Protocol provides server authentication, confidentiality, and integrity with perfect forward secrecy. The User Authentication Protocol authenticates the client to the server. The Connection Protocol multiplexes the encrypted tunnel into several logical channels. Details of these protocols are described in separate documents. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4251"/>
          <seriesInfo name="DOI" value="10.17487/RFC4251"/>
        </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="RFC4254" target="https://www.rfc-editor.org/info/rfc4254" quoteTitle="true" derivedAnchor="RFC4254">
          <front>
            <title>The Secure Shell (SSH) Connection 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">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 Connection Protocol. It provides interactive login sessions, remote execution of commands, forwarded TCP/IP connections, and forwarded X11 connections. All of these channels are multiplexed into a single encrypted tunnel.</t>
              <t indent="0">The SSH Connection Protocol has been designed to run on top of the SSH transport layer and user authentication protocols. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4254"/>
          <seriesInfo name="DOI" value="10.17487/RFC4254"/>
        </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="RFC6187" target="https://www.rfc-editor.org/info/rfc6187" quoteTitle="true" derivedAnchor="RFC6187">
          <front>
            <title>X.509v3 Certificates for Secure Shell Authentication</title>
            <author fullname="K. Igoe" initials="K." surname="Igoe"/>
            <author fullname="D. Stebila" initials="D." surname="Stebila"/>
            <date month="March" year="2011"/>
            <abstract>
              <t indent="0">X.509 public key certificates use a signature by a trusted certification authority to bind a given public key to a given digital identity. This document specifies how to use X.509 version 3 public key certificates in public key algorithms in the Secure Shell protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6187"/>
          <seriesInfo name="DOI" value="10.17487/RFC6187"/>
        </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="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
          <front>
            <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
            <author fullname="M. Wasserman" initials="M." surname="Wasserman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem. This document obsoletes RFC 4742. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </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="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="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="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>
        <reference anchor="RFC9640" target="https://www.rfc-editor.org/info/rfc9640" quoteTitle="true" derivedAnchor="RFC9640">
          <front>
            <title>YANG Data Types and Groupings for Cryptography</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="9640"/>
          <seriesInfo name="DOI" value="10.17487/RFC9640"/>
        </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>
      </references>
      <references pn="section-7.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="FIPS_186-5" target="https://csrc.nist.gov/pubs/fips/186-5/final" quoteTitle="true" derivedAnchor="FIPS_186-5">
          <front>
            <title>Digital Signature Standard (DSS)</title>
            <author>
              <organization showOnFrontPage="true">NIST</organization>
            </author>
            <date month="February" year="2023"/>
          </front>
          <seriesInfo name="FIPS PUB" value="186-5"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.186-5"/>
        </reference>
        <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="IANA-ENC-ALGS" target="https://www.iana.org/assignments/ssh-parameters/" quoteTitle="true" derivedAnchor="IANA-ENC-ALGS">
          <front>
            <title>Encryption Algorithm Names</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA-KEYEX-ALGS" target="https://www.iana.org/assignments/ssh-parameters" quoteTitle="true" derivedAnchor="IANA-KEYEX-ALGS">
          <front>
            <title>Key Exchange Method Names</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA-MAC-ALGS" target="https://www.iana.org/assignments/ssh-parameters" quoteTitle="true" derivedAnchor="IANA-MAC-ALGS">
          <front>
            <title>MAC Algorithm Names</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA-PUBKEY-ALGS" target="https://www.iana.org/assignments/ssh-parameters/" quoteTitle="true" derivedAnchor="IANA-PUBKEY-ALGS">
          <front>
            <title>Public Key Algorithm Names</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </reference>
        <reference anchor="IANA-YANG-PARAMETERS" target="https://www.iana.org/assignments/yang-parameters" quoteTitle="true" derivedAnchor="IANA-YANG-PARAMETERS">
          <front>
            <title>YANG Parameters</title>
            <author>
              <organization showOnFrontPage="true">IANA</organization>
            </author>
          </front>
        </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="RFC8071" target="https://www.rfc-editor.org/info/rfc8071" quoteTitle="true" derivedAnchor="RFC8071">
          <front>
            <title>NETCONF Call Home and RESTCONF Call Home</title>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="February" year="2017"/>
            <abstract>
              <t indent="0">This RFC presents NETCONF Call Home and RESTCONF Call Home, which enable a NETCONF or RESTCONF server to initiate a secure connection to a NETCONF or RESTCONF client, respectively.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8071"/>
          <seriesInfo name="DOI" value="10.17487/RFC8071"/>
        </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="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="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="I-D.ietf-netmod-system-config" target="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-system-config-09" quoteTitle="true" derivedAnchor="SYSTEM-CONFIG">
          <front>
            <title>System-defined Configuration</title>
            <author fullname="Qiufang Ma" initials="Q." surname="Ma">
              <organization showOnFrontPage="true">Huawei</organization>
            </author>
            <author fullname="Qin Wu" initials="Q." surname="Wu">
              <organization showOnFrontPage="true">Huawei</organization>
            </author>
            <author fullname="Chong Feng" initials="C." surname="Feng"/>
            <date day="29" month="September" year="2024"/>
            <abstract>
              <t indent="0">The Network Management Datastore Architecture (NMDA) in RFC 8342 defines several configuration datastores holding configuration. The contents of these configuration datastores are controlled by clients. This document introduces the concept of system configuration datastore holding configuration controlled by the system on which a server is running. The system configuration can be referenced (e.g., leafref) by configuration explicitly created by clients. This document updates RFC 8342.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-netmod-system-config-09"/>
          <refcontent>Work in Progress</refcontent>
        </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>
        <reference anchor="I-D.ietf-netmod-rfc8407bis" target="https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-17" quoteTitle="true" derivedAnchor="YANG-GUIDE">
          <front>
            <title>Guidelines for Authors and Reviewers of Documents Containing YANG Data Models</title>
            <author fullname="Andy Bierman" initials="A." surname="Bierman">
              <organization showOnFrontPage="true">YumaWorks</organization>
            </author>
            <author fullname="Mohamed Boucadair" initials="M." surname="Boucadair">
              <organization showOnFrontPage="true">Orange</organization>
            </author>
            <author fullname="Qin Wu" initials="Q." surname="Wu">
              <organization showOnFrontPage="true">Huawei</organization>
            </author>
            <date day="27" month="September" year="2024"/>
            <abstract>
              <t indent="0">This memo provides guidelines for authors and reviewers of specifications containing YANG modules, including IANA-maintained 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 8407. Also, this document updates RFC 8126 by providing additional guidelines for writing the IANA considerations for RFCs that specify IANA-maintained modules. The document also updates RFC 6020 by clarifying how modules and their revisions are handled by IANA.</t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-netmod-rfc8407bis-17"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
      </references>
    </references>
    <section anchor="iana-script" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-script-to-generate-iana-mai">Script to Generate IANA-Maintained YANG Modules</name>
      <t indent="0" pn="section-appendix.a-1">This section is not normative.</t>
      <t indent="0" pn="section-appendix.a-2">The Python <eref target="https://www.python.org" brackets="angle"/> script contained in this
        section will create the four IANA-maintained modules that are described (but not contained) in this document.</t>
      <t indent="0" pn="section-appendix.a-3">Run the script using the command "python gen-yang-modules.py" to produce four
        YANG module files in the current directory.</t>
      <t indent="0" pn="section-appendix.a-4">Be aware that the script does not attempt to copy the "revision" statements
        from the previous/current YANG module.  Copying the revision statements must
      be done manually.</t>
      <sourcecode type="python" markers="true" pn="section-appendix.a-5">
=============== NOTE: '\' line wrapping per RFC 8792 ================

import re
import csv
import textwrap
import requests
import requests_cache
from io import StringIO
from datetime import datetime

# Metadata for the four YANG modules produced by this script
MODULES = [
    {
        "csv_url": "https://www.iana.org/assignments/ssh-parameters/\
ssh-parameters-17.csv",
        "spaced_name": "encryption",
        "hyphenated_name": "encryption",
        "prefix": "sshea",
        "description": """    "This module defines enumerations for \
the encryption algorithms
     defined in the 'Encryption Algorithm Names' registry of the
     'Secure Shell (SSH) Protocol Parameters' registry group
     maintained by IANA.""",
    },
    {
        "csv_url": "https://www.iana.org/assignments/ssh-parameters/\
ssh-parameters-19.csv",
        "spaced_name": "public key",
        "hyphenated_name": "public-key",
        "prefix": "sshpka",
        "description": """    "This module defines enumerations for \
the public key algorithms
     defined in the 'Public Key Algorithm Names' registry of the
     'Secure Shell (SSH) Protocol Parameters' registry group
     maintained by IANA."""
    },
    {
        "csv_url": "https://www.iana.org/assignments/ssh-parameters/\
ssh-parameters-18.csv",
        "spaced_name": "mac",
        "hyphenated_name": "mac",
        "prefix": "sshma",
        "description": """    "This module defines enumerations for \
the MAC algorithms
     defined in the 'MAC Algorithm Names' registry of the
     'Secure Shell (SSH) Protocol Parameters' registry group
     maintained by IANA."""
    },
    {
        "csv_url": "https://www.iana.org/assignments/ssh-parameters/\
ssh-parameters-16.csv",
        "spaced_name": "key exchange",
        "hyphenated_name": "key-exchange",
        "prefix": "sshkea",
        "description": """    "This module defines enumerations for \
the key exchange algorithms
     defined in the 'Key Exchange Method Names' registry of the
     'Secure Shell (SSH) Protocol Parameters' registry group
     maintained by IANA."""
    },
]




def create_module_begin(module, f):

    # Define template for all four modules
    PREAMBLE_TEMPLATE="""
module iana-ssh-HNAME-algs {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:iana-ssh-HNAME-algs";
  prefix PREFIX;

  organization
    "Internet Assigned Numbers Authority (IANA)";

  contact
    "Postal: ICANN
             12025 Waterfront Drive, Suite 300
             Los Angeles, CA  90094-2536
             United States of America
     Tel:    +1 310 301 5800
     Email:  iana@iana.org";

  description
DESCRIPTION

     Copyright (c) YEAR 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).

     The initial version of this YANG module is part of RFC 9644
     (https://www.rfc-editor.org/info/rfc9644); see the RFC
     itself for full legal notices.

     All versions of this module are published by IANA at
     https://www.iana.org/assignments/yang-parameters.";

  revision DATE {
    description
      "This initial version of the module was created using
       the script defined in RFC 9644 to reflect the contents
       of the SNAME algorithms registry maintained by IANA.";
    reference
      "RFC 9644: YANG Groupings for SSH Clients and SSH Servers";
  }

  typedef ssh-HNAME-algorithm {
    type enumeration {
"""
    # Replacements
    rep = {
      "DATE": datetime.today().strftime('%Y-%m-%d'),
      "YEAR": datetime.today().strftime('%Y'),
      "SNAME": module["spaced_name"],
      "HNAME": module["hyphenated_name"],
      "PREFIX": module["prefix"],
      "DESCRIPTION": module["description"]
    }

    # Do the replacement
    rep = dict((re.escape(k), v) for k, v in rep.items())
    pattern = re.compile("|".join(rep.keys()))
    text = pattern.sub(lambda m: rep[re.escape(m.group(0))], PREAMBL\
E_TEMPLATE)

    # Write preamble into the file
    f.write(text)


def create_module_body(module, f):

    # Fetch the current CSV file from IANA
    r = requests.get(module["csv_url"])
    assert(r.status_code == 200)

    # Ascertain the first CSV column's name
    with StringIO(r.text) as csv_file:
        csv_reader = csv.reader(csv_file)
        for row in csv_reader:
            first_colname = row[0]
            break

    # Parse each CSV line
    with StringIO(r.text) as csv_file:
        csv_reader = csv.DictReader(csv_file)
        for row in csv_reader:

            # Extract just the ref
            refs = row["Reference"][1:-1]  # remove the '[' and ']' \
chars
            refs = refs.split("][")

            # There may be more than one ref
            titles = []
            for ref in refs:

                # Ascertain the ref's title
                if ref.startswith("RFC"):

                    # Fetch the current BIBTEX entry
                    bibtex_url="https://datatracker.ietf.org/doc/"+ \
ref.lower() + "/bibtex/"
                    r = requests.get(bibtex_url)
                    assert r.status_code == 200, "Could not GET " + \
bibtex_url

                    # Append to 'titles' value from the "title" line
                    for item in r.text.split("\n"):
                        if "title =" in item:
                            titles.append(re.sub('.*{{(.*)}}.*', r'\\
g&lt;1&gt;', item))
                            break
                    else:
                        raise Exception("RFC title not found")


                    # Insert a space: "RFCXXXX" --&gt; "RFC XXXX"
                    index = refs.index(ref)
                    refs[index] = "RFC " + ref[3:]

                elif ref.startswith("FIPS"):
                    # Special case for FIPS, since no bibtex to fetch
                    if ref == "FIPS 46-3" or ref == "FIPS-46-3":
                        titles.append("Data Encryption Standard (DES\
)")
                    else:
                        raise Exception("FIPS ref not found")

                else:
                    raise Exception("ref not found")

            # Function used below
            def write_enumeration(alg):
                f.write('\n')
                f.write(f'      enum {alg} {{\n')
                if "HISTORIC" in row["Note"]:
                    f.write(f'        status obsolete;\n')
                elif "OK to Implement" in row:
                    if "MUST NOT" in row["OK to Implement"]:
                        f.write(f'        status obsolete;\n')
                    elif "SHOULD NOT" in row["OK to Implement"]:
                        f.write(f'        status deprecated;\n')
                f.write(f'        description\n')
                description = f'          "Enumeration for the \'{al\
g}\' algorithm.'
                if "Section" in row["Note"]:
                    description += " " + row["Note"]
                description += '";'
                description = textwrap.fill(description, width=69, s\
ubsequent_indent="           ")
                f.write(f'{description}\n')
                f.write('        reference\n')
                f.write('          "')
                if row["Reference"] == "":
                    f.write('    Missing in IANA registry.')
                else:
                    ref_len = len(refs)
                    for i in range(ref_len):
                        ref = refs[i]
                        f.write(f'{ref}:\n')
                        title = "             " + titles[i]
                        if i == ref_len - 1:
                            title += '";'
                        title = textwrap.fill(title, width=67, subse\
quent_indent="             ")
                        f.write(f'{title}')
                        if i != ref_len - 1:
                            f.write('\n       ')
                f.write('\n')
                f.write('      }\n')


            # Write one or more "enumeration" statements
            if not row[first_colname].endswith("-*"): # just one enu\
meration
                # Avoid duplicate entries caused by the "ecdh-sha2-*\
" family expansion
                if not row[first_colname].startswith("ecdh-sha2-nist\
p"):
                    write_enumeration(row[first_colname])
            else: # a family of enumerations
                curve_ids = [
                    "nistp256",
                    "nistp384",
                    "nistp521",
                    "1.3.132.0.1",
                    "1.2.840.10045.3.1.1",
                    "1.3.132.0.33",
                    "1.3.132.0.26",
                    "1.3.132.0.27",
                    "1.3.132.0.16",
                    "1.3.132.0.36",
                    "1.3.132.0.37",
                    "1.3.132.0.38",
                ]
                for curve_id in curve_ids:
                    write_enumeration(row[first_colname][:-1] + curv\
e_id)


def create_module_end(module, f):

    # Close out the enumeration, typedef, and module
    f.write("    }\n")
    f.write("    description\n")
    f.write(f'      "An enumeration for SSH {module["spaced_name"]} \
algorithms.";\n')
    f.write("  }\n")
    f.write('\n')
    f.write('}\n')


def create_module(module):

    # Install cache for 8x speedup
    requests_cache.install_cache()

    # Ascertain YANG module's name
    yang_module_name = "iana-ssh-" + module["hyphenated_name"] + "-a\
lgs.yang"

    # Create YANG module file
    with open(yang_module_name, "w") as f:
        create_module_begin(module, f)
        create_module_body(module, f)
        create_module_end(module, f)


def main():
    for module in MODULES:
        create_module(module)


if __name__ == "__main__":
    main()
</sourcecode>
    </section>
    <section numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t indent="0" pn="section-appendix.b-1">The authors would like to thank the following for lively discussions
        on list and in the halls (ordered by first name):
        <contact fullname="Alan Luchuk"/>,
        <contact fullname="Andy Bierman"/>,
        <contact fullname="Balázs Kovács"/>,
        <contact fullname="Barry Leiba"/>,
        <contact fullname="Benoit Claise"/>,
        <contact fullname="Bert Wijnen"/>,
        <contact fullname="David Lamparter"/>,
        <contact fullname="Elwyn Davies"/>,
        <contact fullname="Gary Wu"/>,
        <contact fullname="Jürgen Schönwälder"/>,
        <contact fullname="Ladislav Lhotka"/>,
        <contact fullname="Liang Xia"/>,
        <contact fullname="Martin Björklund"/>,
        <contact fullname="Martin Thomson"/>,
        <contact fullname="Mehmet Ersue"/>,
        <contact fullname="Michal Vaško"/>,
        <contact fullname="Murray Kucherawy"/>,
        <contact fullname="Paul Wouters"/>,
        <contact fullname="Per Andersson"/>,
        <contact fullname="Phil Shafer"/>,
        <contact fullname="Qin Wun"/>,
        <contact fullname="Radek Krejci"/>,
        <contact fullname="Rob Wilton"/>,
        <contact fullname="Roman Danyliw"/>,
        <contact fullname="Russ Housley"/>,
        <contact fullname="Sean Turner"/>,
        <contact fullname="Thomas Martin"/>,	
        <contact fullname="Tom Petch"/>,
        and <contact fullname="Warren Kumari"/>.</t>
    </section>
    <section numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-contributors">Contributors</name>
      <t indent="0" pn="section-appendix.c-1">Special acknowledgement goes to <contact fullname="Gary Wu"/> for his work on the
        "ietf-ssh-common" module.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.d">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author fullname="Kent Watsen" initials="K." surname="Watsen">
        <organization showOnFrontPage="true">Watsen Networks</organization>
        <address>
          <email>kent+ietf@watsen.net</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
