<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" docName="draft-ietf-acme-star-delegation-09" ipr="trust200902" indexInclude="true" number="9115" scripts="Common,Latin" submissionType="IETF" updates="" obsoletes="" category="std" consensus="true" symRefs="true" sortRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <!-- xml2rfc v2v3 conversion 3.4.0 -->
  <front>
    <title abbrev="ACME Delegation">An Automatic Certificate Management Environment (ACME) Profile for Generating Delegated Certificates</title>
    <seriesInfo name="RFC" value="9115"/>
    <author initials="Y." surname="Sheffer" fullname="Yaron Sheffer">
      <organization>Intuit</organization>
      <address>
        <email>yaronf.ietf@gmail.com</email>
      </address>
    </author>
    <author initials="D." surname="López" fullname="Diego López">
      <organization>Telefonica I+D</organization>
      <address>
        <email>diego.r.lopez@telefonica.com</email>
      </address>
    </author>
    <author initials="A." surname="Pastor Perales" fullname="Antonio Agustín Pastor Perales">
      <organization>Telefonica I+D</organization>
      <address>
        <email>antonio.pastorperales@telefonica.com</email>
      </address>
    </author>
    <author initials="T." surname="Fossati" fullname="Thomas Fossati">
      <organization>ARM</organization>
      <address>
        <email>thomas.fossati@arm.com</email>
      </address>
    </author>
    <date month="September" year="2021"/>
    <area>Security</area>
    <workgroup>ACME</workgroup>
    <keyword>Content Delivery Network</keyword>
    <keyword>CDN</keyword>
    <abstract>
      <t>This document defines a profile of the Automatic Certificate Management Environment
(ACME) protocol by which the holder of an identifier (e.g., a domain name) can
allow a third party to obtain an X.509 certificate such that the certificate
subject is the delegated identifier while the certified public key corresponds
to a private key controlled by the third party.
A primary use case is that of a Content Delivery Network (CDN), the third party,
terminating TLS sessions on behalf of a content provider (the holder of a domain
name).  The presented mechanism allows the holder of the identifier to retain
control over the delegation and revoke it at any time.  Importantly, this
mechanism does not require any modification to the deployed TLS
clients and servers.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>This document is related to <xref target="RFC8739"/>, in that some important use cases require both documents to be implemented. To avoid duplication,
we give here a bare-bones description of the motivation for this solution.  For
more details, please refer to the introductory sections
of <xref target="RFC8739"/>.</t>
      <t>An Identifier Owner (IdO) has agreements
in place with one or more Name Delegation Consumer (NDC) to use and attest its
identity.</t>
      <t>In the primary use case, the IdO is a content provider, and we consider a Content Delivery Network (CDN) provider contracted to
serve the content over HTTPS.  The CDN terminates the HTTPS connection at
one of its edge cache servers and needs to present its clients (browsers,
mobile apps, set-top boxes) a certificate whose name matches the domain name of
the URL that is requested, i.e., that of the IdO.  Understandably, some IdOs may balk at sharing their long-term private keys with another organization;
equally, delegates would rather not have to handle other parties' long-term
secrets. Other relevant use cases are discussed in <xref target="further-use-cases"/>.</t>
      <t>This document describes a profile of the ACME protocol <xref target="RFC8555"/> that allows
the NDC to request from the IdO, acting as a profiled ACME server, a certificate for
a delegated identity -- i.e., one belonging to the IdO.  The IdO then uses the
ACME protocol (with the extensions described in <xref target="RFC8739"/>) to request
issuance of a Short-Term, Automatically Renewed (STAR) certificate for the same delegated identity. The generated
short-term certificate is automatically renewed by the ACME Certification
Authority (CA), is periodically fetched by the NDC, and is used to terminate HTTPS
connections in lieu of the IdO.  The IdO can end the delegation at any time by
simply instructing the CA to stop the automatic renewal and letting the
certificate expire shortly thereafter.</t>
      <t>While the primary use case we address is a delegation of STAR certificates, the
mechanism proposed here also accommodates long-lived certificates managed with
the ACME protocol. The most noticeable difference between long-lived and STAR
certificates is the way the termination of the delegation is managed.  In the
case of long-lived certificates, the IdO uses the <tt>revokeCert</tt> URL exposed by the
CA and waits for the explicit revocation based on the Certificate Revocation
List (CRL) and Online Certificate Status Protocol (OCSP) to propagate to the
relying parties.</t>
      <t>In case the delegated identity is a domain name, this document also provides a
way for the NDC to inform the IdO about the CNAME mappings that need to be
installed in the IdO's DNS zone to enable the aliasing of the delegated name,
thus allowing the complete name delegation workflow to be handled using a
single interface.</t>
      <t>We note that other standardization efforts address the problem of certificate delegation for TLS connections, specifically <xref target="I-D.ietf-tls-subcerts"/> and <xref target="I-D.mglt-lurk-tls13"/>. The former extends the TLS certificate chain with a customer-owned signing certificate; the latter separates the server's private key into a dedicated, more-secure component. Compared to these other approaches, the current document does not require changes to the TLS network stack of the client or the server, nor does it introduce additional latency to the TLS connection.</t>
      <section anchor="terminology">
        <name>Terminology</name>
        <dl indent="8">
          <dt>IdO</dt>
          <dd>
            <t>Identifier Owner, the holder (current owner) of an identifier (e.g., a domain
name) that needs to be delegated.  Depending on the context, the term IdO may
also be used to designate the (profiled) ACME server deployed by the Identifier
Owner or the ACME client used by the Identifier Owner to interact with the CA.</t>
          </dd>
          <dt>NDC</dt>
          <dd>
            <t>Name Delegation Consumer, the entity to which the domain name is
delegated for a limited time.  This is a CDN in the primary use
case (in fact, readers may note the similarity of the two
abbreviations).  Depending on the context, the term NDC may
also be used to designate the (profiled) ACME client used by the Name
Delegation Consumer.</t>
          </dd>
          <dt>CDN</dt>
          <dd>
            <t>Content Delivery Network, a widely distributed network that
serves the domain's web content to a wide audience at high
performance.</t>
          </dd>
          <dt>STAR</dt>
          <dd>
            <t>Short-Term, Automatically Renewed, as applied to X.509 certificates.</t>
          </dd>
          <dt>ACME</dt>
          <dd>
            <t>Automated Certificate Management Environment, a
certificate management protocol <xref target="RFC8555"/>.</t>
          </dd>
          <dt>CA</dt>
          <dd>
            <t>Certification Authority, specifically one that implements the ACME protocol. In this document, the term is synonymous with "ACME server deployed by the Certification Authority".</t>
          </dd>
          <dt>CSR</dt>
          <dd>
            <t>Certificate Signing Request, specifically a PKCS#10 <xref target="RFC2986"/> Certificate Signing Request, as supported by ACME.</t>
          </dd>
          <dt>FQDN</dt>
          <dd>
            <t>Fully Qualified Domain Name.</t>
          </dd>
        </dl>
      </section>
      <section anchor="conventions-used-in-this-document">
        <name>Conventions Used in This Document</name>
        <t>
The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>
      </section>
    </section>
    <section anchor="sec-protocol-flow">
      <name>Protocol Flow</name>
      <t>This section presents the protocol flow.  For completeness, we include the ACME
profile proposed in this document as well as the ACME STAR protocol described
in <xref target="RFC8739"/>.</t>
      <section anchor="proto-preconditions">
        <name>Preconditions</name>
        <t>The protocol assumes the following preconditions are met:</t>
        <ul>
          <li>The IdO exposes an ACME server interface to the NDC(s) comprising the account
management interface.</li>
          <li>The NDC has registered an ACME account with the IdO.</li>
          <li>The NDC and IdO have agreed on a "CSR template" to use, including at a minimum:
subject name (e.g., <tt>abc.ido.example</tt>), requested algorithms and key
length, key usage, and extensions.  The NDC will use
this template for every CSR created under the same delegation.</li>
          <li>The IdO has registered an ACME account with the Certification Authority (CA).</li>
        </ul>
        <t>Note that even if the IdO implements the ACME server role, it is not acting as
a CA; in fact, from the point of view of the certificate issuance process, the
IdO only works as a "policing" forwarder of the NDC's key pair and is
responsible for completing the identity verification process towards the CA.</t>
      </section>
      <section anchor="overview">
        <name>Overview</name>
        <t>For clarity, the protocol overview presented here covers the main use case of this protocol,
namely delegation of STAR certificates. Protocol behavior for non-STAR certificates is similar,
and the detailed differences are listed in the following sections.</t>
        <t>The interaction between the NDC and the IdO is governed by the profiled ACME
workflow detailed in <xref target="sec-profile"/>.  The interaction between the IdO and the
CA is ruled by ACME <xref target="RFC8555"/>, ACME STAR <xref target="RFC8739"/>, and any other ACME extension that
applies (e.g., <xref target="I-D.ietf-acme-authority-token-tnauthlist"/> for Secure Telephone Identity Revisited (STIR)).</t>
        <t>The outline of the combined protocol for STAR certificates is as follows (<xref target="fig-endtoend"/>):</t>
        <ul>
          <li>NDC sends an Order1 for the delegated identifier to IdO.</li>
          <li>IdO creates an Order1 resource in state <tt>ready</tt> with a <tt>finalize</tt> URL.</li>
          <li>NDC immediately sends a <tt>finalize</tt> request (which includes the CSR) to the IdO.</li>
          <li>IdO verifies the CSR according to the agreed upon CSR template.</li>
          <li>If the CSR verification fails, Order1 is moved to an <tt>invalid</tt> state and
everything stops.</li>
          <li>If the CSR verification is successful, IdO moves Order1 to state
<tt>processing</tt> and sends a new Order2 (using its own account) for the delegated
identifier to the CA.</li>
          <li>If the ACME STAR protocol fails, Order2 moves to <tt>invalid</tt>, and the same state
is reflected in Order1 (i.e., the NDC Order).</li>
          <li>If the ACME STAR run is successful (i.e., Order2 is <tt>valid</tt>), IdO copies the
<tt>star-certificate</tt> URL from Order2 to Order1 and updates the Order1 state to
<tt>valid</tt>.</li>
        </ul>
        <t>The NDC can now download, install, and use the short-term certificate bearing the name delegated by the IdO. The STAR certificate can be used until it expires, at which time the NDC is guaranteed to find a new certificate it can download, install, and use. This continues with subsequent certificates until either Order1 expires or the IdO decides to cancel the automatic renewal process with the CA.</t>
        <t>Note that the interactive identifier authorization phase described in <xref target="RFC8555" section="7.5"/> is suppressed on the NDC-IdO side because the delegated
identity contained in the CSR presented to the IdO is validated against the
configured CSR template (<xref target="sec-csr-template-syntax"/>).  Therefore, the NDC
sends the <tt>finalize</tt> request, including the CSR, to the IdO immediately after
Order1 has been acknowledged.  The IdO <bcp14>SHALL</bcp14> buffer a (valid) CSR until the
Validation phase completes successfully.</t>
        <t>Also note that the successful negotiation of the unauthenticated GET (<xref target="RFC8739" section="3.4"/>) is required in order to allow the NDC to access the
