RFC 9642

A YANG Data Model for a Keystore

πŸ“… published October 2024, from ietf

RFC 9642: A YANG Data Model for a Keystore πŸ”βœ¨ (part 1 of 9)

Title Block πŸŽ€

  • RFC number: 9642
  • Title: A YANG Data Model for a Keystore
  • Authors: K. Watsen (Watsen Networks)
  • Category: Standards Track
  • Date: October 2024
  • Published by: Internet Engineering Task Force (IETF)
  • ISSN: 2070-1721
  • Obsoletes / Updates: this header doesn't list either one πŸ™…

Abstract πŸ’–

Okay so this doc is all about a YANG module called "ietf-keystore" πŸ”‘, which lets you configure keys from one central spot. It covers both symmetric and asymmetric keys. The secret value for either key type can be encrypted or hidden πŸ™ˆ. Asymmetric keys can be hooked up to certificates πŸ“œ, and notifications go out when a certificate is about to expire ⏰. No more surprise expiries, periodt πŸ’….

Status of This Memo πŸ“œ

This is an Internet Standards Track document πŸŽ‰.

This doc is a product of the Internet Engineering Task Force (IETF) 🫢. It represents the consensus of the IETF community, got public review, and was approved for publication by the Internet Engineering Steering Group (IESG). If you want more on Internet Standards, check out Section 2 of RFC 7841 🧐.

For the current status, any errata, and how to send feedback, head to https://www.rfc-editor.org/info/rfc9642 πŸ”—.

Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved πŸ’œ.

This doc is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) as they're in effect on the date of publication. Read those carefully, because they spell out your rights and restrictions for this document πŸ“–. Code Components pulled out of this doc must include Revised BSD License text, as described in Section 4.e of the Trust Legal Provisions. They come without warranty, as described in the Revised BSD License βš–οΈ.

Table of Contents πŸ—‚οΈ

1.  Introduction
  1.1.  Relation to Other RFCs
  1.2.  Specification Language
  1.3.  Terminology
  1.4.  Adherence to the NMDA
  1.5.  Conventions
2.  The "ietf-keystore" Module
  2.1.  Data Model Overview
  2.1.1.  Features
  2.1.2.  Typedefs
  2.2.  Example Usage
  2.3.  YANG Module
3.  Support for Built-In Keys
4.  Encrypting Keys in Configuration
5.  Security Considerations
  5.1.  Security of Data at Rest and in Motion
  5.2.  Unconstrained Private Key Usage
  5.3.  Security Considerations for the "ietf-keystore" YANG Module
6.  IANA Considerations
  6.1.  The IETF XML Registry
  6.2.  The YANG Module Names Registry
7.  References
  7.1.  Normative References
  7.2.  Informative References
Acknowledgements
Author's Address

1. Introduction ✨

The star of the show is a YANG 1.1 [RFC7950] module called "ietf-keystore" 🌟. It centralizes configuration for both symmetric and asymmetric keys. The secret value for both key types can be encrypted or hidden (see [RFC9640]) πŸ™ˆ. Asymmetric keys can be associated with certificates πŸ“œ, and notifications are sent when certificates are about to expire ⏰.

The "ietf-keystore" module defines a bunch of "grouping" statements 🧩 that other modules can import. For example, some groupings let a key be configured inline (right inside the data model that defines it) or as a reference to a key in the central keystore πŸ—οΈ.

Servers with cryptographic hardware, like a trusted platform module (TPM), get extra special attention πŸ‘‘. They're unique because the hardware hides the secret key values. That hardware is also usually initialized at manufacturing time to protect a "built-in" asymmetric key, whose public half is conveyed in an identity certificate (like an Initial Device Identifier (IDevID) [Std-802.1AR-2018] certificate) πŸͺͺ. Peek at Section 3 to see how built-in keys are supported.

This doc is basically writing down what lots of server implementations already do at the time of writing πŸ“. To keep implementation simple, advanced key formats may be implemented selectively πŸ§ƒ.

Implementations can use operating-system-level keystore utilities (like "Keychain Access" on MacOS) and/or cryptographic hardware (like TPMs) 🍎.

1.1. Relation to Other RFCs

This module [RFC7950] is one piece of a squad of RFCs πŸ«‚ that work together to ultimately support configuring both the clients and servers of the Network Configuration Protocol (NETCONF) [RFC6241] and RESTCONF [RFC8040].

The dependency relationship between the primary YANG groupings in the various RFCs is shown in the diagram below πŸ—ΊοΈ. In some cases, a document may define secondary groupings that bring in dependencies not illustrated in the diagram. The labels in the diagram are shorthand names for the defining RFCs, and their citation references are provided below the diagram.

Heads up: the arrows point from referencer to referenced 🏹. For example, the "crypto-types" RFC doesn't have any dependencies, whilst the "keystore" RFC depends on the "crypto-types" RFC.

                                crypto-types
                                  ^      ^
                                 /        \
                                /          \
                       truststore         keystore
                        ^     ^             ^  ^
                        |     +---------+   |  |
                        |               |   |  |
                        |      +------------+  |
   tcp-client-server      |     /         |      |
      ^    ^        ssh-client-server     |      |
      |    |           ^            tls-client-server
      |    |           |              ^     ^        http-client-server
      |    |           |              |     |                 ^
      |    |           |        +-----+     +---------+       |
      |    |           |        |                     |       |
      |    +-----------|--------|--------------+      |       |
      |                |        |              |      |       |
      +-----------+    |        |              |      |       |
                  |    |        |              |      |       |
                  |    |        |              |      |       |
               netconf-client-server       restconf-client-server
+========================+==========================+
| Label in Diagram       | Originating RFC          |
+========================+==========================+
| crypto-types           | [RFC9640]                |
+------------------------+--------------------------+
| truststore             | [RFC9641]                |
+------------------------+--------------------------+
| keystore               | RFC 9642                 |
+------------------------+--------------------------+
| tcp-client-server      | [RFC9643]                |
+------------------------+--------------------------+
| ssh-client-server      | [RFC9644]                |
+------------------------+--------------------------+
| tls-client-server      | [RFC9645]                |
+------------------------+--------------------------+
| http-client-server     | [HTTP-CLIENT-SERVER]     |
+------------------------+--------------------------+
| netconf-client-server  | [NETCONF-CLIENT-SERVER]  |
+------------------------+--------------------------+
| restconf-client-server | [RESTCONF-CLIENT-SERVER] |
+------------------------+--------------------------+

Table 1: Labels in Diagram to RFC Mapping πŸ“Š

1.2. Specification Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are the BCP 14 [RFC2119] [RFC8174] words 🧠. They're only meant to be read as described there when, and only when, they appear in all capitals, just like here πŸ” .

1.3. Terminology

The terms "client" and "server" are defined in [RFC6241], and this doc doesn't redefine them πŸ™….

The term "keystore" is defined here as a mechanism that intends to safeguard secrets πŸ›‘οΈ.

The nomenclatures <running> and <operational> are defined in [RFC8342] πŸ—‚οΈ.

The sentence fragments "augmented" and "augmented in" are the past-tense verbified form of the "augment" statement, as defined in Section 7.17 of [RFC7950] 🧩.

Okay, so the word "key" can mean one of three things in this doc πŸ”‘: 1) the YANG-defined asymmetric-key or symmetric-key node defined in this document, 2) the raw key data held by those key nodes, or 3) the "key" of a YANG "list" statement. This doc uses "raw key value" and "YANG list key" where it needs to tell types 2 and 3 apart. Everywhere else, a plain "key" means a YANG-defined asymmetric-key or symmetric-key node πŸ’….

1.4. Adherence to the NMDA

This document follows the Network Management Datastore Architecture (NMDA) [RFC8342] πŸ›οΈ. For instance, keys and associated certificates installed during manufacturing (like for an IDevID certificate) are expected to show up in <operational> (see Section 3) πŸ‘€.

1.5. Conventions

Various examples in this doc use BASE64VALUE= as a placeholder for binary data that's been base64 encoded (per Section 9.8 of [RFC7950]) 🧁. It's a placeholder because real base64-encoded structures are often many lines long, which is super distracting from the example πŸ™ˆ.

Various examples use the XML [W3C.REC-xml-20081126] encoding. Other encodings, like JSON [RFC8259], could be used instead πŸŽ€.

Various examples contain long lines that may be folded, as described in [RFC8792] πŸ“.

This doc uses the adjective "central" with the word "keystore" to refer to the top-level instance of the keystore-grouping, when the central-keystore-supported feature is enabled πŸ‘‘. Heads up: consuming YANG modules MAY instantiate the keystore-grouping in other locations. All those other instances are not the "central" instance πŸ’œ.

2. The "ietf-keystore" Module πŸ”‘

This section defines a YANG 1.1 [RFC7950] module called "ietf-keystore" πŸ’–. A high-level overview is in Section 2.1, examples showing how to use it are in Section 2.2, and the YANG module itself is defined in Section 2.3 🧚.

2.1. Data Model Overview

This section gives an overview of the "ietf-keystore" module in terms of its features, typedefs, groupings, and protocol-accessible nodes 🌸.