<tt>star-certificate</tt> URL on the CA.</t>
        <figure anchor="fig-endtoend">
          <name>End-to-End STAR Delegation Flow</name>
          <artset>
            <artwork type="svg" name="" alt=""><svg xmlns="http://www.w3.org/2000/svg" class="diagram" version="1.1" viewBox="0 0 720.0 841.0">
                <g transform="translate(8,16)">
                  <path d="M 16,16 L 56,16" fill="none" stroke="black"/>
                  <path d="M 176,16 L 288,16" fill="none" stroke="black"/>
                  <path d="M 408,16 L 448,16" fill="none" stroke="black"/>
                  <path d="M 0,48 L 72,48" fill="none" stroke="black"/>
                  <path d="M 160,48 L 232,48" fill="none" stroke="black"/>
                  <path d="M 232,48 L 304,48" fill="none" stroke="black"/>
                  <path d="M 392,48 L 464,48" fill="none" stroke="black"/>
                  <path d="M 0,80 L 32,80" fill="none" stroke="black"/>
                  <path d="M 32,80 L 72,80" fill="none" stroke="black"/>
                  <path d="M 160,80 L 200,80" fill="none" stroke="black"/>
                  <path d="M 200,80 L 232,80" fill="none" stroke="black"/>
                  <path d="M 232,80 L 264,80" fill="none" stroke="black"/>
                  <path d="M 264,80 L 304,80" fill="none" stroke="black"/>
                  <path d="M 392,80 L 432,80" fill="none" stroke="black"/>
                  <path d="M 432,80 L 464,80" fill="none" stroke="black"/>
                  <path d="M 32,144 L 192,144" fill="none" stroke="black"/>
                  <path d="M 32,272 L 192,272" fill="none" stroke="black"/>
                  <path d="M 40,304 L 200,304" fill="none" stroke="black"/>
                  <path d="M 264,320 L 424,320" fill="none" stroke="black"/>
                  <path d="M 272,368 L 432,368" fill="none" stroke="black"/>
                  <path d="M 264,416 L 424,416" fill="none" stroke="black"/>
                  <path d="M 264,512 L 424,512" fill="none" stroke="black"/>
                  <path d="M 272,544 L 432,544" fill="none" stroke="black"/>
                  <path d="M 32,624 L 424,624" fill="none" stroke="black"/>
                  <path d="M 40,656 L 432,656" fill="none" stroke="black"/>
                  <path d="M 32,688 L 424,688" fill="none" stroke="black"/>
                  <path d="M 40,720 L 432,720" fill="none" stroke="black"/>
                  <path d="M 32,768 L 424,768" fill="none" stroke="black"/>
                  <path d="M 40,800 L 432,800" fill="none" stroke="black"/>
                  <path d="M 0,32 L 0,48" fill="none" stroke="black"/>
                  <path d="M 0,48 L 0,80" fill="none" stroke="black"/>
                  <path d="M 32,80 L 32,144" fill="none" stroke="black"/>
                  <path d="M 32,144 L 32,272" fill="none" stroke="black"/>
                  <path d="M 32,272 L 32,624" fill="none" stroke="black"/>
                  <path d="M 32,624 L 32,688" fill="none" stroke="black"/>
                  <path d="M 32,688 L 32,768" fill="none" stroke="black"/>
                  <path d="M 32,768 L 32,800" fill="none" stroke="black"/>
                  <path d="M 72,32 L 72,48" fill="none" stroke="black"/>
                  <path d="M 72,48 L 72,80" fill="none" stroke="black"/>
                  <path d="M 160,32 L 160,48" fill="none" stroke="black"/>
                  <path d="M 160,48 L 160,80" fill="none" stroke="black"/>
                  <path d="M 200,80 L 200,304" fill="none" stroke="black"/>
                  <path d="M 200,304 L 200,576" fill="none" stroke="black"/>
                  <path d="M 232,48 L 232,80" fill="none" stroke="black"/>
                  <path d="M 264,80 L 264,320" fill="none" stroke="black"/>
                  <path d="M 264,320 L 264,416" fill="none" stroke="black"/>
                  <path d="M 264,416 L 264,512" fill="none" stroke="black"/>
                  <path d="M 264,512 L 264,576" fill="none" stroke="black"/>
                  <path d="M 304,32 L 304,48" fill="none" stroke="black"/>
                  <path d="M 304,48 L 304,80" fill="none" stroke="black"/>
                  <path d="M 392,32 L 392,48" fill="none" stroke="black"/>
                  <path d="M 392,48 L 392,80" fill="none" stroke="black"/>
                  <path d="M 432,80 L 432,368" fill="none" stroke="black"/>
                  <path d="M 432,368 L 432,544" fill="none" stroke="black"/>
                  <path d="M 432,544 L 432,656" fill="none" stroke="black"/>
                  <path d="M 432,656 L 432,720" fill="none" stroke="black"/>
                  <path d="M 432,720 L 432,800" fill="none" stroke="black"/>
                  <path d="M 464,32 L 464,48" fill="none" stroke="black"/>
                  <path d="M 464,48 L 464,80" fill="none" stroke="black"/>
                  <polygon points="48.000000,304.000000 36.000000,298.399994 36.000000,309.600006" transform="rotate(180.000000, 40.000000, 304.000000)" fill="black"/>
                  <polygon points="48.000000,656.000000 36.000000,650.400024 36.000000,661.599976" transform="rotate(180.000000, 40.000000, 656.000000)" fill="black"/>
                  <polygon points="48.000000,720.000000 36.000000,714.400024 36.000000,725.599976" transform="rotate(180.000000, 40.000000, 720.000000)" fill="black"/>
                  <polygon points="48.000000,800.000000 36.000000,794.400024 36.000000,805.599976" transform="rotate(180.000000, 40.000000, 800.000000)" fill="black"/>
                  <polygon points="200.000000,144.000000 188.000000,138.399994 188.000000,149.600006" transform="rotate(0.000000, 192.000000, 144.000000)" fill="black"/>
                  <polygon points="200.000000,272.000000 188.000000,266.399994 188.000000,277.600006" transform="rotate(0.000000, 192.000000, 272.000000)" fill="black"/>
                  <polygon points="280.000000,368.000000 268.000000,362.399994 268.000000,373.600006" transform="rotate(180.000000, 272.000000, 368.000000)" fill="black"/>
                  <polygon points="280.000000,544.000000 268.000000,538.400024 268.000000,549.599976" transform="rotate(180.000000, 272.000000, 544.000000)" fill="black"/>
                  <polygon points="432.000000,320.000000 420.000000,314.399994 420.000000,325.600006" transform="rotate(0.000000, 424.000000, 320.000000)" fill="black"/>
                  <polygon points="432.000000,416.000000 420.000000,410.399994 420.000000,421.600006" transform="rotate(0.000000, 424.000000, 416.000000)" fill="black"/>
                  <polygon points="432.000000,512.000000 420.000000,506.399994 420.000000,517.599976" transform="rotate(0.000000, 424.000000, 512.000000)" fill="black"/>
                  <polygon points="432.000000,624.000000 420.000000,618.400024 420.000000,629.599976" transform="rotate(0.000000, 424.000000, 624.000000)" fill="black"/>
                  <polygon points="432.000000,688.000000 420.000000,682.400024 420.000000,693.599976" transform="rotate(0.000000, 424.000000, 688.000000)" fill="black"/>
                  <polygon points="432.000000,768.000000 420.000000,762.400024 420.000000,773.599976" transform="rotate(0.000000, 424.000000, 768.000000)" fill="black"/>
                  <path d="M 16,16 A 16,16 0 0,0 0,32" fill="none" stroke="black"/>
                  <path d="M 56,16 A 16,16 0 0,1 72,32" fill="none" stroke="black"/>
                  <path d="M 176,16 A 16,16 0 0,0 160,32" fill="none" stroke="black"/>
                  <path d="M 288,16 A 16,16 0 0,1 304,32" fill="none" stroke="black"/>
                  <path d="M 408,16 A 16,16 0 0,0 392,32" fill="none" stroke="black"/>
                  <path d="M 448,16 A 16,16 0 0,1 464,32" fill="none" stroke="black"/>
                  <circle cx="32" cy="144" r="6" fill="white" stroke="black"/>
                  <circle cx="32" cy="272" r="6" fill="white" stroke="black"/>
                  <circle cx="32" cy="624" r="6" fill="white" stroke="black"/>
                  <circle cx="32" cy="688" r="6" fill="white" stroke="black"/>
                  <circle cx="32" cy="768" r="6" fill="white" stroke="black"/>
                  <circle cx="200" cy="304" r="6" fill="white" stroke="black"/>
                  <circle cx="264" cy="320" r="6" fill="white" stroke="black"/>
                  <circle cx="264" cy="416" r="6" fill="white" stroke="black"/>
                  <circle cx="264" cy="512" r="6" fill="white" stroke="black"/>
                  <circle cx="432" cy="368" r="6" fill="white" stroke="black"/>
                  <circle cx="432" cy="544" r="6" fill="white" stroke="black"/>
                  <circle cx="432" cy="656" r="6" fill="white" stroke="black"/>
                  <circle cx="432" cy="720" r="6" fill="white" stroke="black"/>
                  <circle cx="432" cy="800" r="6" fill="white" stroke="black"/>
                  <text text-anchor="middle" font-family="monospace" x="184" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="212" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="404" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="532" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="788" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="36" fill="black" font-size="1em">I</text>
                  <text text-anchor="middle" font-family="monospace" x="248" y="68" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="212" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="484" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="580" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="40" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="676" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="644" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="308" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="356" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="532" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="580" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="612" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="756" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="132" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="612" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="676" fill="black" font-size="1em">)</text>
                  <text text-anchor="middle" font-family="monospace" x="248" y="708" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="24" y="36" fill="black" font-size="1em">N</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="68" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="440" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="292" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="500" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="532" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="676" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="756" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="68" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="180" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="212" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="356" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="452" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="612" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="676" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="416" y="36" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="676" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="756" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="532" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="292" fill="black" font-size="1em">w</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="340" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="532" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="532" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="260" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="404" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="500" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="612" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="756" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="756" fill="black" font-size="1em">G</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="416" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="676" fill="black" font-size="1em">G</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="756" fill="black" font-size="1em">(</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="212" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="612" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="644" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="676" fill="black" font-size="1em">(</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="676" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="756" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="180" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="356" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="388" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="500" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="612" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="612" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="676" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="292" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="408" y="532" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="676" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="756" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="212" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="180" fill="black" font-size="1em">y</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="196" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="260" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="452" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="580" fill="black" font-size="1em">&gt;</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="180" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="356" fill="black" font-size="1em">z</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="580" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="676" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="756" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="788" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="448" y="68" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="212" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="388" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="676" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="676" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="676" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="68" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="212" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="292" fill="black" font-size="1em">k</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="388" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="404" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="644" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="708" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="756" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="116" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="308" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="340" fill="black" font-size="1em">q</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="500" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="580" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="612" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="32" y="36" fill="black" font-size="1em">D</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="212" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="260" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="260" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="356" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="580" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="644" fill="black" font-size="1em">#</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="756" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="196" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="248" y="788" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="484" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="676" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="740" fill="black" font-size="1em">.</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="756" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="196" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="212" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="400" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="612" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="676" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="788" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="180" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="196" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="212" fill="black" font-size="1em">z</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="580" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="756" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="788" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="116" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="180" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="292" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="452" fill="black" font-size="1em">&lt;</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="612" fill="black" font-size="1em">(</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="612" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="756" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="40" y="36" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="388" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="500" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="676" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="260" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="404" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="532" fill="black" font-size="1em">w</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="532" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="612" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="788" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="292" fill="black" font-size="1em">m</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="452" fill="black" font-size="1em">V</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="676" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="756" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="404" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="416" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="580" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="580" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="612" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="676" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="756" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="416" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="212" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="244" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="452" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="612" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="424" y="36" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="212" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="260" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="356" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="404" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="580" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="612" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="612" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="196" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="756" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="708" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="196" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="196" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="244" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="388" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="452" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="580" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="580" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="180" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="644" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="400" y="340" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="612" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="116" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="612" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="248" y="644" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="580" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="260" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="292" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="340" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="580" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="180" fill="black" font-size="1em">N</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="132" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="180" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="308" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="356" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="580" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="676" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="676" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="16" y="68" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="756" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="708" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="308" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="388" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="452" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="424" y="452" fill="black" font-size="1em">&gt;</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="580" fill="black" font-size="1em">-</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="580" fill="black" font-size="1em">&lt;</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="676" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="180" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="244" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="292" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="340" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="404" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="40" y="580" fill="black" font-size="1em">&lt;</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="708" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="196" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="68" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="356" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="676" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="68" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="32" y="68" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="116" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="132" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="500" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="756" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="440" y="36" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="388" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="408" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="676" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="676" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="740" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="68" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="132" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="196" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="532" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="580" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="580" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="788" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="116" fill="black" font-size="1em">O</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="788" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="580" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="580" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="676" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="708" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="756" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="756" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="388" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="196" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="196" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="340" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="24" y="68" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="196" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="400" y="356" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="612" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="708" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="756" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="196" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="260" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="612" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="612" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="612" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="676" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="212" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="756" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="408" y="68" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="132" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="308" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="308" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="340" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="612" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="676" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="68" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="708" fill="black" font-size="1em">#</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="676" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="356" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="612" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="676" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="788" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="116" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="132" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="132" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="292" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="644" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="740" fill="black" font-size="1em">.</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="756" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="68" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="292" fill="black" font-size="1em">O</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="308" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="500" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="580" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="644" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="676" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="356" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="292" fill="black" font-size="1em">2</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="532" fill="black" font-size="1em">m</text>
                  <text text-anchor="middle" font-family="monospace" x="400" y="580" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="644" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="756" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="212" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="452" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="500" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="212" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="212" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="452" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="612" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="612" fill="black" font-size="1em">)</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="708" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="756" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="180" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="532" fill="black" font-size="1em">k</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="580" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="432" y="68" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="132" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="196" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="292" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="452" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="708" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="756" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="36" fill="black" font-size="1em">O</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="756" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="180" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="292" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="408" y="580" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="612" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="612" fill="black" font-size="1em">G</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="612" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="676" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="68" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="756" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="404" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="580" fill="black" font-size="1em">w</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="580" fill="black" font-size="1em">w</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="756" fill="black" font-size="1em">)</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="356" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="424" y="68" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="196" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="452" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="612" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="676" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="740" fill="black" font-size="1em">.</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="36" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="788" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="756" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="132" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="356" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="580" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="580" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="612" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="644" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="676" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="432" y="36" fill="black" font-size="1em">M</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="676" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="260" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="580" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="612" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="612" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="644" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="708" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="708" fill="black" font-size="1em">2</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="68" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="484" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="532" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="644" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="708" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="404" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="400" y="532" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="788" fill="black" font-size="1em">#</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="388" fill="black" font-size="1em">p</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="308" fill="black" font-size="1em">g</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="308" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="340" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="500" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="612" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="612" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="756" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="788" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="756" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="356" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="452" fill="black" font-size="1em">~</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="532" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="424" y="580" fill="black" font-size="1em">&gt;</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="644" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="740" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="756" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="788" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="756" fill="black" font-size="1em">f</text>
                </g>
              </svg>
            </artwork>
            <artwork type="ascii-art" name="" alt="">
 .------.            .---------------.            .------.
|  NDC   |          |       IdO       |          |  ACME  |
+--------+          +--------+--------+          +--------+
| Client |          | Server | Client |          | Server |
'---+----'          '----+---+---+----'          '----+---'
    |                    |       |                    |
    |   Order1           |       |                    |
    |   Signature        |       |                    |
    o-------------------&gt;|       |                    |
    |                    |       |                    |
    | [ No identity    ] |       |                    |
    | [ validation via ] |       |                    |
    | [ authorizations ] |       |                    |
    |                    |       |                    |
    |   CSR              |       |                    |
    |   Signature        |       |                    |
    o-------------------&gt;|       |                    |
    |   Acknowledgement  |       |   Order2           |
    |&lt;-------------------o       |   Signature        |
    |                    |       o-------------------&gt;|
    |                    |       |         Required   |
    |                    |       |   Authorizations   |
    |                    |       |&lt;-------------------o
    |                    |       |   Responses        |
    |                    |       |   Signature        |
    |                    |       o-------------------&gt;|
    |                    |       |                    |
    |                    |       |&lt;~~~~Validation~~~~&gt;|
    |                    |       |                    |
    |                    |       |   CSR              |
    |                    |       |   Signature        |
    |                    |       o-------------------&gt;|
    |                    |       |   Acknowledgement  |
    |                    |       |&lt;-------------------o
    |                    |       |                    |
    |&lt;~~Await issuance~-&gt;|       |&lt;~~Await issuance~~&gt;|
    |                                                 |
    |     (unauthenticated) GET STAR certificate      |
    o------------------------------------------------&gt;|
    |                 Certificate #1                  |
    |&lt;------------------------------------------------o
    |     (unauthenticated) GET STAR certificate      |
    o------------------------------------------------&gt;|
    |                 Certificate #2                  |
    |&lt;------------------------------------------------o
    |                     [...]                       |
    |     (unauthenticated) GET STAR certificate      |
    o------------------------------------------------&gt;|
    |                 Certificate #n                  |
    |&lt;------------------------------------------------o

</artwork>
          </artset>
        </figure>
      </section>
      <section anchor="sec-profile">
        <name>Delegated Identity Profile</name>
        <t>This section defines a profile of the ACME protocol to be used between the NDC
and IdO.</t>
        <section anchor="sec-profile-dele-config">
          <name>Delegation Configuration</name>
          <t>The IdO must be preconfigured to recognize one or more NDCs and present them with
details about certificate delegations that apply to each one.</t>
          <section anchor="account-object-extensions">
            <name>Account Object Extensions</name>
            <t>An NDC identifies itself to the IdO as an ACME account.  The IdO can delegate
multiple names to an NDC, and these configurations are described through
<tt>delegation</tt> objects associated with the NDC's account object on the IdO.</t>
            <t>As shown in <xref target="fig-account-object"/>, the ACME account resource on the IdO is
extended with a new <tt>delegations</tt> attribute:</t>
            <dl>
              <dt>delegations (required, string):</dt>
              <dd>A URL from which a list of delegations
configured for this account (<xref target="sec-delegation-objects"/>) can be fetched via a
POST-as-GET request.</dd>
            </dl>
            <figure anchor="fig-account-object">
              <name>Example Account Object with Delegations</name>
              <artwork name="" type="" alt="">
{
  "status": "valid",
  "contact": [
    "mailto:delegation-admin@ido.example"
  ],
  "termsOfServiceAgreed": true,
  "orders": "https://example.com/acme/orders/saHpfB",
  "delegations": "https://acme.ido.example/acme/delegations/adFqoz"
}
</artwork>
            </figure>
          </section>
          <section anchor="delegation-lists">
            <name>Delegation Lists</name>
            <t>Each account object includes a <tt>delegations</tt> URL from which a list of
delegation configurations created by the IdO can be fetched via a POST-as-GET
request.  The result of the request <bcp14>MUST</bcp14> be a JSON object whose <tt>delegations</tt>
field is an array of URLs, each identifying a delegation configuration made
available to the NDC account (<xref target="sec-delegation-objects"/>).  The server <bcp14>MAY</bcp14>
return an incomplete list, along with a <tt>Link</tt> header field with a <tt>next</tt> link
relation indicating where further entries can be acquired.</t>
            <sourcecode name="" type="json"><![CDATA[
HTTP/1.1 200 OK
Content-Type: application/json
Link: <https://acme.ido.example/acme/directory>;rel="index"
Link: <https://acme.ido.example/acme/delegations/adFqoz?/
      cursor=2>;rel="next"

{
  "delegations": [
    "https://acme.ido.example/acme/delegation/ogfr8EcolOT",
    "https://acme.ido.example/acme/delegation/wSi5Lbb61E4",
    /* more URLs not shown for example brevity */
    "https://acme.ido.example/acme/delegation/gm0wfLYHBen"
  ]
}
]]>
</sourcecode>
            <t>Note that in the figure above, https://acme.ido.example/acme/delegations/adFqoz?cursor=2 includes a line break
for the sake of presentation.</t>
          </section>
          <section anchor="sec-delegation-objects">
            <name>Delegation Objects</name>
            <t>This profile extends the ACME resource model with a new read-only <tt>delegation</tt>
object that represents a delegation configuration that applies to a given NDC.</t>
            <t>A <tt>delegation</tt> object contains the CSR template (see <xref target="sec-csr-template"/>) that
applies to that delegation and, optionally, any related CNAME mapping for the
delegated identifiers.  Its structure is as follows:</t>
            <dl>
              <dt>csr-template (required, object):</dt>
              <dd>CSR template, as defined in
<xref target="sec-csr-template"/>.</dd>
              <dt>cname-map (optional, object):</dt>
              <dd>A map of FQDN pairs.  In each pair, the name is
the delegated identifier; the value is the corresponding NDC name that is
aliased in the IdO's zone file to redirect the resolvers to the delegated
entity.  Both names and values <bcp14>MUST</bcp14> be FQDNs with a terminating '.'.
This field is only meaningful for identifiers of type <tt>dns</tt>.</dd>
            </dl>
            <t>An example <tt>delegation</tt> object in JSON format is shown in
<xref target="fig-configuration-object"/>.</t>
            <figure anchor="fig-configuration-object">
              <name>Example Delegation Configuration Object</name>
              <sourcecode name="" type="json"><![CDATA[
{
  "csr-template": {
    "keyTypes": [
      {
        "PublicKeyType": "id-ecPublicKey",
        "namedCurve": "secp256r1",
        "SignatureType": "ecdsa-with-SHA256"
      }
    ],
    "subject": {
      "country": "CA",
      "stateOrProvince": "**",
      "locality": "**"
    },
    "extensions": {
      "subjectAltName": {
        "DNS": [
          "abc.ido.example"
        ]
      },
      "keyUsage": [
        "digitalSignature"
      ],
      "extendedKeyUsage": [
        "serverAuth"
      ]
    }
  },
  "cname-map": {
    "abc.ido.example.": "abc.ndc.example."
  }
}
]]>
</sourcecode>
            </figure>
            <t>In order to indicate which specific delegation applies to the requested
certificate, a new <tt>delegation</tt> attribute is added to the
order object on the NDC-IdO side (see Figures <xref target="fig-star-ndc-neworder" format="counter"/>
and <xref target="fig-non-star-ndc-neworder" format="counter"/>).  The
value of this attribute is the URL pointing to the delegation configuration
object that is to be used for this certificate request.  If the <tt>delegation</tt>
attribute in the order object contains a URL that does not correspond to a
configuration available to the requesting ACME account, the IdO <bcp14>MUST</bcp14> return an error
response with status code 403 (Forbidden), providing a problem document
<xref target="RFC7807"/> with type <tt>urn:ietf:params:acme:error:unknownDelegation</tt>.</t>
          </section>
        </section>
        <section anchor="sec-profile-star-order-journey">
          <name>Order Object Transmitted from NDC to IdO and to ACME Server (STAR)</name>
          <t>If the delegation is for a STAR certificate, the request object created by the
NDC:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> have a <tt>delegation</tt> attribute indicating the preconfigured delegation
that applies to this Order;</li>
            <li>
              <bcp14>MUST</bcp14> have entries in the <tt>identifiers</tt> field for each delegated name
present in the configuration;</li>
            <li>
              <bcp14>MUST NOT</bcp14> contain the <tt>notBefore</tt> and <tt>notAfter</tt> fields; and</li>
            <li>
              <bcp14>MUST</bcp14> contain an <tt>auto-renewal</tt> object and, inside it, the fields
listed in <xref target="RFC8739" section="3.1.1"/>.  In particular, the
<tt>allow-certificate-get</tt> attribute <bcp14>MUST</bcp14> be present and set to true.</li>
          </ul>
          <figure anchor="fig-star-ndc-neworder">
            <name>New STAR Order from NDC</name>
            <sourcecode name="" type="json"><![CDATA[
POST /acme/new-order HTTP/1.1
Host: acme.ido.example
Content-Type: application/jose+json

{
  "protected": base64url({
    "alg": "ES256",
    "kid": "https://acme.ido.example/acme/acct/evOfKhNU60wg",
    "nonce": "Alc00Ap6Rt7GMkEl3L1JX5",
    "url": "https://acme.ido.example/acme/new-order"
  }),
  "payload": base64url({
    "identifiers": [
      {
        "type": "dns",
        "value": "abc.ido.example"
      }
    ],
    "auto-renewal": {
      "end-date": "2021-04-20T00:00:00Z",
      "lifetime": 345600,          // 4 days
      "allow-certificate-get": true
    },
    "delegation":
      "https://acme.ido.example/acme/delegation/gm0wfLYHBen"
  }),
  "signature": "g454e3hdBlkT4AEw...nKePnUyZTjGtXZ6H"
}
]]>
</sourcecode>
          </figure>
          <t>The order object that is created on the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> start in the <tt>ready</tt> state;</li>
            <li>
              <bcp14>MUST</bcp14> contain an <tt>authorizations</tt> array with zero elements;</li>
            <li>
              <bcp14>MUST</bcp14> contain the indicated <tt>delegation</tt> configuration;</li>
            <li>
              <bcp14>MUST</bcp14> contain the indicated <tt>auto-renewal</tt> settings; and</li>
            <li>
              <bcp14>MUST NOT</bcp14> contain the <tt>notBefore</tt> and <tt>notAfter</tt> fields.</li>
          </ul>
          <figure anchor="fig-star-ido-order-resource-created">
            <name>STAR Order Resource Created on IdO</name>
            <sourcecode name="" type="json"><![CDATA[
{
  "status": "ready",
  "expires": "2021-05-01T00:00:00Z",

  "identifiers": [
   {
     "type": "dns",
     "value": "abc.ido.example"
   }
  ],

  "auto-renewal": {
    "end-date": "2021-04-20T00:00:00Z",
    "lifetime": 345600,
    "allow-certificate-get": true
  },

  "delegation":
    "https://acme.ido.example/acme/delegation/gm0wfLYHBen",

  "authorizations": [],

  "finalize": "https://acme.ido.example/acme/order/TO8rfgo/finalize"
}
]]>
</sourcecode>
          </figure>
          <t>The Order is then finalized by the NDC supplying the CSR containing the