2.1.1. Features

The following diagram lists all the "feature" statements defined in the "ietf-keystore" module πŸ¦‹:

Features:
  +-- central-keystore-supported
  +-- inline-definitions-supported
  +-- asymmetric-keys
  +-- symmetric-keys

The diagram above uses syntax that's similar to, but not defined in, [RFC8340] ✨.

2.1.2. Typedefs

The following diagram lists the "typedef" statements defined in the "ietf-keystore" module πŸ“:

Typedefs:
  leafref
    +-- central-symmetric-key-ref
    +-- central-asymmetric-key-ref

The diagram above uses syntax that's similar to, but not defined in, [RFC8340] 🧠.

Comments:

  • Every typedef defined in the "ietf-keystore" module extends the base "leafref" type defined in [RFC7950] 🫢.
  • The leafrefs refer to symmetric and asymmetric keys in the central keystore when this module is implemented πŸ—οΈ.
  • These typedefs are provided as an aid to consuming modules that import the "ietf-keystore" module πŸ’….

2.1.3. Groupings ✨

Okay so the keystore module ships with a bunch of reusable grouping statements πŸ’… Here's the full list:

  • encrypted-by-grouping
  • central-asymmetric-key-certificate-ref-grouping
  • inline-or-keystore-symmetric-key-grouping
  • inline-or-keystore-asymmetric-key-grouping
  • inline-or-keystore-asymmetric-key-with-certs-grouping
  • inline-or-keystore-end-entity-cert-with-key-grouping
  • keystore-grouping

Each of these gets its own subsection below, so let's go 🫢

2.1.3.1. The "encrypted-by-grouping" Grouping πŸ”

Here's the tree diagram [RFC8340] for the encrypted-by-grouping grouping:

grouping encrypted-by-grouping:
  +-- (encrypted-by)
     +--:(central-symmetric-key-ref)
     |        {central-keystore-supported,symmetric-keys}?
     |  +-- symmetric-key-ref?    ks:central-symmetric-key-ref
     +--:(central-asymmetric-key-ref)
                    {central-keystore-supported,asymmetric-keys}?
        +-- asymmetric-key-ref?   ks:central-asymmetric-key-ref

Comments:

  • This grouping is a choice statement with options to reference either a symmetric or an asymmetric key that's configured in the keystore. Main character energy πŸ‘‘
  • This grouping is only usable when the keystore module is implemented. Servers that define custom keystore locations MUST augment in alternate encrypted-by references pointing to those alternate locations. No skipping this one, bestie πŸ™ˆ

2.1.3.2. The "central-asymmetric-key-certificate-ref-grouping" Grouping πŸŽ€

Here's the tree diagram [RFC8340] for the central-asymmetric-key-certificate-ref-grouping grouping:

grouping central-asymmetric-key-certificate-ref-grouping:
  +-- asymmetric-key?   ks:central-asymmetric-key-ref
  |       {central-keystore-supported,asymmetric-keys}?
  +-- certificate?      leafref

Comments:

  • This grouping gives you a reference to a certificate in two parts. First you get the name of the asymmetric key the certificate belongs to, then you get the name of the certificate itself. It's giving organized πŸ“‡
  • This grouping is only usable when the keystore module is implemented. Servers that define custom keystore locations can define an alternate grouping for references to those alternate locations. ✨

2.1.3.3. The "inline-or-keystore-symmetric-key-grouping" Grouping πŸ¦‹

Here's the tree diagram [RFC8340] for the inline-or-keystore-symmetric-key-grouping grouping:

grouping inline-or-keystore-symmetric-key-grouping:
  +-- (inline-or-keystore)
     +--:(inline) {inline-definitions-supported}?
     |  +-- inline-definition
     |     +---u ct:symmetric-key-grouping
     +--:(central-keystore)
                    {central-keystore-supported,symmetric-keys}?
        +-- central-keystore-reference?
                ks:central-symmetric-key-ref

Comments:

  • This grouping is just here as a convenience for consuming modules that want to offer a symmetric key that's either defined inline or referenced from the keystore. Super handy 🧚
  • A choice statement is used to show the different options. Each option is turned on by a feature statement. Additional case statements MAY be augmented in if, e.g., there's a need to reference a symmetric key in an alternate location. 🌈
  • For the inline-definition option, the definition uses the symmetric-key-grouping grouping discussed in Section 2.1.4.3 of [RFC9640]. πŸ“–
  • For the central-keystore option, the central-keystore-reference is an instance of the symmetric-key-ref discussed in Section 2.1.2. πŸ’œ

2.1.3.4. The "inline-or-keystore-asymmetric-key-grouping" Grouping 🌸

Here's the tree diagram [RFC8340] for the inline-or-keystore-asymmetric-key-grouping grouping:

grouping inline-or-keystore-asymmetric-key-grouping:
  +-- (inline-or-keystore)
     +--:(inline) {inline-definitions-supported}?
     |  +-- inline-definition
     |     +---u ct:asymmetric-key-pair-grouping
     +--:(central-keystore)
                    {central-keystore-supported,asymmetric-keys}?
        +-- central-keystore-reference?
                ks:central-asymmetric-key-ref

Comments:

  • This grouping is just here as a convenience for consuming modules that want to offer an asymmetric key that's either defined inline or referenced as an asymmetric key from the keystore. 🫢
  • A choice statement is used to show the different options. Each option is turned on by a feature statement. Additional case statements MAY be augmented in if, e.g., there's a need to reference an asymmetric key in an alternate location. πŸ’…
  • For the inline-definition option, the definition uses the asymmetric-key-pair-grouping grouping discussed in Section 2.1.4.6 of [RFC9640]. πŸ“–
  • For the central-keystore option, the central-keystore-reference is an instance of the asymmetric-key-ref typedef discussed in Section 2.1.2. πŸ“

2.1.3.5. The "inline-or-keystore-asymmetric-key-with-certs-grouping" Grouping 🌈

Here's the tree diagram [RFC8340] for the inline-or-keystore-asymmetric-key-with-certs-grouping grouping:

grouping inline-or-keystore-asymmetric-key-with-certs-grouping:
  +-- (inline-or-keystore)
     +--:(inline) {inline-definitions-supported}?
     |  +-- inline-definition
     |     +---u ct:asymmetric-key-pair-with-certs-grouping
     +--:(central-keystore)
                    {central-keystore-supported,asymmetric-keys}?
        +-- central-keystore-reference?
                ks:central-asymmetric-key-ref

Comments:

  • This grouping is just here as a convenience for consuming modules that want to offer an asymmetric key that's either defined inline or referenced as an asymmetric key from the keystore. It's the one with the certs, iykyk πŸ”‘
  • A choice statement is used to show the different options. Each option is turned on by a feature statement. Additional case statements MAY be augmented in if, e.g., there's a need to reference an asymmetric key in an alternate location. ✨
  • For the inline-definition option, the definition uses the asymmetric-key-pair-with-certs-grouping grouping discussed in Section 2.1.4.12 of [RFC9640]. πŸ“–
  • For the central-keystore option, the central-keystore-reference is an instance of the asymmetric-key-ref typedef discussed in Section 2.1.2. πŸ¦‹

2.1.3.6. The "inline-or-keystore-end-entity-cert-with-key-grouping" Grouping 🧚

Here's the tree diagram [RFC8340] for the inline-or-keystore-end-entity-cert-with-key-grouping grouping:

grouping inline-or-keystore-end-entity-cert-with-key-grouping:
  +-- (inline-or-keystore)
     +--:(inline) {inline-definitions-supported}?
     |  +-- inline-definition
     |     +---u ct:asymmetric-key-pair-with-cert-grouping
     +--:(central-keystore)
                    {central-keystore-supported,asymmetric-keys}?
        +-- central-keystore-reference
           +---u central-asymmetric-key-certificate-ref-grouping

Comments:

  • This grouping is just here as a convenience for consuming modules that want to offer an option for a symmetric key that's either defined inline or referenced as a symmetric key from the keystore. (Yes, the name says end-entity cert, but the comment says symmetric. Vibes are a little mixed here πŸ’€)
  • A choice statement is used to show the different options. Each option is turned on by a feature statement. Additional case statements MAY be augmented in if, e.g., there's a need to reference a symmetric key in an alternate location. 🌸
  • For the inline-definition option, the definition uses the asymmetric-key-pair-with-certs-grouping grouping discussed in Section 2.1.4.12 of [RFC9640]. πŸ“–
  • For the central-keystore option, the central-keystore-reference uses the central-asymmetric-key-certificate-ref-grouping grouping discussed in Section 2.1.3.2. 🫢

2.1.3.7. The "keystore-grouping" Grouping πŸ‘‘

Here's the tree diagram [RFC8340] for the keystore-grouping grouping:

grouping keystore-grouping:
  +-- asymmetric-keys {asymmetric-keys}?
  |  +-- asymmetric-key* [name]
  |     +-- name                                          string
  |     +---u ct:asymmetric-key-pair-with-certs-grouping
  +-- symmetric-keys {symmetric-keys}?
     +-- symmetric-key* [name]
        +-- name                         string
        +---u ct:symmetric-key-grouping

Comments:

  • The keystore-grouping grouping defines a keystore instance as being made up of symmetric and asymmetric keys. Both kinds are basically built the same way: a list sitting inside a container. Structure goals πŸ—οΈ
  • For asymmetric keys, each asymmetric-key uses the asymmetric-key-pair-with-certs-grouping grouping discussed in Section 2.1.4.12 of [RFC9640]. πŸ”₯
  • For symmetric keys, each symmetric-key uses the symmetric-key-grouping grouping discussed in Section 2.1.4.3 of [RFC9640]. 🌈

2.1.4. Protocol-Accessible Nodes ✨

Okay bestie, time to list every protocol-accessible node in the "ietf-keystore" module πŸ—‚οΈπŸ’–. First up is the short version, where the "grouping" statements stay unexpanded. This tree diagram [RFC8340] shows the top-level structure:

module: ietf-keystore
  +--rw keystore {central-keystore-supported}?
     +---u keystore-grouping

Next is the full picture, with every "grouping" statement expanded so you can see the keystore's whole structure πŸ‘€. This tree diagram is also from [RFC8340]:

=============== NOTE: '\' line wrapping per RFC 8792 ================

module: ietf-keystore
  +--rw keystore {central-keystore-supported}?
     +--rw asymmetric-keys {asymmetric-keys}?
     |  +--rw asymmetric-key* [name]
     |     +--rw name                           string
     |     +--rw public-key-format?             identityref
     |     +--rw public-key?                    binary
     |     +--rw private-key-format?            identityref
     |     +--rw (private-key-type)
     |     |  +--:(cleartext-private-key) {cleartext-private-keys}?
     |     |  |  +--rw cleartext-private-key?   binary
     |     |  +--:(hidden-private-key) {hidden-private-keys}?
     |     |  |  +--rw hidden-private-key?      empty
     |     |  +--:(encrypted-private-key) {encrypted-private-keys}?
     |     |     +--rw encrypted-private-key
     |     |        +--rw encrypted-by
     |     |        |  +--rw (encrypted-by)
     |     |        |     +--:(central-symmetric-key-ref)
     |     |        |     |        {central-keystore-supported,symme\
tric-keys}?
     |     |        |     |  +--rw symmetric-key-ref?
     |     |        |     |          ks:central-symmetric-key-ref
     |     |        |     +--:(central-asymmetric-key-ref)
     |     |        |              {central-keystore-supported,asymm\
etric-keys}?
     |     |        |        +--rw asymmetric-key-ref?
     |     |        |                ks:central-asymmetric-key-ref
     |     |        +--rw encrypted-value-format    identityref
     |     |        +--rw encrypted-value           binary
     |     +--rw certificates
     |     |  +--rw certificate* [name]
     |     |     +--rw name                      string
     |     |     +--rw cert-data                 end-entity-cert-cms
     |     |     +---n certificate-expiration
     |     |             {certificate-expiration-notification}?
     |     |        +-- expiration-date    yang:date-and-time
     |     +---x generate-csr {csr-generation}?
     |        +---w input
     |        |  +---w csr-format    identityref
     |        |  +---w csr-info      csr-info
     |        +--ro output
     |           +--ro (csr-type)
     |              +--:(p10-csr)
     |                 +--ro p10-csr?   p10-csr
     +--rw symmetric-keys {symmetric-keys}?
        +--rw symmetric-key* [name]
           +--rw name                             string
           +--rw key-format?                      identityref
           +--rw (key-type)
              +--:(cleartext-symmetric-key)
              |  +--rw cleartext-symmetric-key?   binary
              |          {cleartext-symmetric-keys}?
              +--:(hidden-symmetric-key) {hidden-symmetric-keys}?
              |  +--rw hidden-symmetric-key?      empty
              +--:(encrypted-symmetric-key)
                       {encrypted-symmetric-keys}?
                 +--rw encrypted-symmetric-key
                    +--rw encrypted-by
                    |  +--rw (encrypted-by)
                    |     +--:(central-symmetric-key-ref)
                    |     |        {central-keystore-supported,symme\
tric-keys}?
                    |     |  +--rw symmetric-key-ref?
                    |     |          ks:central-symmetric-key-ref
                    |     +--:(central-asymmetric-key-ref)
                    |              {central-keystore-supported,asymm\
etric-keys}?
                    |        +--rw asymmetric-key-ref?
                    |                ks:central-asymmetric-key-ref
                    +--rw encrypted-value-format    identityref
                    +--rw encrypted-value           binary

Here are the comments that go with those diagrams πŸ“:

  • Protocol-accessible nodes are the ones that are accessible when the module is "implemented", as described in Section 5.6.5 of [RFC7950].
  • The protocol-accessible nodes for the "ietf-keystore" module are instances of the "keystore-grouping" grouping discussed in Section 2.1.3.7.
  • The top-level node "keystore" is additionally constrained by the feature "central-keystore-supported".
  • The "keystore-grouping" grouping is discussed in Section 2.1.3.7.
  • The reason "keystore-grouping" exists separately from the protocol-accessible nodes definition is so that keystore instances can be instantiated in other locations, as may be needed or desired by some modules 🧚.

2.2. Example Usage πŸ’…

The examples in this section are encoded using XML, which is what you'd see when using the NETCONF protocol 🌸. Other encodings MAY be used, such as JSON when using the RESTCONF protocol.

2.2.1. A Keystore Instance πŸ”‘

The following example shows keys in <running>. For an example with built-in values in <operational>, check out Section 3 πŸ¦‹.

=============== NOTE: '\' line wrapping per RFC 8792 ================

<keystore
   xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore"
   xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types">

   <symmetric-keys>
      <symmetric-key>
         <name>cleartext-symmetric-key</name>
         <key-format>ct:octet-string-key-format</key-format>
         <cleartext-symmetric-key>BASE64VALUE=</cleartext-symmetric-\
key>
      </symmetric-key>
      <symmetric-key>
         <name>hidden-symmetric-key</name>
         <hidden-symmetric-key/>
      </symmetric-key>
      <symmetric-key>
         <name>encrypted-symmetric-key</name>
         <key-format>ct:one-symmetric-key-format</key-format>
         <encrypted-symmetric-key>
           <encrypted-by>
             <asymmetric-key-ref>hidden-asymmetric-key</asymmetric-k\
ey-ref>
           </encrypted-by>
           <encrypted-value-format>ct:cms-enveloped-data-format</enc\
rypted-value-format>
           <encrypted-value>BASE64VALUE=</encrypted-value>
         </encrypted-symmetric-key>
      </symmetric-key>
   </symmetric-keys>

   <asymmetric-keys>
      <asymmetric-key>
         <name>ssh-rsa-key</name>
         <private-key-format>ct:rsa-private-key-format</private-key-\
format>
         <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
      </asymmetric-key>
      <asymmetric-key>
         <name>ssh-rsa-key-with-cert</name>
         <private-key-format>ct:rsa-private-key-format</private-key-\
format>
         <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
         <certificates>
            <certificate>
               <name>ex-rsa-cert2</name>
               <cert-data>BASE64VALUE=</cert-data>
            </certificate>
         </certificates>
      </asymmetric-key>
      <asymmetric-key>
         <name>raw-private-key</name>
         <private-key-format>ct:rsa-private-key-format</private-key-\
format>
         <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
      </asymmetric-key>
      <asymmetric-key>
         <name>rsa-asymmetric-key</name>
         <private-key-format>ct:rsa-private-key-format</private-key-\
format>
         <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
         <certificates>
            <certificate>
               <name>ex-rsa-cert</name>
               <cert-data>BASE64VALUE=</cert-data>
            </certificate>
         </certificates>
      </asymmetric-key>
      <asymmetric-key>
         <name>ec-asymmetric-key</name>
         <private-key-format>ct:ec-private-key-format</private-key-f\
ormat>
         <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
         <certificates>
            <certificate>
               <name>ex-ec-cert</name>
               <cert-data>BASE64VALUE=</cert-data>
            </certificate>
         </certificates>
      </asymmetric-key>
      <asymmetric-key>
         <name>hidden-asymmetric-key</name>
         <public-key-format>ct:subject-public-key-info-format</publi\
c-key-format>
         <public-key>BASE64VALUE=</public-key>
         <hidden-private-key/>
         <certificates>
            <certificate>
               <name>builtin-idevid-cert</name>
               <cert-data>BASE64VALUE=</cert-data>
            </certificate>
            <certificate>
               <name>my-ldevid-cert</name>
               <cert-data>BASE64VALUE=</cert-data>
            </certificate>
         </certificates>
      </asymmetric-key>
      <asymmetric-key>
         <name>encrypted-asymmetric-key</name>
         <private-key-format>ct:one-asymmetric-key-format</private-k\
ey-format>
         <encrypted-private-key>
           <encrypted-by>
             <symmetric-key-ref>encrypted-symmetric-key</symmetric-k\