delegated identifiers.  The IdO checks the provided CSR against the template
contained in the <tt>delegation</tt> object that applies to this request, as described in
<xref target="sec-csr-template-syntax"/>.  If the CSR fails validation for any of the
identifiers, the IdO <bcp14>MUST</bcp14> return an error response with status code 403
(Forbidden) and an appropriate type, e.g., <tt>rejectedIdentifier</tt> or <tt>badCSR</tt>.
The error response <bcp14>SHOULD</bcp14> contain subproblems (<xref target="RFC8555" section="6.7.1"/>)
for each failed identifier.  If the CSR is successfully validated, the order
object status moves to <tt>processing</tt> and the twin ACME protocol instance is
initiated on the IdO-CA side.</t>
          <t>The request object created by the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> copy the identifiers sent by the NDC;</li>
            <li>
              <bcp14>MUST</bcp14> strip the <tt>delegation</tt> attribute; and</li>
            <li>
              <bcp14>MUST</bcp14> carry a copy of the <tt>auto-renewal</tt> object sent by the NDC.</li>
          </ul>
          <t>When the identifiers' authorization has been successfully completed and the
certificate has been issued by the CA, the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> move its Order resource status to <tt>valid</tt> and</li>
            <li>
              <bcp14>MUST</bcp14> copy the <tt>star-certificate</tt> field from the STAR Order returned by the CA
into its Order resource.  When dereferenced, the <tt>star-certificate</tt> URL
includes (via the <tt>Cert-Not-Before</tt> and <tt>Cert-Not-After</tt> HTTP header fields) the renewal timers
needed by the NDC to inform its certificate reload logic.</li>
          </ul>
          <figure anchor="fig-star-ido-order-resource-updated">
            <name>STAR Order Resource Updated on IdO</name>
            <sourcecode name="" type="json"><![CDATA[
{
  "status": "valid",
  "expires": "2021-05-01T00:00:00Z",

  "identifiers": [
   {
     "type": "dns",
     "value": "abc.ido.example"
   }
  ],

  "auto-renewal": {
    "end-date": "2021-04-20T00:00:00Z",
    "lifetime": 345600,
    "allow-certificate-get": true
  },

  "delegation":
    "https://acme.ido.example/acme/delegation/gm0wfLYHBen",

  "authorizations": [],

  "finalize": "https://acme.ido.example/acme/order/TO8rfgo/finalize",

  "star-certificate": "https://acme.ca.example/acme/order/yTr23sSDg9"
}
]]>
</sourcecode>
          </figure>
          <t>This delegation protocol is predicated on the NDC being able to fetch
certificates periodically using an unauthenticated HTTP GET, since, in general,
the NDC does not possess an account on the CA; as a consequence, it cannot issue the
standard POST-as-GET ACME request. Therefore, before forwarding the Order
request to the CA, the IdO <bcp14>SHOULD</bcp14> ensure that the selected CA supports
unauthenticated GET by inspecting the relevant settings in the CA's
directory object, as per <xref target="RFC8739" section="3.4"/>.  If the CA does not
support unauthenticated GET of STAR certificates, the IdO <bcp14>MUST NOT</bcp14> forward
the Order request.  Instead, it <bcp14>MUST</bcp14> move the Order status to <tt>invalid</tt> and set
the <tt>allow-certificate-get</tt> in the <tt>auto-renewal</tt> object to <tt>false</tt>.  The same
occurs in case the Order request is forwarded and the CA does not reflect the
<tt>allow-certificate-get</tt> setting in its Order resource.  The combination of
<tt>invalid</tt> status and denied <tt>allow-certificate-get</tt> in the Order resource at
the IdO provides an unambiguous (asynchronous) signal to the NDC about the
failure reason.</t>
          <section anchor="sec-cname-installation">
            <name>CNAME Installation</name>
            <t>If one of the objects in the <tt>identifiers</tt> list is of type <tt>dns</tt>, the IdO can add the
CNAME records specified in the <tt>delegation</tt> object to its zone, for example:</t>
            <artwork name="" type="" alt="">
   abc.ido.example. CNAME abc.ndc.example.
</artwork>
          </section>
        </section>
        <section anchor="sec-profile-non-star-order-journey">
          <name>Order Object Transmitted from NDC to IdO and to ACME Server (Non-STAR)</name>
          <t>If the delegation is for a non-STAR certificate, the request object created by
the NDC:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> have a <tt>delegation</tt> attribute indicating the preconfigured delegation
that applies to this Order;</li>
            <li>
              <bcp14>MUST</bcp14> have entries in the <tt>identifiers</tt> field for each delegated name
present in the configuration; and</li>
            <li>
              <bcp14>MUST</bcp14> have the <tt>allow-certificate-get</tt> attribute set to true.</li>
          </ul>
          <figure anchor="fig-non-star-ndc-neworder">
            <name>New Non-STAR Order from NDC</name>
            <sourcecode name="" type="json"><![CDATA[
POST /acme/new-order HTTP/1.1
Host: acme.ido.example
Content-Type: application/jose+json

{
  "protected": base64url({
    "alg": "ES256",
    "kid": "https://acme.ido.example/acme/acct/evOfKhNU60wg",
    "nonce": "IYBkoQfaCS80UcCn9qH8Gt",
    "url": "https://acme.ido.example/acme/new-order"
  }),
  "payload": base64url({
    "identifiers": [
      {
        "type": "dns",
        "value": "abc.ido.example"
      }
    ],
    "delegation":
      "https://acme.ido.example/acme/delegation/gm0wfLYHBen",
    "allow-certificate-get": true
  }),
  "signature": "j9JBUvMigi4zodud...acYkEKaa8gqWyZ6H"
}
]]>
</sourcecode>
          </figure>
          <t>The order object that is created on the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> start in the <tt>ready</tt> state;</li>
            <li>
              <bcp14>MUST</bcp14> contain an <tt>authorizations</tt> array with zero elements;</li>
            <li>
              <bcp14>MUST</bcp14> contain the indicated <tt>delegation</tt> configuration; and</li>
            <li>
              <bcp14>MUST</bcp14> contain the indicated <tt>allow-certificate-get</tt> setting.</li>
          </ul>
          <figure anchor="fig-non-star-ido-order-resource-created">
            <name>Non-STAR Order Resource Created on IdO</name>
            <sourcecode name="" type="json"><![CDATA[
{
  "status": "ready",
  "expires": "2021-05-01T00:00:00Z",

  "identifiers": [
   {
     "type": "dns",
     "value": "abc.ido.example"
   }
  ],

  "delegation":
    "https://acme.ido.example/acme/delegation/gm0wfLYHBen",

  "allow-certificate-get": true,

  "authorizations": [],

  "finalize": "https://acme.ido.example/acme/order/3ZDlhYy/finalize"
}
]]>
</sourcecode>
          </figure>
          <t>The Order finalization by the NDC and the subsequent validation of the CSR by
the IdO proceed in the same way as for the STAR case.  If the CSR is
successfully validated, the order object status moves to <tt>processing</tt> and the
twin ACME protocol instance is initiated on the IdO-CA side.</t>
          <t>The request object created by the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> copy the identifiers sent by the NDC;</li>
            <li>
              <bcp14>MUST</bcp14> strip the <tt>delegation</tt> attribute; and</li>
            <li>
              <bcp14>MUST</bcp14> copy the <tt>allow-certificate-get</tt> attribute.</li>
          </ul>
          <t>When the identifiers' authorization has been successfully completed and the
certificate has been issued by the CA, the IdO:</t>
          <ul>
            <li>
              <bcp14>MUST</bcp14> move its Order resource status to <tt>valid</tt> and</li>
            <li>
              <bcp14>MUST</bcp14> copy the <tt>certificate</tt> field from the Order returned by the CA into its
Order resource, as well as <tt>notBefore</tt> and <tt>notAfter</tt> if these fields exist.</li>
          </ul>
          <figure anchor="fig-non-star-ido-order-resource-updated">
            <name>Non-STAR Order Resource Updated on IdO</name>
            <sourcecode name="" type="json"><![CDATA[
{
  "status": "valid",
  "expires": "2021-05-01T00:00:00Z",

  "identifiers": [
   {
     "type": "dns",
     "value": "abc.ido.example"
   }
  ],

  "delegation":
    "https://acme.ido.example/acme/delegation/gm0wfLYHBen",

  "allow-certificate-get": true,

  "authorizations": [],

  "finalize": "https://acme.ido.example/acme/order/3ZDlhYy/finalize",

  "certificate": "https://acme.ca.example/acme/order/YtR23SsdG9"
}
]]>
</sourcecode>
          </figure>
          <t>At this point of the protocol flow, the same considerations as in
<xref target="sec-cname-installation"/> apply.</t>
          <t>Before forwarding the Order request to the CA, the IdO <bcp14>SHOULD</bcp14> ensure that the
selected CA supports unauthenticated GET by inspecting the relevant settings
in the CA's directory object, as per <xref target="sec-nego-allow-cert-get"/>.  If the CA
does not support unauthenticated GET of certificate resources, the IdO <bcp14>MUST
NOT</bcp14> forward the Order request.  Instead, it <bcp14>MUST</bcp14> move the Order status to
<tt>invalid</tt> and set the <tt>allow-certificate-get</tt> attribute to <tt>false</tt>.  The same
occurs in case the Order request is forwarded and the CA does not reflect the
<tt>allow-certificate-get</tt> setting in its Order resource.  The combination of
<tt>invalid</tt> status and denied <tt>allow-certificate-get</tt> in the Order resource at
the IdO provides an unambiguous (asynchronous) signal to the NDC about the
failure reason.</t>
        </section>
        <section anchor="capability-discovery">
          <name>Capability Discovery</name>
          <t>In order to help a client discover support for this profile, the directory
object of an ACME server (typically, one deployed by the IdO) contains the
following attribute in the <tt>meta</tt> field:</t>
          <dl spacing="compact">
            <dt>delegation-enabled (optional, boolean):</dt>
            <dd>Boolean flag indicating support for
the profile specified in this memo.  An ACME server that supports this
delegation profile <bcp14>MUST</bcp14> include this key and <bcp14>MUST</bcp14> set it to true.</dd>
          </dl>
          <t>The IdO <bcp14>MUST</bcp14> declare its support for delegation using <tt>delegation-enabled</tt>
regardless of whether it supports delegation of STAR certificates, non-STAR
certificates, or both.</t>
          <t>In order to help a client discover support for certificate fetching using
unauthenticated HTTP GET, the directory object of an ACME server (typically,
one deployed by the CA) contains the following attribute in the <tt>meta</tt> field:</t>
          <dl spacing="compact">
            <dt>allow-certificate-get (optional, boolean):</dt>
            <dd>See <xref target="sec-nego-allow-cert-get"/>.</dd>
          </dl>
        </section>
        <section anchor="sec-nego-allow-cert-get">
          <name>Negotiating an Unauthenticated GET</name>
          <t>In order to enable the name delegation of non-STAR certificates, this document
defines a mechanism that allows a server to advertise support for accessing
certificate resources via unauthenticated GET (in addition to
POST-as-GET) and a client to enable this service with per-Order granularity.</t>
          <t>It is worth pointing out that the protocol elements described in this section
have the same names and semantics as those introduced in
<xref target="RFC8739" section="3.4"/> for the STAR use case (except, of course, they apply to the
certificate resource rather than the star-certificate resource).  However, they
differ in terms of their position in the directory meta and order objects;
rather than being wrapped in an <tt>auto-renewal</tt> subobject, they are located at the
top level.</t>
          <t anchor="capability-metadata">A server states its availability to grant unauthenticated access to a client's
Order certificate by setting the <tt>allow-certificate-get</tt> attribute to <tt>true</tt> in
	  the <tt>meta</tt> field inside the directory object:</t>
          <dl spacing="compact">
            <dt>allow-certificate-get (optional, boolean):</dt>
            <dd>If this field is present and set
to <tt>true</tt>, the server allows GET (and HEAD) requests to certificate URLs.</dd>
          </dl>
          <t>A client states its desire to access the issued certificate via unauthenticated
GET by adding an <tt>allow-certificate-get</tt> attribute to the payload of its
newOrder request and setting it to <tt>true</tt>.</t>
          <dl spacing="compact">
            <dt>allow-certificate-get (optional, boolean):</dt>
            <dd>If this field is present and set
to <tt>true</tt>, the client requests the server to allow unauthenticated GET (and
HEAD) to the certificate associated with this Order.</dd>
          </dl>
          <t>If the server accepts the request, it <bcp14>MUST</bcp14> reflect the attribute setting in the
resulting order object.</t>
          <t>Note that even when the use of unauthenticated GET has been agreed upon, the
server <bcp14>MUST</bcp14> also allow POST-as-GET requests to the certificate resource.</t>
        </section>
        <section anchor="terminating-the-delegation">
          <name>Terminating the Delegation</name>
          <t>Identity delegation is terminated differently depending on whether or not this is a STAR certificate.</t>
          <section anchor="by-cancellation-star">
            <name>By Cancellation (STAR)</name>
            <t>The IdO can terminate the delegation of a STAR certificate by requesting its
cancellation (see <xref target="RFC8739" section="3.1.2"/>).</t>
            <t>Cancellation of the ACME STAR certificate is a
prerogative of the IdO.  The NDC does not own the relevant account key on the
CA; therefore, it can't issue a cancellation request for the STAR certificate.
Potentially, since it holds the STAR certificate's private key, it could request the
revocation of a single STAR certificate.  However, STAR explicitly disables the
revokeCert interface.</t>
            <t>Shortly after the automatic renewal process is stopped by the IdO, the last
issued STAR certificate expires and the delegation terminates.</t>
          </section>
          <section anchor="by-revocation-non-star">
            <name>By Revocation (Non-STAR)</name>
            <t>The IdO can terminate the delegation of a non-STAR certificate by requesting it
to be revoked using the <tt>revokeCert</tt> URL exposed by the CA.</t>
            <t>According to <xref target="RFC8555" section="7.6"/>, the revocation endpoint can be used