ey-ref>
           </encrypted-by>
           <encrypted-value-format>ct:cms-encrypted-data-format</enc\
rypted-value-format>
           <encrypted-value>BASE64VALUE=</encrypted-value>
         </encrypted-private-key>
      </asymmetric-key>
   </asymmetric-keys>
</keystore>

2.2.2. A Certificate Expiration Notification ⏰

This example shows a "certificate-expiration" notification πŸ”” for a certificate tied to an asymmetric key that's configured in the keystore.

=============== NOTE: '\' line wrapping per RFC 8792 ================

<notification
  xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
  <eventTime>2018-05-25T00:01:00Z</eventTime>
  <keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore">
    <asymmetric-keys>
      <asymmetric-key>
        <name>hidden-asymmetric-key</name>
        <certificates>
          <certificate>
            <name>my-ldevid-cert</name>
            <certificate-expiration>
              <expiration-date>2018-08-05T14:18:53-05:00</expiration\
-date>
            </certificate-expiration>
          </certificate>
        </certificates>
      </asymmetric-key>
    </asymmetric-keys>
  </keystore>
</notification>

2.2.3. The "Inline or Keystore" Groupings 🧩

This section walks through the various "inline-or-keystore" groupings in the "ietf-keystore" module πŸ’œ. That covers the "inline-or-keystore-symmetric-key-grouping" (Section 2.1.3.3), "inline-or-keystore-asymmetric-key-grouping" (Section 2.1.3.4), "inline-or-keystore-asymmetric-key-with-certs-grouping" (Section 2.1.3.5), and "inline-or-keystore-end-entity-cert-with-key-grouping" (Section 2.1.3.6) groupings.

These examples assume there's an example module called ex-keystore-usage with the namespace https://example.com/ns/example-keystore-usage.

The ex-keystore-usage module is presented first using tree diagrams [RFC8340]. After that comes an instance example showing all the "inline-or-keystore" groupings in use, and then the YANG module itself πŸŽ€.

2.2.3.1. Tree Diagrams for the "ex-keystore-usage" Module ✨

Okay bestie, first up is the tree for "ex-keystore-usage" with the "grouping" statements still folded up 🌳. You get the top-level shape without the inner details yet πŸ’…

=============== NOTE: '\' line wrapping per RFC 8792 ================

module: ex-keystore-usage
  +--rw keystore-usage
     +--rw symmetric-key* [name]
     |  +--rw name                                            string
     |  +---u ks:inline-or-keystore-symmetric-key-grouping
     +--rw asymmetric-key* [name]
     |  +--rw name                                             string
     |  +---u ks:inline-or-keystore-asymmetric-key-grouping
     +--rw asymmetric-key-with-certs* [name]
     |  +--rw name
     |  |       string
     |  +---u ks:inline-or-keystore-asymmetric-key-with-certs-groupi\
ng
     +--rw end-entity-cert-with-key* [name]
        +--rw name
        |       string
        +---u ks:inline-or-keystore-end-entity-cert-with-key-grouping

Now the big reveal πŸŽ€ This is the same "ex-keystore-usage" module, but with every single "grouping" statement opened up, so you can see the whole usage in all its glory. It's giving full anatomy 🫢πŸ”₯

=============== NOTE: '\' line wrapping per RFC 8792 ================

module: ex-keystore-usage
  +--rw keystore-usage
     +--rw symmetric-key* [name]
     |  +--rw name                                string
     |  +--rw (inline-or-keystore)
     |     +--:(inline) {inline-definitions-supported}?
     |     |  +--rw inline-definition
     |     |     +--rw key-format?                      identityref
     |     |     +--rw (key-type)
     |     |        +--:(cleartext-symmetric-key)
     |     |        |  +--rw cleartext-symmetric-key?   binary
     |     |        |          {cleartext-symmetric-keys}?
     |     |        +--:(hidden-symmetric-key)
     |     |        |        {hidden-symmetric-keys}?
     |     |        |  +--rw hidden-symmetric-key?      empty
     |     |        +--:(encrypted-symmetric-key)
     |     |                 {encrypted-symmetric-keys}?
     |     |           +--rw encrypted-symmetric-key
     |     |              +--rw encrypted-by
     |     |              +--rw encrypted-value-format    identityref
     |     |              +--rw encrypted-value           binary
     |     +--:(central-keystore)
     |              {central-keystore-supported,symmetric-keys}?
     |        +--rw central-keystore-reference?
     |                ks:central-symmetric-key-ref
     +--rw asymmetric-key* [name]
     |  +--rw name                                string
     |  +--rw (inline-or-keystore)
     |     +--:(inline) {inline-definitions-supported}?
     |     |  +--rw inline-definition
     |     |     +--rw public-key-format?             identityref
     |     |     +--rw public-key?                    binary
     |     |     +--rw private-key-format?            identityref
     |     |     +--rw (private-key-type)
     |     |        +--:(cleartext-private-key)
     |     |        |        {cleartext-private-keys}?
     |     |        |  +--rw cleartext-private-key?   binary
     |     |        +--:(hidden-private-key) {hidden-private-keys}?
     |     |        |  +--rw hidden-private-key?      empty
     |     |        +--:(encrypted-private-key)
     |     |                 {encrypted-private-keys}?
     |     |           +--rw encrypted-private-key
     |     |              +--rw encrypted-by
     |     |              +--rw encrypted-value-format    identityref
     |     |              +--rw encrypted-value           binary
     |     +--:(central-keystore)
     |              {central-keystore-supported,asymmetric-keys}?
     |        +--rw central-keystore-reference?
     |                ks:central-asymmetric-key-ref
     +--rw asymmetric-key-with-certs* [name]
     |  +--rw name                                string
     |  +--rw (inline-or-keystore)
     |     +--:(inline) {inline-definitions-supported}?
     |     |  +--rw inline-definition
     |     |     +--rw public-key-format?             identityref
     |     |     +--rw public-key?                    binary
     |     |     +--rw private-key-format?            identityref
     |     |     +--rw (private-key-type)
     |     |     |  +--:(cleartext-private-key)
     |     |     |  |        {cleartext-private-keys}?
     |     |     |  |  +--rw cleartext-private-key?   binary
     |     |     |  +--:(hidden-private-key) {hidden-private-keys}?
     |     |     |  |  +--rw hidden-private-key?      empty
     |     |     |  +--:(encrypted-private-key)
     |     |     |           {encrypted-private-keys}?
     |     |     |     +--rw encrypted-private-key
     |     |     |        +--rw encrypted-by
     |     |     |        +--rw encrypted-value-format    identityref
     |     |     |        +--rw encrypted-value           binary
     |     |     +--rw certificates
     |     |     |  +--rw certificate* [name]
     |     |     |     +--rw name                      string
     |     |     |     +--rw cert-data
     |     |     |     |       end-entity-cert-cms
     |     |     |     +---n certificate-expiration
     |     |     |             {certificate-expiration-notification}?
     |     |     |        +-- expiration-date    yang:date-and-time
     |     |     +---x generate-csr {csr-generation}?
     |     |        +---w input
     |     |        |  +---w csr-format    identityref
     |     |        |  +---w csr-info      csr-info
     |     |        +--ro output
     |     |           +--ro (csr-type)
     |     |              +--:(p10-csr)
     |     |                 +--ro p10-csr?   p10-csr
     |     +--:(central-keystore)
     |              {central-keystore-supported,asymmetric-keys}?
     |        +--rw central-keystore-reference?
     |                ks:central-asymmetric-key-ref
     +--rw end-entity-cert-with-key* [name]
        +--rw name                                string
        +--rw (inline-or-keystore)
           +--:(inline) {inline-definitions-supported}?
           |  +--rw inline-definition
           |     +--rw public-key-format?             identityref
           |     +--rw public-key?                    binary
           |     +--rw private-key-format?            identityref
           |     +--rw (private-key-type)
           |     |  +--:(cleartext-private-key)
           |     |  |        {cleartext-private-keys}?
           |     |  |  +--rw cleartext-private-key?   binary
           |     |  +--:(hidden-private-key) {hidden-private-keys}?
           |     |  |  +--rw hidden-private-key?      empty
           |     |  +--:(encrypted-private-key)
           |     |           {encrypted-private-keys}?
           |     |     +--rw encrypted-private-key
           |     |        +--rw encrypted-by
           |     |        +--rw encrypted-value-format    identityref
           |     |        +--rw encrypted-value           binary
           |     +--rw cert-data?
           |     |       end-entity-cert-cms
           |     +---n certificate-expiration
           |     |       {certificate-expiration-notification}?
           |     |  +-- expiration-date    yang:date-and-time
           |     +---x generate-csr {csr-generation}?
           |        +---w input
           |        |  +---w csr-format    identityref
           |        |  +---w csr-info      csr-info
           |        +--ro output
           |           +--ro (csr-type)
           |              +--:(p10-csr)
           |                 +--ro p10-csr?   p10-csr
           +--:(central-keystore)
                    {central-keystore-supported,asymmetric-keys}?
              +--rw central-keystore-reference
                 +--rw asymmetric-key?
                 |       ks:central-asymmetric-key-ref
                 |       {central-keystore-supported,asymmetric-keys\
}?
                 +--rw certificate?      leafref

2.2.3.2. Example Usage for the "ex-keystore-usage" Module

okay so this example gives you TWO equivalent versions of each grouping πŸ’…βœ¨ one points at a keystore and one has everything inlined. the keystore one matches the keystore from Section 2.2.1, and the inlined one holds the exact same values as the keystore instance its sibling is pointing at. so they're twins πŸ«ΆπŸŽ€

=============== NOTE: '\' line wrapping per RFC 8792 ================
<keystore-usage
  xmlns="https://example.com/ns/example-keystore-usage"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types">

  <!-- The following two equivalent examples illustrate the  -->
  <!-- "inline-or-keystore-symmetric-key-grouping" grouping: -->

  <symmetric-key>
    <name>example 1a</name>
    <central-keystore-reference>cleartext-symmetric-key</central-key\
store-reference>
  </symmetric-key>

  <symmetric-key>
    <name>example 1b</name>
    <inline-definition>
      <key-format>ct:octet-string-key-format</key-format>
      <cleartext-symmetric-key>BASE64VALUE=</cleartext-symmetric-key>
    </inline-definition>
  </symmetric-key>


  <!-- The following two equivalent examples illustrate the   -->
  <!-- "inline-or-keystore-asymmetric-key-grouping" grouping: -->

  <asymmetric-key>
    <name>example 2a</name>
    <central-keystore-reference>rsa-asymmetric-key</central-keystore\
-reference>
  </asymmetric-key>

  <asymmetric-key>
    <name>example 2b</name>
    <inline-definition>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <private-key-format>ct:rsa-private-key-format</private-key-for\
mat>
      <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
    </inline-definition>
  </asymmetric-key>


  <!-- The following two equivalent examples illustrate the     -->
  <!-- "inline-or-keystore-asymmetric-key-with-certs-grouping"  -->
  <!-- grouping:                                                -->

  <asymmetric-key-with-certs>
    <name>example 3a</name>
    <central-keystore-reference>rsa-asymmetric-key</central-keystore\
-reference>
  </asymmetric-key-with-certs>

  <asymmetric-key-with-certs>
    <name>example 3b</name>
    <inline-definition>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <private-key-format>ct:rsa-private-key-format</private-key-for\
mat>
      <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
      <certificates>
        <certificate>
          <name>a locally defined cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
      </certificates>
    </inline-definition>
  </asymmetric-key-with-certs>


  <!-- The following two equivalent examples illustrate the    -->
  <!-- "inline-or-keystore-end-entity-cert-with-key-grouping"  -->
  <!-- grouping:                                               -->
  <end-entity-cert-with-key>
    <name>example 4a</name>
    <central-keystore-reference>
      <asymmetric-key>rsa-asymmetric-key</asymmetric-key>
      <certificate>ex-rsa-cert</certificate>
    </central-keystore-reference>
  </end-entity-cert-with-key>

  <end-entity-cert-with-key>
    <name>example 4b</name>
    <inline-definition>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <private-key-format>ct:rsa-private-key-format</private-key-for\
mat>
      <cleartext-private-key>BASE64VALUE=</cleartext-private-key>
      <cert-data>BASE64VALUE=</cert-data>
    </inline-definition>
  </end-entity-cert-with-key>

</keystore-usage>

2.2.3.3. The "ex-keystore-usage" YANG Module

next up is the YANG module for this example 🧚 it's a tiny module that imports the keystore module and then uses each of its groupings, so you can see how they all snap together 🌸

module ex-keystore-usage {
  yang-version 1.1;
  namespace "https://example.com/ns/example-keystore-usage";
  prefix ex-keystore-usage;

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

  organization
    "Example Corporation";

  contact
    "Author: YANG Designer <mailto:yang.designer@example.com>";

  description
    "This example module illustrates notable groupings defined
     in the 'ietf-keystore' module.";

  revision 2024-10-10 {
    description
      "Initial version";
    reference
      "RFC 9642: A YANG Data Model for a Keystore";
  }

  container keystore-usage {
    description
      "An illustration of the various keystore groupings.";
    list symmetric-key {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ks:inline-or-keystore-symmetric-key-grouping;
      description
        "An symmetric key that may be configured locally or be a
         reference to a symmetric key in the keystore.";
    }
    list asymmetric-key {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ks:inline-or-keystore-asymmetric-key-grouping;
      description
        "An asymmetric key, with no certs, that may be configured
         locally or be a reference to an asymmetric key in the
         keystore.  The intent is to reference just the asymmetric
         key, not any certificates that may also be associated
         with the asymmetric key.";
    }
    list asymmetric-key-with-certs {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ks:inline-or-keystore-asymmetric-key-with-certs-grouping;
      description
        "An asymmetric key and its associated certs that may be
         configured locally or be a reference to an asymmetric
         key (and its associated certs) in the keystore.";
    }
    list end-entity-cert-with-key {
      key "name";
      leaf name {
        type string;
        description
          "An arbitrary name for this key.";
      }
      uses ks:inline-or-keystore-end-entity-cert-with-key-grouping;
      description
        "An end-entity certificate and its associated asymmetric
         key that may be configured locally or be a reference
         to another certificate (and its associated asymmetric
         key) in the keystore.";
    }
  }
}

2.3. YANG Module

this is the big one πŸŽ€ the actual "ietf-keystore" module lives here, and it leans on two outside specs for its normative references, [RFC8341] and [RFC9640] πŸ¦‹

<CODE BEGINS> file "ietf-keystore@2024-10-10.yang"
module ietf-keystore {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-keystore";
  prefix ks;

  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";
  }

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

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

  description
    "This module defines a 'keystore' to centralize management
     of security credentials.

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

  revision 2024-10-10 {
    description
      "Initial version";
    reference
      "RFC 9642: A YANG Data Model for a Keystore";
  }

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

  feature central-keystore-supported {
    description
      "The 'central-keystore-supported' feature indicates that
       the server supports the central keystore (i.e., fully
       implements the 'ietf-keystore' module).";
  }

  feature inline-definitions-supported {
    description
      "The 'inline-definitions-supported' feature indicates that
       the server supports locally defined keys.";
  }

  feature asymmetric-keys {
    description
      "The 'asymmetric-keys' feature indicates that the server
       implements the /keystore/asymmetric-keys subtree.";

  }

  feature symmetric-keys {
    description
      "The 'symmetric-keys' feature indicates that the server
       implements the /keystore/symmetric-keys subtree.";
  }

  /****************/
  /*   Typedefs   */
  /****************/

  typedef central-symmetric-key-ref {
    type leafref {
      path "/ks:keystore/ks:symmetric-keys/ks:symmetric-key"
         + "/ks:name";
    }
    description
      "This typedef enables modules to easily define a reference
       to a symmetric key stored in the central keystore.";
  }

  typedef central-asymmetric-key-ref {
    type leafref {
      path "/ks:keystore/ks:asymmetric-keys/ks:asymmetric-key"
         + "/ks:name";
    }
    description
      "This typedef enables modules to easily define a reference
       to an asymmetric key stored in the central keystore.";
  }

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