with either the account key pair or the certificate key pair. In other words, an
NDC that learns the <tt>revokeCert</tt> URL of the CA (which is publicly available via
the CA's directory object) would be able to revoke the certificate using the
associated private key. However, given the trust relationship between the NDC and
IdO expected by the delegation trust model (<xref target="sec-trust-model"/>), as well as
the lack of incentives for the NDC to prematurely terminate the delegation,
this does not represent a significant security risk.</t>
          </section>
        </section>
      </section>
      <section anchor="proxy-behavior">
        <name>Proxy Behavior</name>
        <t>There are cases where the ACME Delegation flow should be proxied, such as the
use case described in <xref target="sec-cdni-dele"/>. This section describes the behavior of
such proxies.</t>
        <t>An entity implementing the IdO server role -- an "ACME Delegation server" --
may behave, on a per-identity case, either as a proxy into another ACME Delegation
server or as an IdO and obtain a certificate directly.
The determining factor is whether it can successfully be authorized by
the next-hop ACME server for the identity associated with the certificate request.</t>
        <t>The identities supported by each server and the disposition for each of them
are preconfigured.</t>
        <t>Following is the proxy's behavior for each of the messages exchanged in the
ACME Delegation process:</t>
        <dl spacing="compact" newline="true">
          <dt>New-order request:</dt>
          <dd>
            <ul spacing="compact">
              <li>The complete <tt>identifiers</tt> attribute <bcp14>MUST</bcp14> be copied as is.</li>
              <li>Similarly, the <tt>auto-renewal</tt> object <bcp14>MUST</bcp14> be copied as is.</li>
            </ul>
          </dd>
          <dt>New-order response:</dt>
          <dd>
            <ul spacing="compact">
              <li>The <tt>status</tt>, <tt>expires</tt>, <tt>authorizations</tt>, <tt>identifiers</tt>, and <tt>auto-renewal</tt>
attributes/objects <bcp14>MUST</bcp14> be copied as is.</li>
              <li>The <tt>finalize</tt> URL is rewritten so that the <tt>finalize</tt> request will be
made to the proxy.</li>
              <li>Similarly, the <tt>Location</tt> header <bcp14>MUST</bcp14> be rewritten to point to an order object on the proxy.</li>
              <li>Any <tt>Link</tt> relations <bcp14>MUST</bcp14> be rewritten to point to the proxy.</li>
            </ul>
          </dd>
          <dt>Get Order response:</dt>
          <dd>
            <ul spacing="compact">
              <li>The <tt>status</tt>, <tt>expires</tt>, <tt>authorizations</tt>, <tt>identifiers</tt>, and <tt>auto-renewal</tt>
attributes/objects <bcp14>MUST</bcp14> be copied as is.</li>
              <li>Similarly, the <tt>star-certificate</tt> URL (or the <tt>certificate</tt> URL in case of
non-STAR requests) <bcp14>MUST</bcp14> be copied as is.</li>
              <li>The <tt>finalize</tt> URL is rewritten so that the <tt>finalize</tt> request will be
made to the proxy.</li>
              <li>The <tt>Location</tt> header <bcp14>MUST</bcp14> be rewritten to point to an order object on the proxy.</li>
              <li>Any <tt>Link</tt> relations <bcp14>MUST</bcp14> be rewritten to point to the proxy.</li>
            </ul>
          </dd>
          <dt><tt>finalize</tt> request:</dt>
          <dd>
            <ul spacing="compact">
              <li>The CSR <bcp14>MUST</bcp14> be copied as is.</li>
            </ul>
          </dd>
          <dt><tt>finalize</tt> response:</dt>
          <dd>
            <ul spacing="compact">
              <li>The <tt>Location</tt> header, <tt>Link</tt> relations, and the <tt>finalize</tt> URLs are rewritten as for Get Order.</li>
            </ul>
          </dd>
        </dl>
        <t>We note that all the above messages are authenticated; therefore, each proxy
must be able to authenticate any subordinate server.</t>
      </section>
    </section>
    <section anchor="sec-ca-behavior">
      <name>CA Behavior</name>
      <t>Although most of this document, and in particular <xref target="sec-protocol-flow"/>, is focused on the protocol between the NDC and IdO, the protocol does affect the ACME server running in the CA. A CA that wishes to support certificate delegation <bcp14>MUST</bcp14> also support unauthenticated certificate fetching, which it declares using <tt>allow-certificate-get</tt> (<xref target="capability-metadata"/>).</t>
    </section>
    <section anchor="sec-csr-template">
      <name>CSR Template</name>
      <t>The CSR template is used to express and constrain the shape of the CSR that the
NDC uses to request the certificate.  The CSR is used for every certificate
created under the same delegation.  Its validation by the IdO is a critical
element in the security of the whole delegation mechanism.</t>
      <t>Instead of defining every possible CSR attribute, this document takes a
minimalist approach by declaring only the minimum attribute set and deferring
the registration of further, more-specific attributes to future documents.</t>
      <section anchor="sec-csr-template-syntax">
        <name>Template Syntax</name>
        <t>The template is a JSON document. Each field (with the exception of <tt>keyTypes</tt>, see below) denotes one of the following:</t>
        <ul>
          <li>A mandatory field where the template specifies the literal value of that
field. This is denoted by a literal string, such as <tt>abc.ido.example</tt>.</li>
          <li>A mandatory field where the content of the field is defined by the client.
This is denoted by <tt>**</tt>.</li>
          <li>An optional field where the client decides whether the field is included in
the CSR and, if so, what its value is. This is denoted by <tt>*</tt>.</li>
        </ul>
        <t>The NDC <bcp14>MUST NOT</bcp14> include any fields in the CSR, including any extensions, unless they are specified in the
template.</t>
        <t>The structure of the template object is defined by the Concise Data Definition Language (CDDL) <xref target="RFC8610"/> document in <xref target="csr-template-schema-cddl"/>.
An alternative, nonnormative JSON Schema syntax is given in <xref target="csr-template-schema"/>.
While the CSR template must follow the syntax defined here, neither the IdO nor
the NDC are expected to validate it at runtime.</t>
        <t>The <tt>subject</tt> field and its subfields are mapped into the <tt>subject</tt> field of the CSR, as per <xref target="RFC5280" section="4.1.2.6"/>. Other extension fields of the CSR template are mapped into the CSR according to the table in <xref target="csr-template-registry"/>.</t>
        <t>The <tt>subjectAltName</tt> field is currently defined for the following identifiers:
DNS names, email addresses, and URIs.  New identifier types may be added in the
future by documents that extend this specification.  Each new identifier type
<bcp14>SHALL</bcp14> have an associated identifier validation challenge that the CA can
use to obtain proof of the requester's control over it.</t>
        <t>The <tt>keyTypes</tt> property is not copied into the CSR. Instead, this property constrains the <tt>SubjectPublicKeyInfo</tt> field of the CSR, which <bcp14>MUST</bcp14> have the type/size defined by one of the array members of the <tt>keyTypes</tt> property.</t>
        <t>When the IdO receives the CSR, it <bcp14>MUST</bcp14> verify that the CSR is consistent
with the template contained in the <tt>delegation</tt> object referenced in the Order. The IdO <bcp14>MAY</bcp14> enforce additional
constraints, e.g., by restricting field lengths.  In this regard, note that a
<tt>subjectAltName</tt> of type <tt>DNS</tt> can be specified using the wildcard notation,
meaning that the NDC can be required (<tt>**</tt>) or offered the possibility (<tt>*</tt>) to
define the delegated domain name by itself.  If this is the case, the IdO <bcp14>MUST</bcp14>
apply application-specific checks on top of the control rules already provided
by the CSR template to ensure the requested domain name is legitimate according
to its local policy.</t>
      </section>
      <section anchor="example">
        <name>Example</name>
        <t>The CSR template in <xref target="fig-csr-template"/> represents one possible CSR template
governing the delegation exchanges provided in the rest of this document.</t>
        <figure anchor="fig-csr-template">
          <name>Example CSR Template</name>
          <sourcecode name="" type="json"><![CDATA[
{
  "keyTypes": [
    {
      "PublicKeyType": "rsaEncryption",
      "PublicKeyLength": 2048,
      "SignatureType": "sha256WithRSAEncryption"
    },
    {
      "PublicKeyType": "id-ecPublicKey",
      "namedCurve": "secp256r1",
      "SignatureType": "ecdsa-with-SHA256"
    }
  ],
  "subject": {
    "country": "CA",
    "stateOrProvince": "**",
    "locality": "**"
  },
  "extensions": {
    "subjectAltName": {
      "DNS": [
        "abc.ido.example"
      ]
    },
    "keyUsage": [
      "digitalSignature"
    ],
    "extendedKeyUsage": [
      "serverAuth",
      "clientAuth"
    ]
  }
}
]]>
</sourcecode>
        </figure>
      </section>
    </section>
    <section anchor="further-use-cases">
      <name>Further Use Cases</name>
      <t>This nonnormative section describes additional use cases implementing the STAR certificate
delegation in nontrivial ways.</t>
      <section anchor="cdn-interconnection-cdni">
        <name>CDN Interconnection (CDNI)</name>
        <t><xref target="I-D.ietf-cdni-interfaces-https-delegation"/> discusses several solutions
addressing different delegation requirements for the CDN Interconnection (CDNI)
environment.  This section discusses two of the stated requirements in the
context of the STAR delegation workflow.</t>
        <t>This section uses specific CDNI terminology, e.g., Upstream CDN (uCDN) and Downstream (dCDN), as defined in <xref target="RFC7336"/>.</t>
        <section anchor="multiple-parallel-delegates">
          <name>Multiple Parallel Delegates</name>
          <t>In some cases, the content owner (IdO) would like to delegate authority over a
website to multiple NDCs (CDNs).  This could happen if the IdO has agreements
in place with different regional CDNs for different geographical regions or if
a "backup" CDN is used to handle overflow traffic by temporarily altering some
of the CNAME mappings in place.  The STAR delegation flow enables this use case
naturally, since each CDN can authenticate separately to the IdO (via its own
separate account) specifying its CSR, and the IdO is free to allow or deny each
certificate request according to its own policy.</t>
        </section>
        <section anchor="sec-cdni-dele">
          <name>Chained Delegation</name>
          <t>In other cases, a content owner (IdO) delegates some domains to a large CDN
(uCDN), which in turn delegates to a smaller regional CDN (dCDN).  The IdO has a
contractual relationship with uCDN, and uCDN has a similar relationship with
dCDN.  However, IdO may not even know about dCDN.</t>
          <t>If needed, the STAR protocol can be chained to support this use case: uCDN
could forward requests from dCDN to IdO and forward responses back to dCDN.
Whether such proxying is allowed is governed by policy and contracts between
the parties.</t>
          <t>A mechanism is necessary at the interface between uCDN and dCDN, by which the
uCDN can advertise:</t>
          <ul>
            <li>the names that the dCDN is allowed to use and</li>
            <li>the policy for creating the key material (allowed algorithms, minimum key
lengths, key usage, etc.) that the dCDN needs to satisfy.</li>
          </ul>
          <t>Note that such mechanism is provided by the CSR template.</t>
          <section anchor="two-level-delegation-in-cdni">
            <name>Two-Level Delegation in CDNI</name>
            <t>A User Agent (UA), e.g., a browser or set-top box, wants to fetch the video resource at
the following URI: <tt>https://video.cp.example/movie</tt>.  
Redirection between the 
content provider (CP) and upstream and downstream CDNs is arranged as a
CNAME-based aliasing chain, as illustrated in <xref target="fig-cdni-dns-redirection"/>.</t>
            <figure anchor="fig-cdni-dns-redirection">
              <name>DNS Redirection</name>
              <artset>
                <artwork type="svg" name="" alt=""><svg xmlns="http://www.w3.org/2000/svg" class="diagram" version="1.1" viewBox="0 0 780.0 489.0">
                    <g transform="translate(8,16)">
                      <path d="M 400,16 L 488,16" fill="none" stroke="black"/>
                      <path d="M 400,32 L 448,32" fill="none" stroke="black"/>
                      <path d="M 120,48 L 392,48" fill="none" stroke="black"/>
                      <path d="M 152,80 L 400,80" fill="none" stroke="black"/>
                      <path d="M 400,96 L 448,96" fill="none" stroke="black"/>
                      <path d="M 400,112 L 488,112" fill="none" stroke="black"/>
                      <path d="M 16,160 L 96,160" fill="none" stroke="black"/>
                      <path d="M 112,160 L 128,160" fill="none" stroke="black"/>
                      <path d="M 144,160 L 152,160" fill="none" stroke="black"/>
                      <path d="M 400,160 L 488,160" fill="none" stroke="black"/>
                      <path d="M 40,176 L 88,176" fill="none" stroke="black"/>
                      <path d="M 88,176 L 104,176" fill="none" stroke="black"/>
                      <path d="M 104,176 L 152,176" fill="none" stroke="black"/>
                      <path d="M 400,176 L 448,176" fill="none" stroke="black"/>
                      <path d="M 152,192 L 392,192" fill="none" stroke="black"/>
                      <path d="M 160,224 L 400,224" fill="none" stroke="black"/>
                      <path d="M 40,240 L 64,240" fill="none" stroke="black"/>
                      <path d="M 64,240 L 88,240" fill="none" stroke="black"/>
                      <path d="M 88,240 L 136,240" fill="none" stroke="black"/>
                      <path d="M 136,240 L 152,240" fill="none" stroke="black"/>
                      <path d="M 400,240 L 448,240" fill="none" stroke="black"/>
                      <path d="M 16,256 L 56,256" fill="none" stroke="black"/>
                      <path d="M 72,256 L 96,256" fill="none" stroke="black"/>
                      <path d="M 112,256 L 128,256" fill="none" stroke="black"/>
                      <path d="M 144,256 L 152,256" fill="none" stroke="black"/>
                      <path d="M 400,256 L 488,256" fill="none" stroke="black"/>
                      <path d="M 400,304 L 488,304" fill="none" stroke="black"/>
                      <path d="M 400,320 L 448,320" fill="none" stroke="black"/>
                      <path d="M 152,336 L 392,336" fill="none" stroke="black"/>
                      <path d="M 120,368 L 400,368" fill="none" stroke="black"/>
                      <path d="M 400,384 L 448,384" fill="none" stroke="black"/>
                      <path d="M 80,416 L 392,416" fill="none" stroke="black"/>
                      <path d="M 400,448 L 448,448" fill="none" stroke="black"/>
                      <path d="M 400,464 L 488,464" fill="none" stroke="black"/>
                      <path d="M 0,176 L 0,240" fill="none" stroke="black"/>
                      <path d="M 40,176 L 40,240" fill="none" stroke="black"/>
                      <path d="M 64,240 L 64,400" fill="none" stroke="black"/>
                      <path d="M 88,176 L 88,240" fill="none" stroke="black"/>
                      <path d="M 104,64 L 104,176" fill="none" stroke="black"/>
                      <path d="M 104,256 L 104,352" fill="none" stroke="black"/>
                      <path d="M 136,96 L 136,160" fill="none" stroke="black"/>
                      <path d="M 136,240 L 136,320" fill="none" stroke="black"/>
                      <path d="M 152,176 L 152,192" fill="none" stroke="black"/>
                      <path d="M 152,192 L 152,240" fill="none" stroke="black"/>
                      <path d="M 168,200 L 168,216" fill="none" stroke="black"/>
                      <path d="M 384,56 L 384,72" fill="none" stroke="black"/>
                      <path d="M 384,200 L 384,216" fill="none" stroke="black"/>
                      <path d="M 384,344 L 384,360" fill="none" stroke="black"/>
                      <path d="M 384,384 L 384,400" fill="none" stroke="black"/>
                      <path d="M 384,432 L 384,448" fill="none" stroke="black"/>
                      <path d="M 400,32 L 400,80" fill="none" stroke="black"/>
                      <path d="M 400,80 L 400,96" fill="none" stroke="black"/>
                      <path d="M 400,176 L 400,224" fill="none" stroke="black"/>
                      <path d="M 400,224 L 400,240" fill="none" stroke="black"/>
                      <path d="M 400,320 L 400,368" fill="none" stroke="black"/>
                      <path d="M 400,368 L 400,384" fill="none" stroke="black"/>
                      <path d="M 400,384 L 400,448" fill="none" stroke="black"/>
                      <path d="M 448,32 L 448,96" fill="none" stroke="black"/>
                      <path d="M 448,176 L 448,240" fill="none" stroke="black"/>
                      <path d="M 448,320 L 448,384" fill="none" stroke="black"/>
                      <path d="M 448,384 L 448,448" fill="none" stroke="black"/>
                      <path d="M 504,32 L 504,96" fill="none" stroke="black"/>
                      <path d="M 504,176 L 504,240" fill="none" stroke="black"/>
                      <path d="M 504,320 L 504,448" fill="none" stroke="black"/>
                      <path d="M 168,176 L 168,184" fill="none" stroke="black"/>
                      <path d="M 168,200 L 168,208" fill="none" stroke="black"/>
                      <path d="M 168,232 L 168,240" fill="none" stroke="black"/>
                      <path d="M 384,32 L 384,40" fill="none" stroke="black"/>
                      <path d="M 384,56 L 384,64" fill="none" stroke="black"/>
                      <path d="M 384,88 L 384,96" fill="none" stroke="black"/>
                      <path d="M 384,176 L 384,184" fill="none" stroke="black"/>
                      <path d="M 384,200 L 384,208" fill="none" stroke="black"/>
                      <path d="M 384,232 L 384,240" fill="none" stroke="black"/>
                      <path d="M 384,320 L 384,328" fill="none" stroke="black"/>
                      <path d="M 384,344 L 384,352" fill="none" stroke="black"/>
                      <path d="M 384,376 L 384,384" fill="none" stroke="black"/>
                      <path d="M 384,400 L 384,408" fill="none" stroke="black"/>
                      <path d="M 384,424 L 384,432" fill="none" stroke="black"/>
                      <path d="M 104,248 L 104,256" fill="none" stroke="black"/>
                      <polygon points="120.000000,256.000000 108.000000,250.399994 108.000000,261.600006" transform="rotate(270.000000, 104.000000, 256.000000)" fill="black"/>
                      <path d="M 136,160 L 136,168" fill="none" stroke="black"/>
                      <polygon points="152.000000,160.000000 140.000000,154.399994 140.000000,165.600006" transform="rotate(90.000000, 136.000000, 160.000000)" fill="black"/>
                      <polygon points="168.000000,224.000000 156.000000,218.399994 156.000000,229.600006" transform="rotate(180.000000, 160.000000, 224.000000)" fill="black"/>
                      <polygon points="400.000000,48.000000 388.000000,42.400002 388.000000,53.599998" transform="rotate(0.000000, 392.000000, 48.000000)" fill="black"/>
                      <polygon points="400.000000,192.000000 388.000000,186.399994 388.000000,197.600006" transform="rotate(0.000000, 392.000000, 192.000000)" fill="black"/>
                      <polygon points="400.000000,336.000000 388.000000,330.399994 388.000000,341.600006" transform="rotate(0.000000, 392.000000, 336.000000)" fill="black"/>
                      <polygon points="400.000000,416.000000 388.000000,410.399994 388.000000,421.600006" transform="rotate(0.000000, 392.000000, 416.000000)" fill="black"/>
                      <path d="M 400,16 A 16,16 0 0,0 384,32" fill="none" stroke="black"/>
                      <path d="M 488,16 A 16,16 0 0,1 504,32" fill="none" stroke="black"/>
                      <path d="M 120,48 A 16,16 0 0,0 104,64" fill="none" stroke="black"/>
                      <path d="M 152,80 A 16,16 0 0,0 136,96" fill="none" stroke="black"/>
                      <path d="M 384,96 A 16,16 0 0,0 400,112" fill="none" stroke="black"/>
                      <path d="M 504,96 A 16,16 0 0,1 488,112" fill="none" stroke="black"/>
                      <path d="M 16,160 A 16,16 0 0,0 0,176" fill="none" stroke="black"/>
                      <path d="M 152,160 A 16,16 0 0,1 168,176" fill="none" stroke="black"/>
                      <path d="M 400,160 A 16,16 0 0,0 384,176" fill="none" stroke="black"/>
                      <path d="M 488,160 A 16,16 0 0,1 504,176" fill="none" stroke="black"/>
                      <path d="M 0,240 A 16,16 0 0,0 16,256" fill="none" stroke="black"/>
                      <path d="M 168,240 A 16,16 0 0,1 152,256" fill="none" stroke="black"/>
                      <path d="M 384,240 A 16,16 0 0,0 400,256" fill="none" stroke="black"/>
                      <path d="M 504,240 A 16,16 0 0,1 488,256" fill="none" stroke="black"/>
                      <path d="M 400,304 A 16,16 0 0,0 384,320" fill="none" stroke="black"/>
                      <path d="M 488,304 A 16,16 0 0,1 504,320" fill="none" stroke="black"/>
                      <path d="M 136,320 A 16,16 0 0,0 152,336" fill="none" stroke="black"/>
                      <path d="M 104,352 A 16,16 0 0,0 120,368" fill="none" stroke="black"/>
                      <path d="M 64,400 A 16,16 0 0,0 80,416" fill="none" stroke="black"/>
                      <path d="M 384,448 A 16,16 0 0,0 400,464" fill="none" stroke="black"/>
                      <path d="M 504,448 A 16,16 0 0,1 488,464" fill="none" stroke="black"/>
                      <text text-anchor="middle" font-family="monospace" x="264" y="36" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="100" fill="black" font-size="1em">M</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="180" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="180" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="244" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="436" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="244" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="36" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="36" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="68" fill="black" font-size="1em">(</text>
                      <text text-anchor="middle" font-family="monospace" x="424" y="68" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="352" y="100" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="16" y="212" fill="black" font-size="1em">U</text>
                      <text text-anchor="middle" font-family="monospace" x="424" y="212" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="324" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="36" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="100" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="72" y="212" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="436" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="336" y="100" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="24" y="212" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="244" fill="black" font-size="1em">n</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="356" fill="black" font-size="1em">(</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="36" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="352" y="180" fill="black" font-size="1em">?</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="244" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="488" y="388" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="328" y="436" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="180" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="464" y="212" fill="black" font-size="1em">u</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="324" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="436" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="416" y="68" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="328" y="180" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="324" fill="black" font-size="1em">n</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="388" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="436" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="436" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="36" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="100" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="100" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="100" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="180" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="244" fill="black" font-size="1em">M</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="100" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="180" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="324" fill="black" font-size="1em">x</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="436" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="68" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="100" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="200" y="180" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="388" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="472" y="212" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="244" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="244" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="388" fill="black" font-size="1em">0</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="436" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="200" y="36" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="180" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="324" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="436" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="212" fill="black" font-size="1em">(</text>
                      <text text-anchor="middle" font-family="monospace" x="480" y="388" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="420" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="436" fill="black" font-size="1em">:</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="36" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="112" y="212" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="356" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="416" y="420" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="180" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="180" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="180" fill="black" font-size="1em">n</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="244" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="200" y="324" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="324" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="388" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="416" y="356" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="36" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="100" fill="black" font-size="1em">x</text>
                      <text text-anchor="middle" font-family="monospace" x="328" y="100" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="336" y="180" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="120" y="212" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="244" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="344" y="244" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="436" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="36" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="436" fill="black" font-size="1em">x</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="356" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="388" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="436" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="100" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="324" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="388" fill="black" font-size="1em">2</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="36" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="480" y="68" fill="black" font-size="1em">P</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="100" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="480" y="212" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="488" y="212" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="200" y="244" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="424" y="356" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="424" y="420" fill="black" font-size="1em">L</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="100" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="244" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="244" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="324" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="324" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="356" fill="black" font-size="1em">)</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="36" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="100" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="56" y="212" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="320" y="244" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="368" y="244" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="436" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="68" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="212" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="352" y="244" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="324" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="388" fill="black" font-size="1em">2</text>
                      <text text-anchor="middle" font-family="monospace" x="312" y="436" fill="black" font-size="1em">p</text>
                      <text text-anchor="middle" font-family="monospace" x="328" y="324" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="100" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="100" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="100" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="180" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="336" y="244" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="324" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="324" fill="black" font-size="1em">a</text>
                      <text text-anchor="middle" font-family="monospace" x="464" y="388" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="200" y="100" fill="black" font-size="1em">E</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="100" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="128" y="212" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="324" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="388" fill="black" font-size="1em">9</text>
                      <text text-anchor="middle" font-family="monospace" x="472" y="388" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="436" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="336" y="36" fill="black" font-size="1em">?</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="180" fill="black" font-size="1em">u</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="212" fill="black" font-size="1em">b</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="244" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="324" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="436" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="436" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="36" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="344" y="100" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="180" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="416" y="212" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="436" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="36" fill="black" font-size="1em">m</text>
                      <text text-anchor="middle" font-family="monospace" x="264" y="100" fill="black" font-size="1em">u</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="388" fill="black" font-size="1em">1</text>
                      <text text-anchor="middle" font-family="monospace" x="280" y="36" fill="black" font-size="1em">x</text>
                      <text text-anchor="middle" font-family="monospace" x="288" y="100" fill="black" font-size="1em">n</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="180" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="212" fill="black" font-size="1em">)</text>
                      <text text-anchor="middle" font-family="monospace" x="344" y="324" fill="black" font-size="1em">?</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="388" fill="black" font-size="1em">1</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="436" fill="black" font-size="1em">I</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="36" fill="black" font-size="1em">o</text>
                      <text text-anchor="middle" font-family="monospace" x="360" y="244" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="324" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="256" y="324" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="68" fill="black" font-size="1em">)</text>
                      <text text-anchor="middle" font-family="monospace" x="472" y="68" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="64" y="212" fill="black" font-size="1em">L</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="244" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="244" fill="black" font-size="1em">E</text>
                      <text text-anchor="middle" font-family="monospace" x="272" y="244" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="328" y="244" fill="black" font-size="1em">x</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="180" fill="black" font-size="1em">.</text>
                      <text text-anchor="middle" font-family="monospace" x="296" y="180" fill="black" font-size="1em">x</text>
                    </g>
                  </svg>
                </artwork>
                <artwork type="ascii-art" name="" alt="">
                                                 .------------.
                         video.cp.example ?     | .-----.      |
              .----------------------------------&gt;|     |      |
             |                  (a)             | | DNS |  CP  |
             |    .-------------------------------+     |      |
             |   |   CNAME video.ucdn.example   | '-----'      |
             |   |                               '------------'
             |   |
             |   |
 .-----------|---v--.                            .------------.
|    .-----.-+-----. |   video.ucdn.example ?   | .-----.      |
|    |     |       +-----------------------------&gt;|     |      |
| UA | TLS |  DNS  | |          (b)             | | DNS | uCDN |
|    |     |       |&lt;-----------------------------+     |      |
|    '--+--'-----+-' | CNAME video.dcdn.example | '-----'      |
 '------|----^---|--'                            '------------'
        |    |   |
        |    |   |
        |    |   |                               .------------.
        |    |   |      video.dcdn.example ?    | .-----.      |
        |    |    '------------------------------&gt;|     |      |
        |    |                  (c)             | | DNS |      |
        |     '-----------------------------------+     |      |
        |                   A 192.0.2.1         | +-----+ dCDN |
        |                                       | |     |      |
         '---------------------------------------&gt;| TLS |      |
                     SNI: video.cp.example      | |     |      |
                                                | '-----'      |
                                                 '------------'
</artwork>
              </artset>
            </figure>
            <t>Unlike HTTP-based redirection, where the original URL is supplanted by the one
found in the <tt>Location</tt> header of the 302 response, DNS redirection is completely
transparent to the User Agent.  As a result, the TLS connection to the dCDN
edge is done with a Server Name Indication (SNI) equal to the <tt>host</tt> in the
original URI -- in the example, <tt>video.cp.example</tt>.  So, in order to
successfully complete the handshake, the landing dCDN node has to be configured
with a certificate whose <tt>subjectAltName</tt> field matches <tt>video.cp.example</tt>, i.e., a
content provider's name.</t>
            <t><xref target="fig-cdni-flow"/> illustrates the cascaded delegation flow that allows dCDN to
obtain a STAR certificate that bears a name belonging to the content provider
with a private key that is only known to the dCDN.</t>
            <figure anchor="fig-cdni-flow">
              <name>Two-Level Delegation in CDNI</name>
              <artset>
                <artwork type="svg" name="" alt=""><svg xmlns="http://www.w3.org/2000/svg" class="diagram" version="1.1" viewBox="0 0 696.0 553.0">
                    <g transform="translate(8,16)">
                      <path d="M 96,16 L 248,16" fill="none" stroke="black"/>
                      <path d="M 136,32 L 192,32" fill="none" stroke="black"/>
                      <path d="M 192,32 L 248,32" fill="none" stroke="black"/>
                      <path d="M 256,48 L 360,48" fill="none" stroke="black"/>
                      <path d="M 248,80 L 288,80" fill="none" stroke="black"/>
                      <path d="M 136,96 L 168,96" fill="none" stroke="black"/>
                      <path d="M 168,96 L 192,96" fill="none" stroke="black"/>
                      <path d="M 192,96 L 248,96" fill="none" stroke="black"/>
                      <path d="M 96,112 L 160,112" fill="none" stroke="black"/>
                      <path d="M 176,112 L 216,112" fill="none" stroke="black"/>
                      <path d="M 232,112 L 248,112" fill="none" stroke="black"/>
                      <path d="M 360,128 L 368,128" fill="none" stroke="black"/>
                      <path d="M 384,128 L 432,128" fill="none" stroke="black"/>
                      <path d="M 360,144 L 376,144" fill="none" stroke="black"/>
                      <path d="M 376,144 L 416,144" fill="none" stroke="black"/>
                      <path d="M 320,160 L 352,160" fill="none" stroke="black"/>
                      <path d="M 360,192 L 408,192" fill="none" stroke="black"/>
                      <path d="M 360,224 L 400,224" fill="none" stroke="black"/>
                      <path d="M 400,224 L 416,224" fill="none" stroke="black"/>
                      <path d="M 360,240 L 368,240" fill="none" stroke="black"/>
                      <path d="M 384,240 L 392,240" fill="none" stroke="black"/>
                      <path d="M 408,240 L 432,240" fill="none" stroke="black"/>
                      <path d="M 56,256 L 160,256" fill="none" stroke="black"/>
                      <path d="M 176,256 L 184,256" fill="none" stroke="black"/>
                      <path d="M 200,256 L 208,256" fill="none" stroke="black"/>
                      <path d="M 96,272 L 152,272" fill="none" stroke="black"/>
                      <path d="M 152,272 L 192,272" fill="none" stroke="black"/>
                      <path d="M 192,272 L 208,272" fill="none" stroke="black"/>
                      <path d="M 96,336 L 136,336" fill="none" stroke="black"/>
                      <path d="M 136,336 L 152,336" fill="none" stroke="black"/>
                      <path d="M 152,336 L 168,336" fill="none" stroke="black"/>
                      <path d="M 168,336 L 208,336" fill="none" stroke="black"/>
                      <path d="M 56,352 L 104,352" fill="none" stroke="black"/>
                      <path d="M 120,352 L 128,352" fill="none" stroke="black"/>
                      <path d="M 144,352 L 160,352" fill="none" stroke="black"/>
                      <path d="M 176,352 L 184,352" fill="none" stroke="black"/>
                      <path d="M 200,352 L 208,352" fill="none" stroke="black"/>
                      <path d="M 56,432 L 104,432" fill="none" stroke="black"/>
                      <path d="M 120,432 L 128,432" fill="none" stroke="black"/>
                      <path d="M 144,432 L 160,432" fill="none" stroke="black"/>
                      <path d="M 176,432 L 184,432" fill="none" stroke="black"/>
                      <path d="M 200,432 L 264,432" fill="none" stroke="black"/>
                      <path d="M 96,448 L 112,448" fill="none" stroke="black"/>
                      <path d="M 112,448 L 152,448" fill="none" stroke="black"/>
                      <path d="M 152,448 L 192,448" fill="none" stroke="black"/>
                      <path d="M 192,448 L 208,448" fill="none" stroke="black"/>
                      <path d="M 208,448 L 264,448" fill="none" stroke="black"/>
                      <path d="M 264,464 L 360,464" fill="none" stroke="black"/>
                      <path d="M 272,496 L 384,496" fill="none" stroke="black"/>
                      <path d="M 96,512 L 152,512" fill="none" stroke="black"/>
                      <path d="M 152,512 L 208,512" fill="none" stroke="black"/>
                      <path d="M 208,512 L 264,512" fill="none" stroke="black"/>
                      <path d="M 56,528 L 264,528" fill="none" stroke="black"/>
                      <path d="M 40,272 L 40,336" fill="none" stroke="black"/>
                      <path d="M 40,448 L 40,512" fill="none" stroke="black"/>
                      <path d="M 80,32 L 80,96" fill="none" stroke="black"/>
                      <path d="M 96,272 L 96,336" fill="none" stroke="black"/>
                      <path d="M 96,448 L 96,512" fill="none" stroke="black"/>
                      <path d="M 112,352 L 112,384" fill="none" stroke="black"/>
                      <path d="M 112,416 L 112,448" fill="none" stroke="black"/>
                      <path d="M 136,32 L 136,96" fill="none" stroke="black"/>
                      <path d="M 136,336 L 136,368" fill="none" stroke="black"/>
                      <path d="M 136,400 L 136,432" fill="none" stroke="black"/>
                      <path d="M 152,272 L 152,336" fill="none" stroke="black"/>
                      <path d="M 152,448 L 152,512" fill="none" stroke="black"/>
                      <path d="M 168,96 L 168,144" fill="none" stroke="black"/>
                      <path d="M 168,176 L 168,256" fill="none" stroke="black"/>
                      <path d="M 168,336 L 168,368" fill="none" stroke="black"/>
                      <path d="M 168,400 L 168,432" fill="none" stroke="black"/>
                      <path d="M 192,32 L 192,96" fill="none" stroke="black"/>
                      <path d="M 192,256 L 192,272" fill="none" stroke="black"/>
                      <path d="M 192,352 L 192,384" fill="none" stroke="black"/>
                      <path d="M 192,416 L 192,448" fill="none" stroke="black"/>
                      <path d="M 208,272 L 208,336" fill="none" stroke="black"/>
                      <path d="M 208,448 L 208,512" fill="none" stroke="black"/>
                      <path d="M 224,112 L 224,176" fill="none" stroke="black"/>
                      <path d="M 224,208 L 224,224" fill="none" stroke="black"/>
                      <path d="M 224,272 L 224,336" fill="none" stroke="black"/>
                      <path d="M 248,32 L 248,80" fill="none" stroke="black"/>
                      <path d="M 248,80 L 248,96" fill="none" stroke="black"/>
                      <path d="M 264,56 L 264,72" fill="none" stroke="black"/>
                      <path d="M 264,448 L 264,464" fill="none" stroke="black"/>
                      <path d="M 264,464 L 264,512" fill="none" stroke="black"/>
                      <path d="M 280,472 L 280,488" fill="none" stroke="black"/>
                      <path d="M 304,128 L 304,144" fill="none" stroke="black"/>
                      <path d="M 344,176 L 344,224" fill="none" stroke="black"/>
                      <path d="M 360,144 L 360,192" fill="none" stroke="black"/>
                      <path d="M 360,192 L 360,224" fill="none" stroke="black"/>
                      <path d="M 376,64 L 376,80" fill="none" stroke="black"/>
                      <path d="M 376,112 L 376,144" fill="none" stroke="black"/>
                      <path d="M 376,240 L 376,400" fill="none" stroke="black"/>
                      <path d="M 376,432 L 376,448" fill="none" stroke="black"/>
                      <path d="M 400,224 L 400,256" fill="none" stroke="black"/>
                      <path d="M 400,288 L 400,480" fill="none" stroke="black"/>
                      <path d="M 416,144 L 416,224" fill="none" stroke="black"/>
                      <path d="M 448,144 L 448,224" fill="none" stroke="black"/>
                      <path d="M 264,32 L 264,40" fill="none" stroke="black"/>
                      <path d="M 264,56 L 264,64" fill="none" stroke="black"/>
                      <path d="M 264,88 L 264,96" fill="none" stroke="black"/>
                      <path d="M 280,448 L 280,456" fill="none" stroke="black"/>
                      <path d="M 280,472 L 280,480" fill="none" stroke="black"/>
                      <path d="M 280,504 L 280,512" fill="none" stroke="black"/>
                      <path d="M 344,144 L 344,152" fill="none" stroke="black"/>
                      <path d="M 344,168 L 344,176" fill="none" stroke="black"/>
                      <path d="M 112,344 L 112,352" fill="none" stroke="black"/>
                      <polygon points="128.000000,352.000000 116.000000,346.399994 116.000000,357.600006" transform="rotate(270.000000, 112.000000, 352.000000)" fill="black"/>
                      <path d="M 136,432 L 136,440" fill="none" stroke="black"/>
                      <polygon points="152.000000,432.000000 140.000000,426.399994 140.000000,437.600006" transform="rotate(90.000000, 136.000000, 432.000000)" fill="black"/>
                      <path d="M 168,256 L 168,264" fill="none" stroke="black"/>
                      <polygon points="184.000000,256.000000 172.000000,250.399994 172.000000,261.600006" transform="rotate(90.000000, 168.000000, 256.000000)" fill="black"/>
                      <path d="M 168,432 L 168,440" fill="none" stroke="black"/>
                      <polygon points="184.000000,432.000000 172.000000,426.399994 172.000000,437.600006" transform="rotate(90.000000, 168.000000, 432.000000)" fill="black"/>
                      <path d="M 192,344 L 192,352" fill="none" stroke="black"/>
                      <polygon points="208.000000,352.000000 196.000000,346.399994 196.000000,357.600006" transform="rotate(270.000000, 192.000000, 352.000000)" fill="black"/>
                      <path d="M 224,104 L 224,112" fill="none" stroke="black"/>
                      <polygon points="240.000000,112.000000 228.000000,106.400002 228.000000,117.599998" transform="rotate(270.000000, 224.000000, 112.000000)" fill="black"/>
                      <polygon points="264.000000,48.000000 252.000000,42.400002 252.000000,53.599998" transform="rotate(180.000000, 256.000000, 48.000000)" fill="black"/>
                      <polygon points="280.000000,496.000000 268.000000,490.399994 268.000000,501.600006" transform="rotate(180.000000, 272.000000, 496.000000)" fill="black"/>
                      <polygon points="360.000000,160.000000 348.000000,154.399994 348.000000,165.600006" transform="rotate(0.000000, 352.000000, 160.000000)" fill="black"/>
                      <path d="M 376,232 L 376,240" fill="none" stroke="black"/>
                      <polygon points="392.000000,240.000000 380.000000,234.399994 380.000000,245.600006" transform="rotate(270.000000, 376.000000, 240.000000)" fill="black"/>
                      <path d="M 96,16 A 16,16 0 0,0 80,32" fill="none" stroke="black"/>
                      <path d="M 248,16 A 16,16 0 0,1 264,32" fill="none" stroke="black"/>
                      <path d="M 360,48 A 16,16 0 0,1 376,64" fill="none" stroke="black"/>
                      <path d="M 288,80 A 16,16 0 0,1 304,96" fill="none" stroke="black"/>
                      <path d="M 80,96 A 16,16 0 0,0 96,112" fill="none" stroke="black"/>
                      <path d="M 264,96 A 16,16 0 0,1 248,112" fill="none" stroke="black"/>
                      <path d="M 360,128 A 16,16 0 0,0 344,144" fill="none" stroke="black"/>
                      <path d="M 432,128 A 16,16 0 0,1 448,144" fill="none" stroke="black"/>
                      <path d="M 304,144 A 16,16 0 0,0 320,160" fill="none" stroke="black"/>
                      <path d="M 208,240 A 16,16 0 0,0 192,256" fill="none" stroke="black"/>
                      <path d="M 224,224 A 16,16 0 0,1 208,240" fill="none" stroke="black"/>
                      <path d="M 344,224 A 16,16 0 0,0 360,240" fill="none" stroke="black"/>
                      <path d="M 448,224 A 16,16 0 0,1 432,240" fill="none" stroke="black"/>
                      <path d="M 56,256 A 16,16 0 0,0 40,272" fill="none" stroke="black"/>
                      <path d="M 208,256 A 16,16 0 0,1 224,272" fill="none" stroke="black"/>
                      <path d="M 40,336 A 16,16 0 0,0 56,352" fill="none" stroke="black"/>
                      <path d="M 224,336 A 16,16 0 0,1 208,352" fill="none" stroke="black"/>
                      <path d="M 56,432 A 16,16 0 0,0 40,448" fill="none" stroke="black"/>
                      <path d="M 264,432 A 16,16 0 0,1 280,448" fill="none" stroke="black"/>
                      <path d="M 376,448 A 16,16 0 0,1 360,464" fill="none" stroke="black"/>
                      <path d="M 400,480 A 16,16 0 0,1 384,496" fill="none" stroke="black"/>
                      <path d="M 40,512 A 16,16 0 0,0 56,528" fill="none" stroke="black"/>
                      <path d="M 280,512 A 16,16 0 0,1 264,528" fill="none" stroke="black"/>
                      <text text-anchor="middle" font-family="monospace" x="168" y="84" fill="black" font-size="1em">v</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="84" fill="black" font-size="1em">i</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="308" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="468" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="64" y="484" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="400" y="276" fill="black" font-size="1em">1</text>
                      <text text-anchor="middle" font-family="monospace" x="112" y="308" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="308" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="308" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="468" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="468" fill="black" font-size="1em">R</text>
                      <text text-anchor="middle" font-family="monospace" x="72" y="484" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="500" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="376" y="180" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="56" y="308" fill="black" font-size="1em">u</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="324" fill="black" font-size="1em">w</text>
                      <text text-anchor="middle" font-family="monospace" x="160" y="52" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="392" y="164" fill="black" font-size="1em">M</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="388" fill="black" font-size="1em">8</text>
                      <text text-anchor="middle" font-family="monospace" x="128" y="484" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="484" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="52" fill="black" font-size="1em">E</text>
                      <text text-anchor="middle" font-family="monospace" x="112" y="68" fill="black" font-size="1em">P</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="84" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="384" y="180" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="292" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="160" y="84" fill="black" font-size="1em">r</text>
                      <text text-anchor="middle" font-family="monospace" x="400" y="164" fill="black" font-size="1em">E</text>
                      <text text-anchor="middle" font-family="monospace" x="408" y="276" fill="black" font-size="1em">0</text>
                      <text text-anchor="middle" font-family="monospace" x="112" y="484" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="136" y="484" fill="black" font-size="1em">I</text>
                      <text text-anchor="middle" font-family="monospace" x="120" y="308" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="104" y="68" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="68" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="84" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="400" y="180" fill="black" font-size="1em">R</text>
                      <text text-anchor="middle" font-family="monospace" x="376" y="212" fill="black" font-size="1em">H</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="180" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="292" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="292" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="136" y="308" fill="black" font-size="1em">I</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="324" fill="black" font-size="1em">f</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="484" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="52" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="52" fill="black" font-size="1em">M</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="68" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="216" y="68" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="384" y="212" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="136" y="388" fill="black" font-size="1em">2</text>
                      <text text-anchor="middle" font-family="monospace" x="112" y="404" fill="black" font-size="1em">1</text>
                      <text text-anchor="middle" font-family="monospace" x="56" y="484" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="52" fill="black" font-size="1em">R</text>
                      <text text-anchor="middle" font-family="monospace" x="152" y="68" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="376" y="164" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="292" fill="black" font-size="1em">R</text>
                      <text text-anchor="middle" font-family="monospace" x="128" y="308" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="484" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="248" y="484" fill="black" font-size="1em">P</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="484" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="240" y="484" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="52" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="52" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="232" y="68" fill="black" font-size="1em">R</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="164" fill="black" font-size="1em">7</text>
                      <text text-anchor="middle" font-family="monospace" x="192" y="404" fill="black" font-size="1em">3</text>
                      <text text-anchor="middle" font-family="monospace" x="384" y="164" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="432" y="196" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="72" y="308" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="324" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="176" y="468" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="400" y="212" fill="black" font-size="1em">P</text>
                      <text text-anchor="middle" font-family="monospace" x="80" y="308" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="308" fill="black" font-size="1em">l</text>
                      <text text-anchor="middle" font-family="monospace" x="152" y="52" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="152" y="84" fill="black" font-size="1em">s</text>
                      <text text-anchor="middle" font-family="monospace" x="304" y="116" fill="black" font-size="1em">5</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="196" fill="black" font-size="1em">4</text>
                      <text text-anchor="middle" font-family="monospace" x="392" y="212" fill="black" font-size="1em">T</text>
                      <text text-anchor="middle" font-family="monospace" x="208" y="68" fill="black" font-size="1em">S</text>
                      <text text-anchor="middle" font-family="monospace" x="64" y="308" fill="black" font-size="1em">C</text>
                      <text text-anchor="middle" font-family="monospace" x="120" y="484" fill="black" font-size="1em">D</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="500" fill="black" font-size="1em">c</text>
                      <text text-anchor="middle" font-family="monospace" x="80" y="484" fill="black" font-size="1em">N</text>
                      <text text-anchor="middle" font-family="monospace" x="168" y="484" fill="black" font-size="1em">d</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="484" fill="black" font-size="1em">H</text>
                      <text text-anchor="middle" font-family="monospace" x="160" y="68" fill="black" font-size="1em">e</text>
                      <text text-anchor="middle" font-family="monospace" x="224" y="68" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="376" y="100" fill="black" font-size="1em">6</text>
                      <text text-anchor="middle" font-family="monospace" x="392" y="180" fill="black" font-size="1em">A</text>
                      <text text-anchor="middle" font-family="monospace" x="376" y="420" fill="black" font-size="1em">9</text>
                      <text text-anchor="middle" font-family="monospace" x="184" y="500" fill="black" font-size="1em">i</text>
                    </g>
                  </svg>
                </artwork>
                <artwork type="ascii-art" name="" alt="">
           .--------------------.
          |      .------.------. |
          |      | STAR | ACME |&lt;-------------.
          |  CP  | dele | STAR | |             |
          |      | srv  | cli  +-----.         |
          |      '---+--'------' |    |        6
           '---------|------^---'     5        |
                     |      |         |     .--|-------.
                     |      |         |    | .-+----.   |
                     7      |          '----&gt;| ACME |   |
                     |      |              | | STAR | C |
                     |      4              | +------| A |
                     |      |              | | HTTP |   |
                     |      |              | '----+-'   |
                     |   .-'                '--^--|----'
      .--------------v--|--.                   |  |
     |      .------.----+-. |                  |  10
     |      |      | STAR | |                  |  |
     | uCDN | CDNI | dele | |                  |  |
     |      |      | fwd  | |                  |  |
     |      '----+-'-+----' |                  |  |
      '-------^--|---|--^--'                   |  |
              |  |   |  |                      |  |
              |  2   8  |                      |  |
              1  |   |  3                      |  |
              |  |   |  |                      9  |
      .-------|--v---v--|---------.            |  |
     |      .-+----.----+-.------. |           |  |
     |      |      | STAR |      +------------'   |
     | dCDN | CDNI | dele | HTTP | |              |
     |      |      | cli  |      |&lt;--------------'
     |      '------'------'------' |
      '---------------------------'
</artwork>
              </artset>
            </figure>
            <t>uCDN is configured to delegate to dCDN, and CP is configured to delegate to uCDN, both as defined in <xref target="sec-profile-dele-config"/>.</t>
            <ol>
	      <li derivedCounter="1.">dCDN requests CDNI path metadata to uCDN.</li>
              <li derivedCounter="2.">uCDN replies with, among other CDNI metadata, the STAR delegation
configuration, which includes the delegated content provider's name.</li>
              <li derivedCounter="3.">dCDN creates a key pair and the CSR with the delegated name.  It then places
an order for the delegated name to uCDN.</li>
              <li derivedCounter="4.">uCDN forwards the received order to the content provider (CP).</li>
              <li derivedCounter="5.">CP creates an order for a STAR certificate and sends it to the CA.  The
order also requests unauthenticated access to the certificate resource.</li>
              <li derivedCounter="6.">After all authorizations complete successfully, the STAR certificate is
issued.</li>
              <li derivedCounter="7.">CP notifies uCDN that the STAR certificate is available at the order's
<tt>star-certificate</tt> URL.</li>
              <li derivedCounter="8.">uCDN forwards the information to dCDN.  At this point, the ACME signaling is
complete.</li>
              <li derivedCounter="9.">dCDN requests the STAR certificate using unauthenticated GET from the CA.</li>
              <li derivedCounter="10.">The CA returns the certificate.  Now dCDN is fully configured to handle
HTTPS traffic in lieu of the content provider.</li>
            </ol>
            <t>Note that 9 and 10 repeat until the delegation expires or is terminated.</t>
          </section>
        </section>
      </section>
      <section anchor="secure-telephone-identity-revisited-stir">
        <name>Secure Telephone Identity Revisited (STIR)</name>
        <t>As a second use case, we consider the delegation of credentials in the STIR
ecosystem  <xref target="RFC9060"/>.</t>
        <t>This section uses STIR terminology. The term Personal Assertion Token (PASSporT) is defined in <xref target="RFC8225"/>, and "TNAuthList" is defined in <xref target="RFC8226"/>.</t>
        <t>In the STIR delegated mode, a service provider SP2 -- the NDC -- needs to sign
PASSporTs <xref target="RFC8225"/> for telephone numbers (e.g., TN=+123) belonging to
another service provider, SP1 -- the IdO.  In order to do that, SP2 needs a STIR
certificate and a private key that includes TN=+123 in the TNAuthList
<xref target="RFC8226"/> certificate extension.</t>
        <t>In detail (<xref target="fig-stir-flow"/>):</t>
        <ol>
	  <li derivedCounter="1.">SP1 and SP2 agree on the configuration of the delegation -- in particular,
the CSR template that applies.</li>
          <li derivedCounter="2.">SP2 generates a private/public key pair and sends a CSR to SP1, requesting
creation of a certificate with an SP1 name, an SP2 public key, and a TNAuthList
extension with the list of TNs that SP1 delegates to SP2.  (Note that the
CSR sent by SP2 to SP1 needs to be validated against the CSR template
agreed upon in step 1.).</li>
          <li derivedCounter="3.">SP1 sends an order for the CSR to the CA.  The order also requests
unauthenticated access to the certificate resource.</li>
          <li derivedCounter="4.">Subsequently, after the required TNAuthList authorizations are successfully
completed, the CA moves the order to a "valid" state; at the same
time, the star-certificate endpoint is populated.</li>
          <li derivedCounter="5.">The contents of the order are forwarded from SP1 to SP2 by means of the paired
"delegation" order.</li>
          <li derivedCounter="6.">SP2 dereferences the <tt>star-certificate</tt> URL in the order to fetch the rolling
STAR certificate bearing the delegated identifiers.</li>
          <li derivedCounter="7.">The STAR certificate is returned to SP2.</li>
        </ol>
        <figure anchor="fig-stir-flow">
          <name>Delegation in STIR</name>
          <artset>
            <artwork type="svg" name="" alt=""><svg xmlns="http://www.w3.org/2000/svg" class="diagram" version="1.1" viewBox="0 0 612.0 377.0">
                <g transform="translate(8,16)">
                  <path d="M 56,16 L 200,16" fill="none" stroke="black"/>
                  <path d="M 88,32 L 144,32" fill="none" stroke="black"/>
                  <path d="M 144,32 L 200,32" fill="none" stroke="black"/>
                  <path d="M 208,48 L 320,48" fill="none" stroke="black"/>
                  <path d="M 16,64 L 32,64" fill="none" stroke="black"/>
                  <path d="M 200,80 L 240,80" fill="none" stroke="black"/>
                  <path d="M 88,96 L 128,96" fill="none" stroke="black"/>
                  <path d="M 128,96 L 144,96" fill="none" stroke="black"/>
                  <path d="M 144,96 L 200,96" fill="none" stroke="black"/>
                  <path d="M 56,112 L 96,112" fill="none" stroke="black"/>
                  <path d="M 112,112 L 120,112" fill="none" stroke="black"/>
                  <path d="M 136,112 L 200,112" fill="none" stroke="black"/>
                  <path d="M 304,128 L 328,128" fill="none" stroke="black"/>
                  <path d="M 344,128 L 376,128" fill="none" stroke="black"/>
                  <path d="M 304,144 L 336,144" fill="none" stroke="black"/>
                  <path d="M 336,144 L 360,144" fill="none" stroke="black"/>
                  <path d="M 272,160 L 296,160" fill="none" stroke="black"/>
                  <path d="M 304,192 L 352,192" fill="none" stroke="black"/>
                  <path d="M 272,208 L 296,208" fill="none" stroke="black"/>
                  <path d="M 304,224 L 336,224" fill="none" stroke="black"/>
                  <path d="M 336,224 L 360,224" fill="none" stroke="black"/>
                  <path d="M 304,240 L 328,240" fill="none" stroke="black"/>
                  <path d="M 344,240 L 376,240" fill="none" stroke="black"/>
                  <path d="M 56,256 L 96,256" fill="none" stroke="black"/>
                  <path d="M 112,256 L 120,256" fill="none" stroke="black"/>
                  <path d="M 136,256 L 200,256" fill="none" stroke="black"/>
                  <path d="M 88,272 L 104,272" fill="none" stroke="black"/>
                  <path d="M 104,272 L 144,272" fill="none" stroke="black"/>
                  <path d="M 144,272 L 200,272" fill="none" stroke="black"/>
                  <path d="M 200,288 L 240,288" fill="none" stroke="black"/>
                  <path d="M 16,304 L 32,304" fill="none" stroke="black"/>
                  <path d="M 208,320 L 320,320" fill="none" stroke="black"/>
                  <path d="M 88,336 L 128,336" fill="none" stroke="black"/>
                  <path d="M 128,336 L 144,336" fill="none" stroke="black"/>
                  <path d="M 144,336 L 160,336" fill="none" stroke="black"/>
                  <path d="M 160,336 L 200,336" fill="none" stroke="black"/>
                  <path d="M 56,352 L 200,352" fill="none" stroke="black"/>
                  <path d="M 0,80 L 0,176" fill="none" stroke="black"/>
                  <path d="M 0,208 L 0,288" fill="none" stroke="black"/>
                  <path d="M 40,32 L 40,96" fill="none" stroke="black"/>
                  <path d="M 40,272 L 40,336" fill="none" stroke="black"/>
                  <path d="M 88,32 L 88,96" fill="none" stroke="black"/>
                  <path d="M 88,272 L 88,336" fill="none" stroke="black"/>
                  <path d="M 104,112 L 104,208" fill="none" stroke="black"/>
                  <path d="M 104,240 L 104,272" fill="none" stroke="black"/>
                  <path d="M 128,96 L 128,128" fill="none" stroke="black"/>
                  <path d="M 128,160 L 128,256" fill="none" stroke="black"/>
                  <path d="M 144,32 L 144,96" fill="none" stroke="black"/>
                  <path d="M 144,272 L 144,336" fill="none" stroke="black"/>
                  <path d="M 200,32 L 200,80" fill="none" stroke="black"/>
                  <path d="M 200,80 L 200,96" fill="none" stroke="black"/>
                  <path d="M 200,272 L 200,288" fill="none" stroke="black"/>
                  <path d="M 200,288 L 200,336" fill="none" stroke="black"/>
                  <path d="M 216,56 L 216,72" fill="none" stroke="black"/>
                  <path d="M 216,296 L 216,312" fill="none" stroke="black"/>
                  <path d="M 256,128 L 256,144" fill="none" stroke="black"/>
                  <path d="M 256,224 L 256,240" fill="none" stroke="black"/>
                  <path d="M 288,176 L 288,192" fill="none" stroke="black"/>
                  <path d="M 304,144 L 304,192" fill="none" stroke="black"/>
                  <path d="M 304,192 L 304,224" fill="none" stroke="black"/>
                  <path d="M 336,64 L 336,80" fill="none" stroke="black"/>
                  <path d="M 336,112 L 336,144" fill="none" stroke="black"/>
                  <path d="M 336,224 L 336,256" fill="none" stroke="black"/>
                  <path d="M 336,288 L 336,304" fill="none" stroke="black"/>
                  <path d="M 360,144 L 360,224" fill="none" stroke="black"/>
                  <path d="M 392,144 L 392,224" fill="none" stroke="black"/>
                  <path d="M 216,32 L 216,40" fill="none" stroke="black"/>
                  <path d="M 216,56 L 216,64" fill="none" stroke="black"/>
                  <path d="M 216,88 L 216,96" fill="none" stroke="black"/>
                  <path d="M 216,272 L 216,280" fill="none" stroke="black"/>
                  <path d="M 216,296 L 216,304" fill="none" stroke="black"/>
                  <path d="M 216,328 L 216,336" fill="none" stroke="black"/>
                  <path d="M 288,144 L 288,152" fill="none" stroke="black"/>
                  <path d="M 288,168 L 288,176" fill="none" stroke="black"/>
                  <path d="M 288,192 L 288,200" fill="none" stroke="black"/>
                  <path d="M 288,216 L 288,224" fill="none" stroke="black"/>
                  <polygon points="40.000000,64.000000 28.000000,58.400002 28.000000,69.599998" transform="rotate(0.000000, 32.000000, 64.000000)" fill="black"/>
                  <polygon points="40.000000,304.000000 28.000000,298.399994 28.000000,309.600006" transform="rotate(0.000000, 32.000000, 304.000000)" fill="black"/>
                  <path d="M 104,104 L 104,112" fill="none" stroke="black"/>
                  <polygon points="120.000000,112.000000 108.000000,106.400002 108.000000,117.599998" transform="rotate(270.000000, 104.000000, 112.000000)" fill="black"/>
                  <path d="M 128,256 L 128,264" fill="none" stroke="black"/>
                  <polygon points="144.000000,256.000000 132.000000,250.399994 132.000000,261.600006" transform="rotate(90.000000, 128.000000, 256.000000)" fill="black"/>
                  <polygon points="216.000000,48.000000 204.000000,42.400002 204.000000,53.599998" transform="rotate(180.000000, 208.000000, 48.000000)" fill="black"/>
                  <polygon points="216.000000,320.000000 204.000000,314.399994 204.000000,325.600006" transform="rotate(180.000000, 208.000000, 320.000000)" fill="black"/>
                  <polygon points="304.000000,160.000000 292.000000,154.399994 292.000000,165.600006" transform="rotate(0.000000, 296.000000, 160.000000)" fill="black"/>
                  <polygon points="304.000000,208.000000 292.000000,202.399994 292.000000,213.600006" transform="rotate(0.000000, 296.000000, 208.000000)" fill="black"/>
                  <path d="M 56,16 A 16,16 0 0,0 40,32" fill="none" stroke="black"/>
                  <path d="M 200,16 A 16,16 0 0,1 216,32" fill="none" stroke="black"/>
                  <path d="M 320,48 A 16,16 0 0,1 336,64" fill="none" stroke="black"/>
                  <path d="M 16,64 A 16,16 0 0,0 0,80" fill="none" stroke="black"/>
                  <path d="M 240,80 A 16,16 0 0,1 256,96" fill="none" stroke="black"/>
                  <path d="M 40,96 A 16,16 0 0,0 56,112" fill="none" stroke="black"/>
                  <path d="M 216,96 A 16,16 0 0,1 200,112" fill="none" stroke="black"/>
                  <path d="M 304,128 A 16,16 0 0,0 288,144" fill="none" stroke="black"/>
                  <path d="M 376,128 A 16,16 0 0,1 392,144" fill="none" stroke="black"/>
                  <path d="M 256,144 A 16,16 0 0,0 272,160" fill="none" stroke="black"/>
                  <path d="M 272,208 A 16,16 0 0,0 256,224" fill="none" stroke="black"/>
                  <path d="M 288,224 A 16,16 0 0,0 304,240" fill="none" stroke="black"/>
                  <path d="M 392,224 A 16,16 0 0,1 376,240" fill="none" stroke="black"/>
                  <path d="M 56,256 A 16,16 0 0,0 40,272" fill="none" stroke="black"/>
                  <path d="M 200,256 A 16,16 0 0,1 216,272" fill="none" stroke="black"/>
                  <path d="M 256,272 A 16,16 0 0,1 240,288" fill="none" stroke="black"/>
                  <path d="M 0,288 A 16,16 0 0,0 16,304" fill="none" stroke="black"/>
                  <path d="M 336,304 A 16,16 0 0,1 320,320" fill="none" stroke="black"/>
                  <path d="M 40,336 A 16,16 0 0,0 56,352" fill="none" stroke="black"/>
                  <path d="M 216,336 A 16,16 0 0,1 200,352" fill="none" stroke="black"/>
                  <text text-anchor="middle" font-family="monospace" x="0" y="196" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="212" fill="black" font-size="1em">H</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="308" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="308" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="68" fill="black" font-size="1em">P</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="180" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="212" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="308" fill="black" font-size="1em">P</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="308" fill="black" font-size="1em">P</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="324" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="324" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="52" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="52" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="68" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="84" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="116" fill="black" font-size="1em">3</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="212" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="324" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="84" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="180" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="52" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="276" fill="black" font-size="1em">7</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="308" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="164" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="196" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="228" fill="black" font-size="1em">2</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="260" fill="black" font-size="1em">6</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="308" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="68" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="84" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="84" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="164" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="52" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="52" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="52" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="180" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="180" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="308" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="52" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="68" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="68" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="84" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="164" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="180" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="308" fill="black" font-size="1em">H</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="68" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="84" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="148" fill="black" font-size="1em">5</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="164" fill="black" font-size="1em">M</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="308" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="68" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="292" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="100" fill="black" font-size="1em">4</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="212" fill="black" font-size="1em">P</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="308" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="52" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="292" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="68" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="292" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="292" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="308" fill="black" font-size="1em">2</text>
                </g>
              </svg>
            </artwork>
            <artwork type="ascii-art" name="" alt="">
      .-------------------.
     |     .------.------. |
     |     | STAR | STAR |&lt;--------------.
 .--&gt;| SP1 | dele | dele | |              |
|    |     | srv  | cli  +-----.          |
|    |     '----+-'------' |    |         4
|     '------^--|---------'     3         |
|            |  |               |    .----|-----.
|            |  5               |   | .---+--.   |
|            |  |                '---&gt;| ACME |   |
|            |  |                   | | STAR | C |
1            |  |                   | +------| A |
|            |  |                .---&gt;| HTTP |   |
|            2  |               |   | '---+--'   |
|            |  |               |    '----|-----'
|     .------|--v---------.     6         |
|    |     .-+----.------. |    |         7
|    |     | STAR |      +-----'          |
 '--&gt;| SP2 | dele | HTTP | |              |
     |     | cli  |      |&lt;--------------'
     |     '----+-'-+----' |
      '-------------------'
</artwork>
          </artset>
        </figure>
        <t>As shown, the STAR delegation profile described in this document applies
straightforwardly; the only extra requirement being the ability to instruct the
NDC about the allowed TNAuthList values.  This can be achieved by a simple
extension to the CSR template.</t>
      </section>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <section anchor="new-fields-in-the-meta-object-within-a-directory-object">
        <name>New Fields in the "meta" Object within a Directory Object</name>
        <t>This document adds the following entries to the "ACME Directory Metadata Fields" registry:</t>
        <table>
          <thead>
            <tr>
              <th>Field Name</th>
              <th>Field Type</th>
              <th>Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>delegation-enabled</td>
              <td>boolean</td>
              <td>RFC 9115</td>
            </tr>
            <tr>
              <td>allow-certificate-get</td>
              <td>boolean</td>
              <td>RFC 9115</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="new-fields-in-the-order-object">
        <name>New Fields in the Order Object</name>
        <t>This document adds the following entries to the "ACME Order Object Fields" registry:</t>
        <table>
          <thead>
            <tr>
              <th>Field Name</th>
              <th>Field Type</th>
              <th>Configurable</th>
              <th>Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>allow-certificate-get</td>
              <td>boolean</td>
              <td>true</td>
              <td>RFC 9115</td>
            </tr>
            <tr>
              <td>delegation</td>
              <td>string</td>
              <td>true</td>
              <td>RFC 9115</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="new-fields-in-the-account-object">
        <name>New Fields in the Account Object</name>
        <t>This document adds the following entries to the "ACME Account Object Fields" registry:</t>
        <table>
          <thead>
            <tr>
              <th>Field Name</th>
              <th>Field Type</th>
              <th>Requests</th>
              <th>Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>delegations</td>
              <td>string</td>
              <td>none</td>
              <td>RFC 9115</td>
            </tr>
          </tbody>
        </table>
        <t>Note that the <tt>delegations</tt> field is only reported by ACME servers that have
<tt>delegation-enabled</tt> set to true in their meta Object.</t>
      </section>
      <section anchor="new-error-types">
        <name>New Error Types</name>
        <t>This document adds the following entries to the "ACME Error Types" registry:</t>
        <table>
          <thead>
            <tr>
              <th>Type</th>
              <th>Description</th>
              <th>Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>unknownDelegation</td>
              <td>An unknown configuration is listed in the <tt>delegation</tt> attribute of the order request</td>
              <td>RFC 9115</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="csr-template-registry">
        <name>CSR Template Extensions</name>
        <t>IANA has established the "STAR Delegation CSR Template
Extensions" registry, with "Specification Required" as its registration procedure.</t>
        <t>Each extension registered must specify:</t>
        <ul>
          <li>an extension name,</li>
          <li>an extension syntax, as a reference to a CDDL document that defines this extension, and</li>
          <li>the extension's mapping into an X.509 certificate extension.</li>
        </ul>
        <t>The initial contents of this registry are the extensions defined by the CDDL
in <xref target="csr-template-schema-cddl"/>.</t>
        <table>
          <thead>
            <tr>
              <th>Extension Name</th>
              <th>Extension Syntax</th>
              <th>Mapping to X.509 Certificate Extension</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>keyUsage</td>
              <td>See <xref target="csr-template-schema-cddl"/></td>
              <td>
                <xref target="RFC5280" sectionFormat="comma" section="4.2.1.3"/></td>
            </tr>
            <tr>
              <td>extendedKeyUsage</td>
              <td>See <xref target="csr-template-schema-cddl"/></td>
              <td>
                <xref target="RFC5280" sectionFormat="comma" section="4.2.1.12"/></td>
            </tr>
            <tr>
              <td>subjectAltName</td>
              <td>See <xref target="csr-template-schema-cddl"/></td>
              <td>
                <xref target="RFC5280" sectionFormat="comma" section="4.2.1.6"/> (note that only specific name formats are allowed: URI, DNS name, email address)</td>
            </tr>
          </tbody>
        </table>
        <t>When evaluating a request for an assignment in this registry, the designated expert should follow this guidance:</t>
        <ul>
          <li>The definition must include a full CDDL definition, which the expert will validate.</li>
          <li>The definition must include both positive and negative test cases.</li>
          <li>Additional requirements that are not captured by the CDDL definition are allowed but must be explicitly specified.</li>
        </ul>
      </section>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <section anchor="sec-trust-model">
        <name>Trust Model</name>
        <t>The ACME trust model needs to be extended to include the trust relationship
between NDC and IdO.  Note that once this trust link is established, it
potentially becomes recursive.  Therefore, there has to be a trust relationship
between each of the nodes in the delegation chain; for example, in case of
cascading CDNs, this is contractually defined.  Note that when using standard
<xref target="RFC6125"/> identity verification, there are no mechanisms available to the IdO
to restrict the use of the delegated name once the name has been handed over to
the first NDC.  It is, therefore, expected that contractual measures are in place
to get some assurance that redelegation is not being performed.</t>
      </section>
      <section anchor="delegation-security-goal">
        <name>Delegation Security Goal</name>
        <t>Delegation introduces a new security goal: only an NDC that has been authorized
by the IdO, either directly or transitively, can obtain a certificate with an
IdO identity.</t>
        <t>From a security point of view, the delegation process has five separate parts:</t>
        <ol>
	  <li derivedCounter="1.">enabling a specific third party (the intended NDC) to submit requests for
delegated certificates</li>
          <li derivedCounter="2.">making sure that any request for a delegated certificate matches the
intended "shape" in terms of delegated identities as well as any other
certificate metadata, e.g., key length, x.509 extensions, etc.</li>
          <li derivedCounter="3.">serving the certificate back to the NDC</li>
          <li derivedCounter="4.">handling revocation of the delegation</li>
          <li derivedCounter="5.">handling revocation of the certificate itself</li>
        </ol>
        <t>The first part is covered by the NDC's ACME account that is administered by the
IdO, whose security relies on the correct handling of the associated key pair.
When a compromise of the private key is detected, the delegate <bcp14>MUST</bcp14> use the
account deactivation procedures defined in <xref target="RFC8555" section="7.3.6"/>.</t>
        <t>The second part is covered by the act of checking an NDC's certificate request
against the intended CSR template.  The steps of shaping the CSR template
correctly, selecting the right CSR template to check against the presented CSR,
and making sure that the presented CSR matches the selected CSR template are
all security relevant.</t>
        <t>The third part builds on the trust relationship between NDC and IdO that is
responsible for correctly forwarding the certificate URL from the Order
returned by the CA.</t>
        <t>The fourth part is associated with the ability of the IdO to unilaterally
remove the <tt>delegation</tt> object associated with the revoked identity, therefore,
disabling any further NDC requests for such identity.  Note that, in more
extreme circumstances, the IdO might decide to disable the NDC account,
thus entirely blocking any further interaction.</t>
        <t>The fifth is covered by two different mechanisms, depending on the nature of
the certificate.  For STAR, the IdO shall use the cancellation interface
defined in <xref target="RFC8739" section="2.3"/>. For non-STAR, the certificate revocation
interface defined in <xref target="RFC8555" section="7.6"/>) is used.</t>
        <t>The ACME account associated with the delegation plays a crucial role in the