Okay bestie, this is where the YANG module really comes alive πŸ’…βœ¨

     grouping encrypted-by-grouping {
       description
         "A grouping that defines a 'choice' statement that can be
          augmented into the 'encrypted-by' node, present in the
          'symmetric-key-grouping' and 'asymmetric-key-pair-grouping'
          groupings defined in RFC 9640, enabling references to keys
          in the central keystore.";
       choice encrypted-by {
         nacm:default-deny-write;
         mandatory true;
         description
           "A choice amongst other symmetric or asymmetric keys.";
         case central-symmetric-key-ref {
           if-feature "central-keystore-supported";
           if-feature "symmetric-keys";
           leaf symmetric-key-ref {
             type ks:central-symmetric-key-ref;
             description
               "Identifies the symmetric key used to encrypt the
                associated key.";
           }
         }
         case central-asymmetric-key-ref {
           if-feature "central-keystore-supported";
           if-feature "asymmetric-keys";
           leaf asymmetric-key-ref {
             type ks:central-asymmetric-key-ref;
             description
               "Identifies the asymmetric key whose public key
                encrypted the associated key.";
           }
         }
       }
     }

     // *-ref groupings

     grouping central-asymmetric-key-certificate-ref-grouping {
       description
         "A grouping for the reference to a certificate associated
          with an asymmetric key stored in the central keystore.";
       leaf asymmetric-key {
         nacm:default-deny-write;
         if-feature "central-keystore-supported";
         if-feature "asymmetric-keys";
         type ks:central-asymmetric-key-ref;
         must '../certificate';
         description
           "A reference to an asymmetric key in the keystore.";
       }
       leaf certificate {
         nacm:default-deny-write;
         type leafref {
           path "/ks:keystore/ks:asymmetric-keys/ks:asymmetric-key"
              + "[ks:name = current()/../asymmetric-key]/"
              + "ks:certificates/ks:certificate/ks:name";
         }
         must '../asymmetric-key';
         description
           "A reference to a specific certificate of the
            asymmetric key in the keystore.";
       }
     }

     // inline-or-keystore-* groupings

     grouping inline-or-keystore-symmetric-key-grouping {
       description
         "A grouping for the configuration of a symmetric key.  The
          symmetric key may be defined inline or as a reference to
          a symmetric key stored in the central keystore.

          Servers that wish to define alternate keystore locations
          SHOULD augment in custom 'case' statements enabling
          references to those alternate keystore locations.";
       choice inline-or-keystore {
         nacm:default-deny-write;
         mandatory true;
         description
           "A choice between an inlined definition and a definition
            that exists in the keystore.";
         case inline {
           if-feature "inline-definitions-supported";
           container inline-definition {
             description
               "A container to hold the local key definition.";
             uses ct:symmetric-key-grouping;
           }
         }
         case central-keystore {
           if-feature "central-keystore-supported";
           if-feature "symmetric-keys";
           leaf central-keystore-reference {
             type ks:central-symmetric-key-ref;
             description
               "A reference to a symmetric key that exists in
                the central keystore.";
           }
         }
       }
     }

     grouping inline-or-keystore-asymmetric-key-grouping {
       description
         "A grouping for the configuration of an asymmetric key.  The
          asymmetric key may be defined inline or as a reference to
          an asymmetric key stored in the central keystore.

          Servers that wish to define alternate keystore locations
          SHOULD augment in custom 'case' statements enabling
          references to those alternate keystore locations.";
       choice inline-or-keystore {
         nacm:default-deny-write;
         mandatory true;
         description
           "A choice between an inlined definition and a definition
            that exists in the keystore.";
         case inline {
           if-feature "inline-definitions-supported";
           container inline-definition {
             description
               "A container to hold the local key definition.";
             uses ct:asymmetric-key-pair-grouping;
           }
         }
         case central-keystore {
           if-feature "central-keystore-supported";
           if-feature "asymmetric-keys";
           leaf central-keystore-reference {
             type ks:central-asymmetric-key-ref;
             description
               "A reference to an asymmetric key that exists in
                the central keystore.  The intent is to reference
                just the asymmetric key without any regard for
                any certificates that may be associated with it.";
           }
         }
       }
     }

     grouping inline-or-keystore-asymmetric-key-with-certs-grouping {
       description
         "A grouping for the configuration of an asymmetric key and
          its associated certificates.  The asymmetric key and its
          associated certificates may be defined inline or as a
          reference to an asymmetric key (and its associated
          certificates) in the central keystore.

          Servers that wish to define alternate keystore locations
          SHOULD augment in custom 'case' statements enabling
          references to those alternate keystore locations.";
       choice inline-or-keystore {
         nacm:default-deny-write;
         mandatory true;
         description
           "A choice between an inlined definition and a definition
            that exists in the keystore.";
         case inline {
           if-feature "inline-definitions-supported";
           container inline-definition {
             description
               "A container to hold the local key definition.";
             uses ct:asymmetric-key-pair-with-certs-grouping;
           }
         }
         case central-keystore {
           if-feature "central-keystore-supported";
           if-feature "asymmetric-keys";
           leaf central-keystore-reference {
             type ks:central-asymmetric-key-ref;
             description
               "A reference to an asymmetric key (and all of its
                associated certificates) in the keystore, when
                this module is implemented.";
           }
         }
       }
     }

     grouping inline-or-keystore-end-entity-cert-with-key-grouping {
       description
         "A grouping for the configuration of an asymmetric key and
          its associated end-entity certificate.  The asymmetric key
          and its associated end-entity certificate may be defined
          inline or as a reference to an asymmetric key (and its
          associated end-entity certificate) in the central keystore.

          Servers that wish to define alternate keystore locations
          SHOULD augment in custom 'case' statements enabling
          references to those alternate keystore locations.";
       choice inline-or-keystore {
         nacm:default-deny-write;
         mandatory true;
         description
           "A choice between an inlined definition and a definition
            that exists in the keystore.";
         case inline {
           if-feature "inline-definitions-supported";
           container inline-definition {
             description
               "A container to hold the local key definition.";
             uses ct:asymmetric-key-pair-with-cert-grouping;
           }
         }
         case central-keystore {
           if-feature "central-keystore-supported";
           if-feature "asymmetric-keys";
           container central-keystore-reference {
             uses central-asymmetric-key-certificate-ref-grouping;
             description
               "A reference to a specific certificate associated with
                an asymmetric key stored in the central keystore.";
           }
         }
       }
     }

     // the keystore grouping

     grouping keystore-grouping {
       description
         "A grouping definition enables use in other contexts.  If ever
          done, implementations MUST augment new 'case' statements
          into the various inline-or-keystore 'choice' statements to
          supply leafrefs to the model-specific location(s).";
       container asymmetric-keys {
         nacm:default-deny-write;
         if-feature "asymmetric-keys";
         description
           "A list of asymmetric keys.";
         list asymmetric-key {
           key "name";
           description
             "An asymmetric key.";
           leaf name {
             type string;
             description
               "An arbitrary name for the asymmetric key.";
           }
           uses ct:asymmetric-key-pair-with-certs-grouping;
         }
       }
       container symmetric-keys {
         nacm:default-deny-write;
         if-feature "symmetric-keys";
         description
           "A list of symmetric keys.";
         list symmetric-key {
           key "name";
           description
             "A symmetric key.";
           leaf name {
             type string;
             description
               "An arbitrary name for the symmetric key.";
           }
           uses ct:symmetric-key-grouping;
         }
       }
     }

     /*********************************/
     /*   Protocol accessible nodes   */
     /*********************************/

     container keystore {
       if-feature "central-keystore-supported";
       description
         "A central keystore containing a list of symmetric keys and
          a list of asymmetric keys.";
       nacm:default-deny-write;
       uses keystore-grouping {
         augment "symmetric-keys/symmetric-key/key-type/encrypted-"
               + "symmetric-key/encrypted-symmetric-key/encrypted-by" {
           description
             "Augments in a choice statement enabling the encrypting
              key to be any other symmetric or asymmetric key in the
              central keystore.";
           uses encrypted-by-grouping;
         }
         augment "asymmetric-keys/asymmetric-key/private-key-type/"
               + "encrypted-private-key/encrypted-private-key/"
               + "encrypted-by" {
           description
             "Augments in a choice statement enabling the encrypting
              key to be any other symmetric or asymmetric key in the
              central keystore.";
           uses encrypted-by-grouping;
         }
       }
     }
   }

3. Support for Built-In Keys πŸ”βœ¨

okay so some servers come with keys already baked in 🧁, and those are called built-in keys! They MAY be set during the manufacturing process, or they can be dynamically generated the first time the server is booted or a particular service (e.g., Secure Shell (SSH)) is enabled. the way that's so iconic 😭

Built-in keys are "hidden" keys that are expected to be set by a vendor-specific process πŸ™ˆ. Any ability for operators to set and/or modify built-in keys is outside the scope of this document, so we're not going there today πŸ’….

The main thing about built-in keys is that the server provides them, instead of someone configuring them 🫢. Because of that, they show up in <operational> (Section 5.3 of [RFC8342]) and in <system> [NETMOD-SYSTEM-CONFIG], if the server implements it 🌸.

Here's what the keystore in <operational> might look like for a server in its factory default state. Notice that the built-in keys have the "or:origin" annotation value "or:system" πŸŽ€.

=============== NOTE: '\' line wrapping per RFC 8792 ================

<keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"
  xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin"
  or:origin="or:intended">
  <asymmetric-keys>
    <asymmetric-key or:origin="or:system">
      <name>Manufacturer-Generated Hidden Key</name>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <hidden-private-key/>
      <certificates>
        <certificate>
          <name>Manufacturer-Generated IDevID Cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
      </certificates>
    </asymmetric-key>
  </asymmetric-keys>
</keystore>

Next up, here's how one built-in key definition from the example above gets propagated over to <running> πŸ¦‹:

=============== NOTE: '\' line wrapping per RFC 8792 ================

<keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types">
  <asymmetric-keys>
    <asymmetric-key>
      <name>Manufacturer-Generated Hidden Key</name>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <hidden-private-key/>
      <certificates>
        <certificate>
          <name>Manufacturer-Generated IDevID Cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
        <certificate>
          <name>Deployment-Specific LDevID Cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
      </certificates>
    </asymmetric-key>
  </asymmetric-keys>
</keystore>

And once that configuration is applied, <operational> should look like this πŸ’œ:

=============== NOTE: '\' line wrapping per RFC 8792 ================

<keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore"
  xmlns:ct="urn:ietf:params:xml:ns:yang:ietf-crypto-types"
  xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin"
  or:origin="or:intended">
  <asymmetric-keys>
    <asymmetric-key or:origin="or:system">
      <name>Manufacturer-Generated Hidden Key</name>
      <public-key-format>ct:subject-public-key-info-format</public-k\
ey-format>
      <public-key>BASE64VALUE=</public-key>
      <hidden-private-key/>
      <certificates>
        <certificate>
          <name>Manufacturer-Generated IDevID Cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
        <certificate or:origin="or:intended">
          <name>Deployment-Specific LDevID Cert</name>
          <cert-data>BASE64VALUE=</cert-data>
        </certificate>
      </certificates>
    </asymmetric-key>
  </asymmetric-keys>
</keystore>

4. Encrypting Keys in Configuration πŸ”’πŸ’–

this section is all about encrypting BOTH the symmetric and asymmetric keys on a server 🫧. The goal is that backup/restore procedures can be used without anyone having to worry about raw key data getting compromised while it's in transit 😭.

The approach in this section is not normative, so it's more of a helpful roadmap than a rulebook πŸ—ΊοΈ. It answers how a configuration containing secrets that are encrypted by a built-in key (Section 3) can be backed up from one server and restored on a different server, even when each server has unique primary keys. The API defined by the "ietf-keystore" YANG module in this document is sufficient to support the workflow described here ✨.

4.1. Key Encryption Key πŸ—οΈ

the ability to encrypt configured keys is predicated on having a key encryption key (KEK) πŸ‘‘. There may be any number of KEKs in a server. A KEK, as the name says, is a key that's used to encrypt other keys. A KEK MAY be either a symmetric key or an asymmetric key 🧚.

If a KEK is a symmetric key, then the server MUST provide an API for administrators to encrypt other keys without needing to know the symmetric key's value πŸ™ˆ. If the KEK is an asymmetric key, then the server SHOULD provide an API that enables encrypting other keys. Alternatively, it can assume the administrators can do that themselves using the asymmetric key's public half πŸ“.

A server MUST possess access to the KEK, or to an API that uses the KEK, so that it can decrypt the other keys in the configuration at runtime. no cap, this one's non-negotiable πŸ’….

4.2. Configuring Encrypted Keys πŸŽ€

Each time a new key is configured, it SHOULD be encrypted by a KEK 🌈.

In the "ietf-crypto-types" module [RFC9640], the format for encrypted values is described by identity statements derived from the "symmetrically-encrypted-value-format" and "asymmetrically-encrypted-value-format" identity statements 🧩.

Implementations of servers that implement the "ietf-keystore" module SHOULD provide an API that generates a key and encrypts it using a KEK, all at once πŸ”₯. That means the cleartext value of the newly generated key may never be known to the administrators generating the keys, which is so secure it's giving 🀯. Such an API is defined in the "ietf-ssh-common" and "ietf-tls-common" YANG modules, which are defined in [RFC9644] and [RFC9645], respectively πŸ“š.

If the server implementation doesn't provide such an API, then the generating and encrypting steps MAY be performed outside the server. For example, an administrator with special access control rights (such as an organization's crypto officer) could do it πŸ¦‹.

Either way, the encrypted key can be configured into the keystore using either the "encrypted-symmetric-key" node (for symmetric keys) or the "encrypted-private-key" node (for asymmetric keys) πŸ’œ. These two nodes hold both the encrypted raw key value and a reference to the KEK that encrypted the key. main character energy πŸ‘‘βœ¨

4.3. Migrating Configuration to Another Server ✨

Okay bestie, so when a KEK is used to encrypt other keys, moving the config to another server only works if the second server has that same KEK πŸ”‘ This section is all about how server two gets it 🫢

In some deployments, mechanisms outside the scope of this document may be used to migrate a KEK from one server to another. That said, beware 🚨 that the ability to do so typically entails having access to the first server, and in some scenarios the first server may no longer be operational πŸ’€

In other deployments, an organization's crypto officer, who has the KEK's cleartext value, configures the same KEK on the second server, presumably as a hidden key or a key protected by access control, so the cleartext value is not disclosed to regular administrators. The catch is that this creates high coupling to and dependency on the crypto officers, and it does not scale in production environments 😩

To decouple the crypto officers from the regular administrators, a special KEK called the "primary key" (PK) may be used πŸŽ€

A PK is commonly a globally unique built-in (see Section 3) asymmetric key 🌸 Its private raw key value, due to the long lifetime, is hidden (i.e., "hidden-private-key"; see Section 2.1.4.5. of [RFC9640]). The raw public key value is often contained in an identity certificate (e.g., IDevID). How to configure a PK during the manufacturing process is outside the scope of this document.

Assuming the server has a PK, the PK can be used to encrypt a "shared KEK", which is then used to encrypt the keys configured by regular administrators.

With this extra level of indirection, a crypto officer can encrypt the same KEK for a multiplicity of servers offline, using the public key contained in each server's identity certificate. The crypto officer can then safely hand off the encrypted KEKs to the regular administrators responsible for server installations, including migrations πŸ¦‹

To migrate the configuration from a first server, an administrator would need to make just a single modification to the configuration before loading it onto a second server. That modification is to replace the encrypted KEK keystore entry from the first server with the encrypted KEK for the second server. Once that's done, the configuration (containing many encrypted keys) can be loaded into the second server, and the second server can decrypt all the encrypted keys in the configuration πŸ₯³

Here's the diagram that shows this idea πŸ‘‡

    +-------------+                                 +-------------+
    | shared KEK  |                                 | shared KEK  |
    |(unencrypted)|-------------------------------> | (encrypted) |
    +-------------+     encrypts offline using      +-------------+
           ^            each server's PK                |
           |                                            |
           |                                            |
           |  possesses    \o                           |
           +--------------  |\                          |
                           / \         shares with      |
                         crypto    +--------------------+
                         officer   |
                                   |
                                   |
   +----------------------+        |         +----------------------+
   |       server-1       |        |         |       server-2       |
   |    configuration     |        |         |    configuration     |
   |                      |        |         |                      |
   |                      |        |         |                      |
   |  +----------------+  |        |         |  +----------------+  |
   |  |      PK-1      |  |        |         |  |      PK-2      |  |
   |  |    (hidden)    |  |        |         |  |    (hidden)    |  |
   |  +----------------+  |        |         |  +----------------+  |
   |      ^               |        |         |      ^               |
   |      |               |        |         |      |               |
   |      |               |        |         |      |               |
   |      |  encrypted    |        |         |      |  encrypted    |
   |      |  by           |        |         |      |  by           |
   |      |               |        |         |      |               |
   |      |               |        |         |      |               |
   |  +----------------+  |        |         |  +----------------+  |
   |  |  shared KEK    |  |        |         |  |  shared KEK    |  |
   |  |  (encrypted)   |  |        v         |  |  (encrypted)   |  |
   |  +----------------+  |                  |  +----------------+  |
   |      ^               |     regular      |      ^               |
   |      |               |      admin       |      |               |
   |      |               |                  |      |               |
   |      |  encrypted    |       \o         |      |  encrypted    |
   |      |  by           |        |\        |      |  by           |
   |      |               |       / \        |      |               |
   |      |               |                  |      |               |
   |  +----------------+  |----------------->|  +----------------+  |
   |  | all other keys |  |     migrate      |  | all other keys |  |
   |  |  (encrypted)   |  |  configuration   |  |  (encrypted)   |  |
   |  +----------------+  |                  |  +----------------+  |
   |                      |                  |                      |
   +----------------------+                  +----------------------+

5. Security Considerations πŸ›‘οΈ

5.1. Security of Data at Rest and in Motion πŸ”

The YANG module defined in this document defines a mechanism called a "keystore" that intends to protect its contents from unauthorized disclosure and modification πŸ’–

To satisfy the expectations of a keystore, it is RECOMMENDED that server implementations ensure that the keystore contents are encrypted when persisted to non-volatile memory, and that keystore contents which have been decrypted in volatile memory are zeroized when not in use ✨

The keystore contents may be encrypted by either encrypting the contents individually (e.g., using the "encrypted" value formats) or by using persistence-layer-level encryption. If storing cleartext values (which is NOT RECOMMENDED per Section 3.5 of [RFC9640]), then persistence-layer-level encryption SHOULD be used to protect the data at rest πŸ™ˆ

If the keystore contents are not encrypted when persisted, then server implementations MUST ensure the persisted storage is inaccessible. This one is non-negotiable, bestie 🚫

5.2. Unconstrained Private Key Usage πŸ—οΈ

This module enables the configuration of private keys without constraints on their usage, e.g., what operations the key is allowed to be used for (such as signature, decryption, or both). That's giving very much "no limits" energy 😬

This module also does not constrain the usage of the associated public keys other than in the context of a configured certificate (e.g., an identity certificate). In that case, the key usage is constrained by the certificate πŸŽ€

5.3. Security Considerations for the "ietf-keystore" YANG Module πŸ’…

This section is modeled after the template defined in Section 3.7.1 of [RFC8407] πŸ“‹

The ietf-keystore YANG module defines a data model that is designed to be accessed via YANG-based management protocols, such as NETCONF [RFC6241] and RESTCONF [RFC8040]. These protocols have mandatory-to-implement secure transport layers (e.g., SSH [RFC4252], TLS [RFC8446], and QUIC [RFC9000]) and mandatory-to-implement mutual authentication πŸ”’