overall security of the presented protocol.  This, in turn, means that (in
delegation scenarios) the security requirements and verification associated with
an ACME account may be more stringent than in base ACME deployments, since the
out-of-band configuration of delegations that an account is authorized to use
(combined with account authentication) takes the place of the normal ACME
authorization challenge procedures.  Therefore, the IdO <bcp14>MUST</bcp14> ensure that
each account is associated with the exact policies (via their matching <tt>delegation</tt> objects)
that define which domain names can be delegated to the account and how.
The IdO is expected to use out-of-band means to preregister each NDC to
the corresponding account.</t>
      </section>
      <section anchor="new-acme-channels">
        <name>New ACME Channels</name>
        <t>Using the model established in <xref target="RFC8555" section="10.1"/>, we can decompose
the interactions of the basic delegation workflow, as shown in
<xref target="fig-sec-channels"/>.</t>
        <figure anchor="fig-sec-channels">
          <name>Delegation Channels Topology</name>
          <artset>
            <artwork type="svg" name="" alt=""><svg xmlns="http://www.w3.org/2000/svg" class="diagram" version="1.1" viewBox="0 0 756.0 345.0">
                <g transform="translate(8,16)">
                  <path d="M 0,16 L 48,16" fill="none" stroke="black"/>
                  <path d="M 168,16 L 240,16" fill="none" stroke="black"/>
                  <path d="M 48,32 L 160,32" fill="none" stroke="black"/>
                  <path d="M 0,48 L 24,48" fill="none" stroke="black"/>
                  <path d="M 24,48 L 48,48" fill="none" stroke="black"/>
                  <path d="M 168,64 L 192,64" fill="none" stroke="black"/>
                  <path d="M 192,64 L 240,64" fill="none" stroke="black"/>
                  <path d="M 216,112 L 320,112" fill="none" stroke="black"/>
                  <path d="M 320,112 L 432,112" fill="none" stroke="black"/>
                  <path d="M 168,144 L 192,144" fill="none" stroke="black"/>
                  <path d="M 192,144 L 216,144" fill="none" stroke="black"/>
                  <path d="M 216,144 L 240,144" fill="none" stroke="black"/>
                  <path d="M 408,144 L 432,144" fill="none" stroke="black"/>
                  <path d="M 432,144 L 464,144" fill="none" stroke="black"/>
                  <path d="M 408,176 L 432,176" fill="none" stroke="black"/>
                  <path d="M 432,176 L 448,176" fill="none" stroke="black"/>
                  <path d="M 448,176 L 464,176" fill="none" stroke="black"/>
                  <path d="M 168,192 L 216,192" fill="none" stroke="black"/>
                  <path d="M 216,192 L 240,192" fill="none" stroke="black"/>
                  <path d="M 216,208 L 312,208" fill="none" stroke="black"/>
                  <path d="M 312,208 L 432,208" fill="none" stroke="black"/>
                  <path d="M 24,240 L 192,240" fill="none" stroke="black"/>
                  <path d="M 192,240 L 448,240" fill="none" stroke="black"/>
                  <path d="M 0,16 L 0,48" fill="none" stroke="black"/>
                  <path d="M 24,48 L 24,240" fill="none" stroke="black"/>
                  <path d="M 48,16 L 48,32" fill="none" stroke="black"/>
                  <path d="M 48,32 L 48,48" fill="none" stroke="black"/>
                  <path d="M 168,16 L 168,64" fill="none" stroke="black"/>
                  <path d="M 168,144 L 168,192" fill="none" stroke="black"/>
                  <path d="M 192,64 L 192,144" fill="none" stroke="black"/>
                  <path d="M 216,112 L 216,144" fill="none" stroke="black"/>
                  <path d="M 216,192 L 216,208" fill="none" stroke="black"/>
                  <path d="M 240,16 L 240,64" fill="none" stroke="black"/>
                  <path d="M 240,144 L 240,192" fill="none" stroke="black"/>
                  <path d="M 408,144 L 408,176" fill="none" stroke="black"/>
                  <path d="M 432,112 L 432,144" fill="none" stroke="black"/>
                  <path d="M 432,176 L 432,208" fill="none" stroke="black"/>
                  <path d="M 448,176 L 448,240" fill="none" stroke="black"/>
                  <path d="M 464,144 L 464,176" fill="none" stroke="black"/>
                  <polygon points="168.000000,32.000000 156.000000,26.400000 156.000000,37.599998" transform="rotate(0.000000, 160.000000, 32.000000)" fill="black"/>
                  <polygon points="200.000000,240.000000 188.000000,234.399994 188.000000,245.600006" transform="rotate(0.000000, 192.000000, 240.000000)" fill="black"/>
                  <polygon points="320.000000,208.000000 308.000000,202.399994 308.000000,213.600006" transform="rotate(180.000000, 312.000000, 208.000000)" fill="black"/>
                  <polygon points="328.000000,112.000000 316.000000,106.400002 316.000000,117.599998" transform="rotate(0.000000, 320.000000, 112.000000)" fill="black"/>
                  <circle cx="192" cy="64" r="6" fill="white" stroke="black"/>
                  <circle cx="192" cy="144" r="6" fill="white" stroke="black"/>
                  <text text-anchor="middle" font-family="monospace" x="288" y="228" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="292" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="228" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="248" y="260" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="260" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="292" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="308" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="164" fill="black" font-size="1em">O</text>
                  <text text-anchor="middle" font-family="monospace" x="424" y="292" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="308" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="36" fill="black" font-size="1em">O</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="52" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="100" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="52" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="100" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="164" fill="black" font-size="1em">I</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="228" fill="black" font-size="1em">V</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="292" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="448" y="292" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="488" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="20" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="24" y="36" fill="black" font-size="1em">D</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="180" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="180" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="228" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="260" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="292" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="160" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="292" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="472" y="292" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="308" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="36" fill="black" font-size="1em">I</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="292" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="308" fill="black" font-size="1em">v</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="308" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="228" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="260" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="260" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="292" fill="black" font-size="1em">-</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="36" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="228" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="20" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="296" y="100" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="180" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="292" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="40" y="308" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="52" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="8" y="292" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="32" y="292" fill="black" font-size="1em">U</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="292" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="56" y="308" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="100" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="228" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="80" y="20" fill="black" font-size="1em">M</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="20" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="260" fill="black" font-size="1em">M</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="308" fill="black" font-size="1em">.</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="20" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="228" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="228" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="40" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="464" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="20" fill="black" font-size="1em">E</text>
                  <text text-anchor="middle" font-family="monospace" x="440" y="164" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="260" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="292" fill="black" font-size="1em">f</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="292" fill="black" font-size="1em">S</text>
                  <text text-anchor="middle" font-family="monospace" x="72" y="308" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="288" y="100" fill="black" font-size="1em">M</text>
                  <text text-anchor="middle" font-family="monospace" x="432" y="164" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="228" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="228" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="260" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="256" y="260" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="96" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="292" fill="black" font-size="1em">R</text>
                  <text text-anchor="middle" font-family="monospace" x="136" y="20" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="100" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="292" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="308" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="320" y="100" fill="black" font-size="1em">h</text>
                  <text text-anchor="middle" font-family="monospace" x="336" y="100" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="112" y="260" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="168" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="384" y="292" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="432" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="260" fill="black" font-size="1em">u</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="260" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="260" fill="black" font-size="1em">1</text>
                  <text text-anchor="middle" font-family="monospace" x="16" y="36" fill="black" font-size="1em">N</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="180" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="260" fill="black" font-size="1em">)</text>
                  <text text-anchor="middle" font-family="monospace" x="88" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="292" fill="black" font-size="1em">o</text>
                  <text text-anchor="middle" font-family="monospace" x="416" y="292" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="52" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="328" y="100" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="260" fill="black" font-size="1em">b</text>
                  <text text-anchor="middle" font-family="monospace" x="352" y="292" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="456" y="292" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="20" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="232" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="272" y="228" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="144" y="260" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="240" y="260" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="360" y="100" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="180" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="312" y="228" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="260" fill="black" font-size="1em">A</text>
                  <text text-anchor="middle" font-family="monospace" x="408" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="480" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="20" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="228" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="368" y="228" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="376" y="292" fill="black" font-size="1em">T</text>
                  <text text-anchor="middle" font-family="monospace" x="128" y="20" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="184" y="52" fill="black" font-size="1em">s</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="164" fill="black" font-size="1em">d</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="260" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="48" y="292" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="120" y="292" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="264" y="260" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="280" y="260" fill="black" font-size="1em">e</text>
                  <text text-anchor="middle" font-family="monospace" x="16" y="292" fill="black" font-size="1em">]</text>
                  <text text-anchor="middle" font-family="monospace" x="192" y="292" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="152" y="20" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="100" fill="black" font-size="1em">n</text>
                  <text text-anchor="middle" font-family="monospace" x="392" y="228" fill="black" font-size="1em">l</text>
                  <text text-anchor="middle" font-family="monospace" x="104" y="260" fill="black" font-size="1em">(</text>
                  <text text-anchor="middle" font-family="monospace" x="176" y="292" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="304" y="292" fill="black" font-size="1em">a</text>
                  <text text-anchor="middle" font-family="monospace" x="440" y="292" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="200" y="180" fill="black" font-size="1em">i</text>
                  <text text-anchor="middle" font-family="monospace" x="0" y="292" fill="black" font-size="1em">[</text>
                  <text text-anchor="middle" font-family="monospace" x="64" y="292" fill="black" font-size="1em">t</text>
                  <text text-anchor="middle" font-family="monospace" x="32" y="36" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="208" y="260" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="216" y="292" fill="black" font-size="1em">c</text>
                  <text text-anchor="middle" font-family="monospace" x="32" y="308" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="52" fill="black" font-size="1em">r</text>
                  <text text-anchor="middle" font-family="monospace" x="344" y="228" fill="black" font-size="1em">C</text>
                  <text text-anchor="middle" font-family="monospace" x="224" y="260" fill="black" font-size="1em">E</text>
                </g>
              </svg>
            </artwork>
            <artwork type="ascii-art" name="" alt="">
.-----. ACME Channel .--------.
| NDC +-------------&gt;| IdO    |
'--+--'              | server |
   |                 '--o-----'
   |                    |
   |                    |         ACME Channel
   |                    |  .------------&gt;-------------.
   |                    |  |                          |
   |                 .--o--+--.                    .--+---.
   |                 | IdO    |                    |  CA  |
   |                 | client |                    '--+-+-'
   |                 '-----+--'                       | |
   |                       '-----------&lt;--------------' |
   |                            Validation Channel      |
   '--------------------&gt;-------------------------------'
             (subset of) ACME Channel [1]

[1] Unauthenticated certificate fetch and non-STAR certificate
    revocation.

</artwork>
          </artset>
        </figure>
        <t>The considerations regarding the security of the ACME Channel and Validation
Channel discussed in <xref target="RFC8555"/> apply verbatim to the IdO-CA leg.
The same can be said for the ACME Channel on the NDC-IdO leg.  A slightly
different set of considerations apply to the ACME Channel between the NDC and CA,
which consists of a subset of the ACME interface comprising two API
endpoints: the unauthenticated certificate retrieval and, potentially, non-STAR
revocation via certificate private key.  No specific security considerations
apply to the former, but the privacy considerations in
<xref target="RFC8739" section="6.3"/> do.  With regard to the latter, it should be noted that there is
currently no means for an IdO to disable authorizing revocation based on
certificate private keys.  So, in theory, an NDC could use the revocation API
directly with the CA, therefore, bypassing the IdO.  The NDC <bcp14>SHOULD NOT</bcp14>
directly use the revocation interface exposed by the CA unless failing
to do so would compromise the overall security, for example, if the certificate
private key is compromised and the IdO is not currently reachable.</t>
        <t>All other security considerations from <xref target="RFC8555"/> and <xref target="RFC8739"/> apply
as is to the delegation topology.</t>
      </section>
      <section anchor="restricting-cdns-to-the-delegation-mechanism">
        <name>Restricting CDNs to the Delegation Mechanism</name>
        <t>When a website is delegated to a CDN, the CDN can in principle modify the website at will, e.g., create and remove pages. This means that a malicious or breached
CDN can pass the ACME (as well as common non-ACME) HTTPS-based validation
challenges and generate a certificate for the site. This is true regardless of
whether or not the CNAME mechanisms defined in the current document is used.</t>
        <t>In some cases, this is the desired behavior; the domain holder trusts the CDN to
have full control of the cryptographic credentials for the site. However, this
document assumes a scenario where the domain holder only wants to delegate
restricted control and wishes to retain the capability to cancel the CDN's
credentials at a short notice.</t>
        <t>The following is a possible mitigation when the IdO wishes to ensure that a
rogue CDN cannot issue unauthorized certificates:</t>
        <ul>
          <li>The domain holder makes sure that the CDN cannot modify the DNS records for
the domain.  The domain holder should ensure it is the only entity authorized
to modify the DNS zone. Typically, it establishes a CNAME resource record
from a subdomain into a CDN-managed domain.</li>
          <li>The domain holder uses a Certification Authority Authorization (CAA) record <xref target="RFC8659"/> to restrict certificate
issuance for the domain to specific CAs that comply with ACME and are known
to implement <xref target="RFC8657"/>.</li>
          <li>The domain holder uses the ACME-specific CAA mechanism <xref target="RFC8657"/> to
restrict issuance to a specific CA account that is controlled by it and
<bcp14>MUST</bcp14> require "dns-01" as the sole validation method.</li>
        </ul>
        <t>We note that the above solution may need to be tweaked depending on the exact
capabilities and authorization flows supported by the selected CA.
In addition, this mitigation may be bypassed if a malicious or misconfigured CA
does not comply with CAA restrictions.</t>
      </section>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-acme-authority-token-tnauthlist" to="TOKEN-TNAUTHLIST"/>
    <displayreference target="I-D.ietf-cdni-interfaces-https-delegation" to="HTTPS-DELEGATION"/>
    <displayreference target="I-D.ietf-tls-subcerts" to="TLS-SUBCERTS"/>
    <displayreference target="I-D.mglt-lurk-tls13" to="MGLT-LURK-TLS13"/>
    <displayreference target="I-D.handrews-json-schema-validation" to="json-schema-07"/>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2986.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5280.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7807.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8555.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8610.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8739.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-acme-authority-token-tnauthlist.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-cdni-interfaces-https-delegation.xml"/>

<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9060.xml"/>

        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-tls-subcerts.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.mglt-lurk-tls13.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.handrews-json-schema-validation.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6125.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7336.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8225.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8226.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8657.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8659.xml"/>
      </references>
    </references>
    <section anchor="csr-template-schema-cddl">
      <name>CSR Template: CDDL</name>
      <t>Following is the normative definition of the CSR template using CDDL <xref target="RFC8610"/>. The CSR template <bcp14>MUST</bcp14> be a valid JSON document that is compliant with the syntax defined here.</t>
      <t>There are additional constraints not expressed in CDDL that <bcp14>MUST</bcp14> be validated
by the recipient, including:</t>
      <ul>
        <li>the value of each <tt>subjectAltName</tt> entry is compatible with its type and</li>
        <li>the parameters in each <tt>keyTypes</tt> entry form an acceptable combination.</li>
      </ul>
      <sourcecode name="" type="cddl"><![CDATA[
csr-template-schema = {
  keyTypes: [ + $keyType ]
  ? subject: non-empty<distinguishedName>
  extensions: extensions
}

non-empty<M> = (M) .and ({ + any => any })

mandatory-wildcard = "**"
optional-wildcard = "*"
wildcard = mandatory-wildcard / optional-wildcard

; regtext matches all text strings but "*" and "**"
regtext = text .regexp "([^\*].*)|([\*][^\*].*)|([\*][\*].+)"

regtext-or-wildcard = regtext / wildcard

distinguishedName = {
  ? country: regtext-or-wildcard
  ? stateOrProvince: regtext-or-wildcard
  ? locality: regtext-or-wildcard
  ? organization: regtext-or-wildcard
  ? organizationalUnit: regtext-or-wildcard
  ? emailAddress: regtext-or-wildcard
  ? commonName: regtext-or-wildcard
}

$keyType /= rsaKeyType
$keyType /= ecdsaKeyType

rsaKeyType = {
  PublicKeyType: "rsaEncryption" ; OID: 1.2.840.113549.1.1.1
  PublicKeyLength: rsaKeySize
  SignatureType: $rsaSignatureType
}

rsaKeySize = uint

; RSASSA-PKCS1-v1_5 with SHA-256
$rsaSignatureType /= "sha256WithRSAEncryption"
; RSASSA-PCKS1-v1_5 with SHA-384
$rsaSignatureType /= "sha384WithRSAEncryption"
; RSASSA-PCKS1-v1_5 with SHA-512
$rsaSignatureType /= "sha512WithRSAEncryption"
; RSASSA-PSS with SHA-256, MGF-1 with SHA-256, and a 32 byte salt
$rsaSignatureType /= "sha256WithRSAandMGF1"
; RSASSA-PSS with SHA-384, MGF-1 with SHA-384, and a 48 byte salt
$rsaSignatureType /= "sha384WithRSAandMGF1"
; RSASSA-PSS with SHA-512, MGF-1 with SHA-512, and a 64 byte salt
$rsaSignatureType /= "sha512WithRSAandMGF1"

ecdsaKeyType = {
  PublicKeyType: "id-ecPublicKey" ; OID: 1.2.840.10045.2.1
  namedCurve: $ecdsaCurve
  SignatureType: $ecdsaSignatureType
}

$ecdsaCurve /= "secp256r1" ; OID: 1.2.840.10045.3.1.7
$ecdsaCurve /= "secp384r1" ; OID: 1.3.132.0.34
$ecdsaCurve /= "secp521r1" ; OID: 1.3.132.0.3

$ecdsaSignatureType /= "ecdsa-with-SHA256" ; paired with secp256r1
$ecdsaSignatureType /= "ecdsa-with-SHA384" ; paired with secp384r1
$ecdsaSignatureType /= "ecdsa-with-SHA512" ; paired with secp521r1

subjectaltname = {
  ? DNS: [ + regtext-or-wildcard ]
  ? Email: [ + regtext ]
  ? URI: [ + regtext ]
  * $$subjectaltname-extension
}

extensions = {
  ? keyUsage: [ + keyUsageType ]
  ? extendedKeyUsage: [ + extendedKeyUsageType ]
  subjectAltName: non-empty<subjectaltname>
}

keyUsageType /= "digitalSignature"
keyUsageType /= "nonRepudiation"
keyUsageType /= "keyEncipherment"
keyUsageType /= "dataEncipherment"
keyUsageType /= "keyAgreement"
keyUsageType /= "keyCertSign"
keyUsageType /= "cRLSign"
keyUsageType /= "encipherOnly"
keyUsageType /= "decipherOnly"

extendedKeyUsageType /= "serverAuth"
extendedKeyUsageType /= "clientAuth"
extendedKeyUsageType /= "codeSigning"
extendedKeyUsageType /= "emailProtection"
extendedKeyUsageType /= "timeStamping"
extendedKeyUsageType /= "OCSPSigning"
extendedKeyUsageType /= oid

oid = text .regexp "([0-2])((\.0)|(\.[1-9][0-9]*))*"
]]>
</sourcecode>
    </section>
    <section anchor="csr-template-schema">
      <name>CSR Template: JSON Schema</name>
      <t>This appendix includes an alternative, nonnormative JSON Schema definition of the CSR template. The syntax used is that of draft 7 of JSON Schema, which is documented in <xref target="I-D.handrews-json-schema-validation"/>. Note that later versions of this (now-expired) draft describe later versions of the JSON Schema syntax. At the time of writing, a stable reference for this syntax is not yet available, and we have chosen to use the draft version, which is currently best supported by tool implementations.</t>
      <t>The same considerations about additional constraints checking discussed in
<xref target="csr-template-schema-cddl"/> apply here as well.</t>
      <sourcecode name="" type="json"><![CDATA[
{
  "title": "JSON Schema for the STAR Delegation CSR template",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://ietf.org/acme/drafts/star-delegation/csr-template",
  "$defs": {
    "distinguished-name": {
      "$id": "#distinguished-name",
      "type": "object",
      "minProperties": 1,
      "properties": {
        "country": {
          "type": "string"
        },
        "stateOrProvince": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "organizationalUnit": {
          "type": "string"
        },
        "emailAddress": {
          "type": "string"
        },
        "commonName": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "rsaKeyType": {
      "$id": "#rsaKeyType",
      "type": "object",
      "properties": {
        "PublicKeyType": {
          "type": "string",
          "const": "rsaEncryption"
        },
        "PublicKeyLength": {
          "type": "integer"
        },
        "SignatureType": {
          "type": "string",
          "enum": [
            "sha256WithRSAEncryption",
            "sha384WithRSAEncryption",
            "sha512WithRSAEncryption",
            "sha256WithRSAandMGF1",
            "sha384WithRSAandMGF1",
            "sha512WithRSAandMGF1"
          ]
        }
      },
      "required": [
        "PublicKeyType",
        "PublicKeyLength",
        "SignatureType"
      ],
      "additionalProperties": false
    },
    "ecdsaKeyType": {
      "$id": "#ecdsaKeyType",
      "type": "object",
      "properties": {
        "PublicKeyType": {
          "type": "string",
          "const": "id-ecPublicKey"
        },
        "namedCurve": {
          "type": "string",
          "enum": [
            "secp256r1",
            "secp384r1",
            "secp521r1"
          ]
        },
        "SignatureType": {
          "type": "string",
          "enum": [
            "ecdsa-with-SHA256",
            "ecdsa-with-SHA384",
            "ecdsa-with-SHA512"
          ]
        }
      },
      "required": [
        "PublicKeyType",
        "namedCurve",
        "SignatureType"
      ],
      "additionalProperties": false
    }
  },
  "type": "object",
  "properties": {
    "keyTypes": {
      "type": "array",
      "minItems": 1,
      "items": {
        "anyOf": [
          {
            "$ref": "#rsaKeyType"
          },
          {
            "$ref": "#ecdsaKeyType"
          }
        ]
      }
    },
    "subject": {
      "$ref": "#distinguished-name"
    },
    "extensions": {
      "type": "object",
      "properties": {
        "keyUsage": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "enum": [
              "digitalSignature",
              "nonRepudiation",
              "keyEncipherment",
              "dataEncipherment",
              "keyAgreement",
              "keyCertSign",
              "cRLSign",
              "encipherOnly",
              "decipherOnly"
            ]
          }
        },
        "extendedKeyUsage": {
          "type": "array",
          "minItems": 1,
          "items": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "serverAuth",
                  "clientAuth",
                  "codeSigning",
                  "emailProtection",
                  "timeStamping",
                  "OCSPSigning"
                ]
              },
              {
                "type": "string",
                "pattern": "^([0-2])((\\.0)|(\\.[1-9][0-9]*))*$",
                "description": "Used for OID values"
              }
            ]
          }
        },
        "subjectAltName": {
          "type": "object",
          "minProperties": 1,
          "properties": {
            "DNS": {
              "type": "array",
              "minItems": 1,
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "*",
                      "**"
                    ]
                  },
                  {
                    "type": "string",
                    "format": "hostname"
                  }
                ]
              }
            },
            "Email": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "format": "email"
              }
            },
            "URI": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "subjectAltName"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "extensions",
    "keyTypes"
  ],
  "additionalProperties": false
}
]]>
</sourcecode>
    </section>
    <section anchor="acknowledgements" numbered="false">
      <name>Acknowledgements</name>
      <t>We would like to thank the following people who contributed significantly to this document with their review comments and design proposals: <contact fullname="Richard Barnes"/>, <contact fullname="Carsten Bormann"/>, <contact fullname="Roman Danyliw"/>, <contact fullname="Lars Eggert"/>, <contact fullname="Frédéric Fieau"/>, <contact fullname="Russ Housley"/>, <contact fullname="Ben Kaduk"/>, <contact fullname="Eric Kline"/>, <contact fullname="Sanjay Mishra"/>, <contact fullname="Francesca Palombini"/>, <contact fullname="Jon Peterson"/>, <contact fullname="Ryan Sleevi"/>, <contact fullname="Emile Stephan"/>, and <contact fullname="Éric Vyncke"/>.</t>
      <t>This work is partially supported by the European Commission under Horizon 2020
grant agreement no. 688421 Measurement and Architecture for a Middleboxed
Internet (MAMI). This support does not imply endorsement.</t>
    </section>
  </back>
</rfc>