The Network Configuration Access Control Model (NACM) [RFC8341] provides the means to restrict access for particular users to a preconfigured subset of all available protocol operations and content πŸšͺ

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 πŸ‘€

Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. These are the subtrees and data nodes, and their sensitivity/vulnerability:

The "cleartext-symmetric-key" node: This node, imported from the "symmetric-key-grouping" grouping defined in [RFC9640], 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" was applied to it in [RFC9640] 🫣

The "cleartext-private-key" node: This node, defined in the "asymmetric-key-pair-grouping" grouping in [RFC9640], 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" is applied to it in [RFC9640] 😱

All the writable data nodes defined by this YANG module, both in the "grouping" statements and the protocol-accessible "keystore" instance, 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 🚨

This YANG module does not define any "rpc" or "action" statements, and thus the security considerations for such are not provided here πŸ€·β€β™€οΈ

Built-in key types SHOULD be hidden and/or encrypted (not cleartext). If this is not possible, access control mechanisms like NACM SHOULD be used to limit access to the key's secret data to only the most trusted authorized clients (e.g., belonging to an organization's crypto officer) πŸŒˆπŸ‘‘

6. IANA Considerations 🌸

6.1. The IETF XML Registry πŸ“‡

IANA has registered the following URI in the "ns" registry of the "IETF XML Registry" [RFC3688] πŸ¦‹

URI:  urn:ietf:params:xml:ns:yang:ietf-keystore
Registrant Contact:  The IESG
XML:  N/A; the requested URI is an XML namespace.

6.2. The YANG Module Names Registry 🧚

IANA has registered the following YANG module in the "YANG Module Names" registry defined in [RFC6020] ✨

Name:  ietf-keystore
Maintained by IANA:  N
Namespace:  urn:ietf:params:xml:ns:yang:ietf-keystore
Prefix:  ks
Reference:  RFC 9642

7. References πŸ“š

7.1. Normative References ✨

okay bestie, these are the must-read docs πŸ“š Everything below is the stuff this spec leans on, so here's the full list, word for word:

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

   [RFC4252]  Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH)
              Authentication Protocol", RFC 4252, DOI 10.17487/RFC4252,
              January 2006, <https://www.rfc-editor.org/info/rfc4252>.

   [RFC6020]  Bjorklund, M., Ed., "YANG - A Data Modeling Language for
              the Network Configuration Protocol (NETCONF)", RFC 6020,
              DOI 10.17487/RFC6020, October 2010,
              <https://www.rfc-editor.org/info/rfc6020>.

   [RFC6241]  Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
              and A. Bierman, Ed., "Network Configuration Protocol
              (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
              <https://www.rfc-editor.org/info/rfc6241>.

   [RFC7950]  Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
              RFC 7950, DOI 10.17487/RFC7950, August 2016,
              <https://www.rfc-editor.org/info/rfc7950>.

   [RFC8040]  Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF
              Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017,
              <https://www.rfc-editor.org/info/rfc8040>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.

   [RFC8341]  Bierman, A. and M. Bjorklund, "Network Configuration
              Access Control Model", STD 91, RFC 8341,
              DOI 10.17487/RFC8341, March 2018,
              <https://www.rfc-editor.org/info/rfc8341>.

   [RFC8446]  Rescorla, E., "The Transport Layer Security (TLS) Protocol
              Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018,
              <https://www.rfc-editor.org/info/rfc8446>.

   [RFC9000]  Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based
              Multiplexed and Secure Transport", RFC 9000,
              DOI 10.17487/RFC9000, May 2021,
              <https://www.rfc-editor.org/info/rfc9000>.

   [RFC9640]  Watsen, K., "YANG Data Types and Groupings for
              Cryptography", RFC 9640, DOI 10.17487/RFC9640, October
              2024, <https://www.rfc-editor.org/info/rfc9640>.

7.2. Informative References πŸ¦‹

these ones are the extra-credit reading, super useful for the full picture but not strictly required to get the spec 🧚 here's the whole batch:

   [HTTP-CLIENT-SERVER]
              Watsen, K., "YANG Groupings for HTTP Clients and HTTP
              Servers", Work in Progress, Internet-Draft, draft-ietf-
              netconf-http-client-server-23, 15 August 2024,
              <https://datatracker.ietf.org/doc/html/draft-ietf-netconf-
              http-client-server-23>.

   [NETCONF-CLIENT-SERVER]
              Watsen, K., "NETCONF Client and Server Models", Work in
              Progress, Internet-Draft, draft-ietf-netconf-netconf-
              client-server-37, 14 August 2024,
              <https://datatracker.ietf.org/doc/html/draft-ietf-netconf-
              netconf-client-server-37>.

   [NETMOD-SYSTEM-CONFIG]
              Ma, Q., Ed., Wu, Q., and C. Feng, "System-defined
              Configuration", Work in Progress, Internet-Draft, draft-
              ietf-netmod-system-config-09, 29 September 2024,
              <https://datatracker.ietf.org/doc/html/draft-ietf-netmod-
              system-config-09>.

   [RESTCONF-CLIENT-SERVER]
              Watsen, K., "RESTCONF Client and Server Models", Work in
              Progress, Internet-Draft, draft-ietf-netconf-restconf-
              client-server-38, 14 August 2024,
              <https://datatracker.ietf.org/doc/html/draft-ietf-netconf-
              restconf-client-server-38>.

   [RFC3688]  Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
              DOI 10.17487/RFC3688, January 2004,
              <https://www.rfc-editor.org/info/rfc3688>.

   [RFC8259]  Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
              Interchange Format", STD 90, RFC 8259,
              DOI 10.17487/RFC8259, December 2017,
              <https://www.rfc-editor.org/info/rfc8259>.

   [RFC8340]  Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams",
              BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018,
              <https://www.rfc-editor.org/info/rfc8340>.

   [RFC8342]  Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K.,
              and R. Wilton, "Network Management Datastore Architecture
              (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018,
              <https://www.rfc-editor.org/info/rfc8342>.

   [RFC8407]  Bierman, A., "Guidelines for Authors and Reviewers of
              Documents Containing YANG Data Models", BCP 216, RFC 8407,
              DOI 10.17487/RFC8407, October 2018,
              <https://www.rfc-editor.org/info/rfc8407>.

   [RFC8792]  Watsen, K., Auerswald, E., Farrel, A., and Q. Wu,
              "Handling Long Lines in Content of Internet-Drafts and
              RFCs", RFC 8792, DOI 10.17487/RFC8792, June 2020,
              <https://www.rfc-editor.org/info/rfc8792>.

   [RFC9641]  Watsen, K., "A YANG Data Model for a Truststore",
              RFC 9641, DOI 10.17487/RFC9641, October 2024,
              <https://www.rfc-editor.org/info/rfc9641>.

   [RFC9643]  Watsen, K. and M. Scharf, "YANG Groupings for TCP Clients
              and TCP Servers", RFC 9643, DOI 10.17487/RFC9643, October
              2024, <https://www.rfc-editor.org/info/rfc9643>.

   [RFC9644]  Watsen, K., "YANG Groupings for SSH Clients and SSH
              Servers", RFC 9644, DOI 10.17487/RFC9644, October 2024,
              <https://www.rfc-editor.org/info/rfc9644>.

   [RFC9645]  Watsen, K., "YANG Groupings for TLS Clients and TLS
              Servers", RFC 9645, DOI 10.17487/RFC9645, October 2024,
              <https://www.rfc-editor.org/info/rfc9645>.

   [Std-802.1AR-2018]
              IEEE, "IEEE Standard for Local and Metropolitan Area
              Networks - Secure Device Identity", IEEE Std 802.1AR-2018,
              DOI 10.1109/IEEESTD.2018.8423794, August 2018,
              <https://standards.ieee.org/standard/802_1AR-2018.html>.

   [W3C.REC-xml-20081126]
              Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E.,
              and F. Yergeau, "Extensible Markup Language (XML) 1.0
              (Fifth Edition)", W3C Recommendation REC-xml-20081126,
              November 2008, <https://www.w3.org/TR/xml/>.

Acknowledgements ✨

big thank-yous 🫢 to everyone who joined the lively discussions, both on the mailing list and in the hallways (listed by first name, obvi): Alan Luchuk, Andy Bierman, BalΓ‘zs KovΓ‘cs, Benoit Claise, Bert Wijnen, David Lamparter, Eric Voit, Γ‰ric Vyncke, Francesca Palombini, JΓΌrgen SchΓΆnwΓ€lder, Ladislav Lhotka, Liang Xia, Magnus NystrΓΆm, Mahesh Jethanandani, Martin BjΓΆrklund, Mehmet Ersue, Murray Kucherawy, Paul Wouters, Phil Shafer, Qin Wu, Radek Krejci, Ramkumar Dhanapal, Reese Enghardt, Reshad Rahman, Rob Wilton, Roman Danyliw, Sandra Murphy, Sean Turner, Tom Petch, Warren Kumari, and Zaheduzzaman Sarker. πŸ’œ

Author's Address πŸŽ€

Kent Watsen Watsen Networks Email: kent+ietf@watsen.net

πŸ“¦ where this page comes from