Hi Michael,
Thanks for the detailed review. We've prepared a revision
(draft-geng-acme-public-key-07, attached) that addresses most of your points.
Walking through them:
> It seems that this almost suffers from the same mis-understanding of
> challenges as acme-rats originally did. At least though, the intention is
> that it is pk-01 OR dns-01 OR http-01 OR ... (not AND as rats needed)
In -07, pk-01 is no longer entangled with identifier validation. We introduced
a new "pk" identifier type (Section 3); pk-01 is bound to "pk" identifiers and
proves possession of the certificate private key only. Existing challenges
(dns-01, http-01, ...) remain bound to their own identifier types per [RFC8555]
without modification.
An order can carry both identifier types:
{
"identifiers": [
{ "type": "dns", "value": "www.example.com" },
{ "type": "pk", "value": "<base64url(SPKI)>" }
]
}
> This produces two independent authorizations, evaluated per [RFC8555] Section
> 7.1.6 (all authorizations across all identifiers must reach "valid"; within
> each authorization the client picks one challenge to complete). See -07
> Sections 3.2 and 3.3.
In the "async" mode, the pk-01 replaces the dns-01, http-01 or email-01
challenges. This would seem to wind up limiting future extensions to challenge
types, and it does not cover all the challenge types extensions we've already
done. (like, onion, subdomain, dns-persist, ...)
The async/sync modes of -06 are entirely removed in -07. pk-01 no longer
carries any identifier control role. Existing extensions (onion-csr-01,
subdomain, dns-persist, etc.) continue to operate unchanged alongside pk-01.
> I'm not entirely sure how the client communicates to the server what
> mechanism is going to be used.
There is no mechanism negotiation in -07. The challenge mode (signature vs KEM)
is determined uniquely by the AlgorithmIdentifier inside the SPKI carried by
the "pk" identifier value — see -07 Section 3.1.
> I found 4.3, async, not well enough described. Sounds like https-01?
Section 4.3 of -06 is gone. -07 Section 4 specifies one challenge object format
per key type and one validation flow per mode.
> Examples should include dns-01, http-01 as options that the client does not
> choose.
Done. -07 Section 11.1 Step 2:
The authorization for the dns identifier typically contains multiple challenges
such as dns-01, http-01, and tls-alpn-01; the client picks one to complete per
[RFC8555] Section 7.1.4. This example uses dns-01 (per [RFC8555] Section 8.4).
> Replacing the CSR with something better, something that can deal with keys
> that can't make signatures (either do to math or policy) is important. I had
> proposed work like this if/when we start RFC7030bis.
We share this motivation. KEM-key support is in fact one of the primary reasons
for a dedicated PoP mechanism rather than relying on the CSR self-signature,
which is impossible for KEM-only keys. -07 supports ML-KEM-512/768/1024 via a
Decapsulate + HKDF + HMAC PoP — see Section 5.2 (KEM PoP construction) and
Section 5.4 (KEM algorithm registry).
> The ACME server should simply announce the set of POP methods that it can
> support, with CSR being the default. I don't think a new challenge method is
> the correct way to negotiate this.
This is the one architectural point where we've taken a different direction,
following the chair's earlier guidance and the model that ACME has consistently
used: challenges bound to identifier types (dns-01 for dns, http-01 for
dns-via-http, onion-csr-01 for onion, etc.). -07 introduces a "pk" identifier
type and a pk-01 challenge bound to it, which keeps the architecture modular
and aligned with how the working group has handled similar extensions.
That said, -07 Section 5.5 does include directory-level capability
advertisement: the server SHOULD declare its supported signature and KEM
algorithms in Directory metadata, giving clients a way to check support before
initiating an order.
If you see specific failure modes of the challenge-type approach that would not
occur under a directory-announcement approach, we'd welcome a concrete
discussion — happy to follow up either on the list or in a side thread.
Best regards!
2026年5月1日 01:36,Michael Richardson <[email protected]> 写道:
I would not adopt.
This is the wrong way to do this.
Mike Ounsworth via Datatracker <[email protected]> wrote:
This message starts a acme WG Call for Adoption of:
draft-geng-acme-public-key-06
This Working Group Call for Adoption ends on 2026-05-12
Chair Note #1: The most recent version of the draft has significantly
scoped-down the content from what was presented at IETF 125. This draft
is now purely focused on the pk-01 challenge type towards the goal of
being able to remove the ASN.1 CSR from an ACME flow.
okay... but:
} After the ACME server receives a "newOrder" request containing the
} public_key field, it will issue a "pk-01" challenge for each
} identifier. When csr_less is set to "true", the server issues the
It seems that this almost suffers from the same mis-understanding of challenges
as
acme-rats originally did. At least though, the intention is that it is
pk-01 OR dns-01 OR http-01 OR ... (not AND as rats needed)
In the "async" mode, the pk-01 replaces the dns-01, http-01 or email-01
challenges.
This would seem to wind up limiting future extensions to challenge types, and
it does not cover all the challenge types extensions we've already
done. (like, onion, subdomain, dns-persist, ...)
I'm not entirely sure how the client communicates to the server what
mechanism is going to be used.
I found 4.3, async, not well enough described. Sounds like https-01?
Examples should include dns-01, http-01 as options that the client does not
choose.
Replacing the CSR with something better, something that can deal with keys
that can't make signatures (either do to math or policy) is important.
I had proposed work like this if/when we start RFC7030bis.
The ACME server should simply announce the set of POP methods that it can
support, with CSR being the default.
I don't think a new challenge method is the correct way to negotiate this.
Chair Note #2: IPR
yeah.
--
Michael Richardson <[email protected]> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
** My working hours and your working hours may be different. **
** Please do not feel obligated to reply outside your normal working hours **
_______________________________________________
Acme mailing list -- [email protected]
To unsubscribe send an email to [email protected]
# Internet-Draft: ACME Extension for Public Key Challenges (pk-01)
**draft-geng-acme-public-key-07**
---
## Abstract
The current ACME protocol [RFC8555] requires the applicant to submit a PKCS#10 Certificate Signing Request (CSR) at the finalization phase. In most ACME deployments, the CSR effectively serves only as a transport container for the public key; other fields (such as Subject DN) are typically ignored by the CA. The construction, ASN.1 encoding, and transmission of the CSR impose unnecessary implementation burden on both clients (especially resource-constrained devices) and servers, and introduce additional friction to post-quantum algorithm migration.
This document introduces a new ACME identifier type "pk" and an associated "pk-01" challenge. The applicant declares the public key to be certified at the `newOrder` stage by means of the `pk` identifier; the ACME server completes a cryptographic Proof of Possession (PoP) via the `pk-01` challenge. Since the public key has already been declared in the order and verified during the challenge, the finalization phase MAY omit the CSR; the server issues the certificate directly based on the validated public key and the authorized identifiers.
The `pk-01` challenge supports two classes of public keys:
- **Signature keys**: the applicant produces a cryptographic signature over the server-provided `nonce` concatenated with a hash of the `newOrder` payload;
- **KEM keys** (Key Encapsulation Mechanism): the server performs Encapsulate using the applicant's public key and delivers the ciphertext; the applicant performs Decapsulate, derives a MAC key, and computes a MAC over the `newOrder` payload hash.
The `pk-01` challenge is independent of identifier control validation: validation of identifiers such as DNS names and email addresses continues to be performed by existing ACME challenge types (`dns-01`, `http-01`, `tls-alpn-01`, `email-reply-00`, etc.). This extension can be used with non-DNS identifiers (email addresses, device serial numbers, etc.).
---
## 1. Introduction
### 1.1. Background and Motivation
In the current ACME flow, the applicant submits a PKCS#10 [RFC2986] CSR at the `finalize` stage. The CSR carries both the certificate public key and a self-signature over the CSR contents; the former is used for certificate issuance, while the latter serves as a proof of possession for the public key.
This extension moves the public key declaration to the `newOrder` stage and completes the proof of possession through the `pk-01` challenge, making the CSR unnecessary in the following respects:
- **CSR content redundancy**: Per [RFC8555] Section 7.4, identifier-related fields in the CSR (DNS names in commonName and the SAN extension) MUST match the `identifiers` array of the `newOrder`; other Subject DN fields do not participate in certificate issuance decisions. With the introduction of the `pk` identifier, the public key is also declared directly via `newOrder`, so the CSR no longer carries any new information.
- **Client implementation burden**: Constructing a valid PKCS#10 CSR requires a complete ASN.1/DER encoding toolchain and the corresponding signing implementation; for resource-constrained devices and certain emerging runtime environments, the cost of introducing such a toolchain is non-negligible.
- **Post-quantum algorithm compatibility**: KEM-only post-quantum keys (such as ML-KEM [FIPS-203]) cannot cryptographically produce signatures over messages, and therefore cannot generate the signature required by a PKCS#10 CSR to prove private key possession; this is a hard cryptographic constraint. In addition, post-quantum signature algorithms (such as ML-DSA [FIPS-204] and SLH-DSA) have significantly larger signature sizes than traditional algorithms, increasing the overall CSR size and transmission cost.
### 1.2. Scope
This document defines:
- A new ACME identifier type: `"pk"`;
- An associated ACME challenge type: `"pk-01"`, supporting proof of possession for both signature keys and KEM keys;
- The handling rule that allows the `finalize` stage to proceed without a CSR when the order contains a `pk` identifier.
The `pk-01` challenge is solely responsible for proving private key possession (PoP). Identifier control validation (for DNS names, email addresses, etc.) continues to be performed by existing ACME challenge types; this extension does not modify, overload, or replace any existing challenge type.
The PoP is submitted by the client as the body of a POST request to the `pk-01` challenge URL (per [RFC8555] Section 7.5.1); it is **not embedded** in the authorization resource itself.
---
## 2. Conventions and Definitions
The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY" in this document are to be interpreted as described in [RFC2119] and [RFC8174].
This document uses the following terminology:
- **ACME Client**: An ACME client as defined in [RFC8555]. In this document, "client" and "applicant" (the entity holding the private key to be certified) refer to the same entity in most scenarios.
- **ACME Server**: An ACME server as defined in [RFC8555], operated by a Certification Authority (CA) or its delegated service.
- **`pk` identifier**: An identifier of type `"pk"` declared in the `identifiers` array of a `newOrder` request. Its `value` field is the Base64URL encoding (without padding) of the DER-encoded `SubjectPublicKeyInfo` (SPKI) [RFC5480] of the public key to be certified.
- **Signature key**: An asymmetric key capable of digital signature operations (e.g., ECDSA, Ed25519, RSASSA-PSS, ML-DSA).
- **KEM key**: An asymmetric key capable of Key Encapsulation Mechanism operations (e.g., ML-KEM).
- **Proof of Possession (PoP)**: A cryptographic mechanism by which the requester proves possession of the private key corresponding to the public key declared in the `pk` identifier. For signature keys, the PoP is a signature over the challenge material; for KEM keys, the PoP is a MAC derived from the shared secret obtained through KEM Decapsulate.
- **`raw_newOrder`**: The exact byte sequence of the JSON payload of the `newOrder` request, i.e., the raw bytes of the JWS protected payload after Base64URL decoding and before JSON parsing.
- **`newOrder_hash`**: `SHA-256(raw_newOrder)`.
- **Base64URL encoding**: All Base64URL encodings in this document use the unpadded form (base64url-without-padding, per [RFC7515] Section 2), consistent with ACME [RFC8555] and the JOSE ecosystem.
---
## 3. The `"pk"` Identifier Type
This document defines a new ACME identifier type: `"pk"`.
### 3.1. Identifier Value Encoding
The `value` field of a `pk` identifier is the Base64URL encoding (without padding) of the DER-encoded `SubjectPublicKeyInfo` (SPKI) [RFC5480].
The server MUST validate that the bytes obtained by decoding the `pk` identifier value constitute a well-formed SPKI conforming to [X.690] Section 11 distinguished encoding (strict DER); inputs not conforming to strict DER MUST be rejected with the `urn:ietf:params:acme:error:badPublicKey` error. The server MUST store the SPKI as the originally received bytes and MUST NOT perform any form of re-encoding.
The public key declared in a `pk` identifier MUST be of a key type corresponding to one of the signature algorithms listed in Section 5.3 or one of the KEM algorithms listed in Section 5.4. The server SHOULD declare the supported key types and algorithm sets in the Directory metadata.
The server MUST determine the `pk-01` challenge mode uniquely based on the AlgorithmIdentifier within the SPKI:
- If the AlgorithmIdentifier corresponds to a signature algorithm listed in Section 5.3, the challenge uses the signature key mode (Section 5.1);
- If the AlgorithmIdentifier corresponds to a KEM algorithm listed in Section 5.4, the challenge uses the KEM key mode (Section 5.2);
- If the AlgorithmIdentifier belongs to neither Section 5.3 nor Section 5.4, the declared key type is not within the server's supported range, or the `pk` identifier value cannot be decoded as a valid SPKI, the server MUST reject the `newOrder` request with the `urn:ietf:params:acme:error:badPublicKey` error.
### 3.2. Multi-Identifier Orders
An order MAY contain multiple identifier types. For example:
```http
POST /acme/new-order HTTP/1.1
Host: acme.example.com
Content-Type: application/jose+json
{
"identifiers": [
{ "type": "dns", "value": "www.example.com" },
{ "type": "pk", "value": "<base64url(SPKI)>" }
]
}
```
The ACME server MUST issue separate challenges for each identifier according to its type: `dns` identifiers trigger standard challenges such as `dns-01` / `http-01` / `tls-alpn-01`; `pk` identifiers trigger the `pk-01` challenge defined in this document.
A single `newOrder` request MUST NOT contain more than one `pk` type identifier: each order produces one certificate that is bound to a single SPKI. Composite-certificate and other multi-public-key scenarios are out of scope for this document. The server MUST reject such requests with the `urn:ietf:params:acme:error:malformed` error.
### 3.3. State Semantics for Multi-Challenge Orders
Each identifier's challenge in an order is evaluated independently. An order's transition to the `ready` state follows [RFC8555] Section 7.1.6: an order MAY be finalized only when all challenges in the order are in the `valid` state. This document does not modify these semantics.
### 3.4. Orders Containing Only a `pk` Identifier
An order MAY contain only a `pk` identifier. In this case, the certificate's Subject and SAN fields are determined by CA policy and not specified by this document. Common policies include:
- Using the public key fingerprint (SHA-256 of SPKI) as the Subject CN;
- Deriving the Subject from identity information bound to the ACME account (e.g., contact email);
- Allowing the client to specify the derivation method via the profiles extension [I-D.aaron-acme-profiles];
- Rejecting such orders with an applicable error type from [RFC8555] Section 6.7 (e.g., `rejectedIdentifier`).
---
## 4. The `pk-01` Challenge
The `pk-01` challenge is used solely to prove possession of the private key corresponding to the public key declared in the `pk` identifier. This section defines the challenge object's fields and the behaviors of the client and server; the specific construction methods for proof of possession are given in Section 5.
### 4.1. Challenge Object
The `pk-01` challenge object extends the standard challenge object fields defined in [RFC8555] Section 7.1.5 and Section 8 (including `type`, `url`, `status`, and `validated`, `error` as they appear in the corresponding states). This section describes only the new fields introduced by `pk-01`; the semantics of other fields follow [RFC8555].
The set of fields in the `pk-01` challenge object is determined by the key type declared in the `pk` identifier.
#### 4.1.1. Challenge Object for Signature Keys
```json
{
"type": "pk-01",
"url": "https://acme.example.com/acme/chall/abc123",
"status": "pending",
"nonce": "Kz3mVpQeRd9fLwYbN5hXuT6oJsIc0vAg2nEp1yMrFqZ"
}
```
Field descriptions:
- `type`: Fixed value `"pk-01"`.
- `url`, `status`: Per [RFC8555] Section 7.1.5 standard semantics.
- `nonce`: A random value generated by the ACME server independently for this challenge, Base64URL-encoded, with at least 128 bits of entropy [RFC4086]. The same `nonce` MUST NOT be used for multiple challenges.
#### 4.1.2. Challenge Object for KEM Keys
```json
{
"type": "pk-01",
"url": "https://acme.example.com/acme/chall/def456",
"status": "pending",
"challenge_ciphertext": "Af2x3..."
}
```
Field descriptions:
- `type`: Fixed value `"pk-01"`.
- `url`, `status`: Per [RFC8555] Section 7.1.5 standard semantics.
- `challenge_ciphertext`: The Base64URL encoding of the ciphertext produced by the server's KEM Encapsulate operation using the applicant's public key. The KEM algorithm used by the challenge is uniquely determined by the AlgorithmIdentifier in the `pk` identifier's SPKI (see Section 5.4).
#### 4.1.3. Field Mutual Exclusion
The `nonce` and `challenge_ciphertext` fields are mutually exclusive: each `pk-01` challenge object MUST contain exactly one of them. The server determines which field to use based on the key type declared in the `pk` identifier.
### 4.2. Client Response
The client constructs the `proof` per Section 5 and submits it via an authenticated ACME POST to the challenge `url`:
```http
POST /acme/chall/abc123 HTTP/1.1
Content-Type: application/jose+json
{
"proof": "<base64url-encoded proof>"
}
```
The `proof` field has different semantics in the two modes: in signature key mode, it is a signature over `to_sign` (Section 5.1); in KEM key mode, it is an HMAC over `newOrder_hash` (Section 5.2).
### 4.3. Server Validation
Upon receiving a challenge response, the server:
1. Retrieves the previously stored `newOrder_hash` from the order record (computation and storage requirements are described in Section 10.1.1).
2. Selects the validation path based on the field present in the challenge object:
- **Signature key mode**: Retrieves the locally stored `nonce_bytes` (the server MUST NOT trust any `nonce` value sent by the client), constructs `to_sign = nonce_bytes || newOrder_hash`, and verifies the signature using the SPKI public key obtained by decoding the `pk` identifier value.
- **KEM key mode**: Retrieves the locally stored `mac_key` and verifies that `HMAC-SHA-256(mac_key, newOrder_hash)` equals the `proof` submitted by the client.
3. If validation succeeds, the challenge state is set to `valid`; if it fails, the state is set to `invalid` and the `urn:ietf:params:acme:error:badPoP` error is returned.
4. After the challenge state is set to `valid` or `invalid`, the server MUST immediately destroy the locally stored `nonce` (signature mode) or `mac_key` (KEM mode). Any subsequent request carrying the same `nonce` MUST be rejected.
### 4.4. Protocol Interaction Diagram
In the diagram below, `hash` is shorthand for `newOrder_hash` (i.e., `SHA-256(raw_newOrder)`).
```
ACME Client ACME Server
| |
|---1. newOrder-------------->|
| identifiers: [ |
| {dns, www.example.com}, |
| {pk, base64url(SPKI)} |
| ] |
| |
|<--2. authz x 2--------------|
| +-- dns-01 (token) --+ |
| +-- pk-01 --+ |
| (signature: nonce) |
| (KEM: ct) |
| |
| [pk-01 processing: |
| Signature: proof = Sign(SK,|
| nonce||hash) |
| KEM: shared = Decap(SK,ct)|
| mac_key = HKDF(...) |
| proof = HMAC( |
| mac_key, hash)] |
| |
|---3. POST chall {proof}---->|
| |
|<--4. both challenges valid -|
| order enters ready state |
| |
|---5. POST finalize {} ----->|
| |
|<--6. certificate -----------|
| |
```
---
## 5. Proof of Possession for the `pk-01` Challenge
The construction method of the PoP for a `pk-01` challenge is determined by the key type declared in the `pk` identifier. Signature keys use the method specified in Section 5.1; KEM keys use the method specified in Section 5.2.
### 5.1. PoP for Signature Keys
In signature key mode, the `pk-01` challenge object contains the `nonce` field (see Section 4.1.1). The applicant constructs the proof by the following steps:
1. Let `raw_newOrder` be the exact JSON payload bytes of the `newOrder` request.
2. Compute `newOrder_hash = SHA-256(raw_newOrder)`.
3. Let `nonce_bytes` be the raw bytes obtained by Base64URL-decoding the `nonce` field.
4. Construct the message to be signed:
```
to_sign = nonce_bytes || newOrder_hash
```
where `||` denotes raw byte concatenation.
5. Compute the signature:
```
proof = base64url( Sign(privateKey, to_sign) )
```
`Sign(key, message)` denotes a complete signing operation over `message` (with hashing internal to the algorithm). The caller MUST NOT pre-hash `message` before invocation.
### 5.2. PoP for KEM Keys
In KEM key mode, the `pk-01` challenge object contains the `challenge_ciphertext` field (see Section 4.1.2). The KEM algorithm used by the challenge is uniquely determined by the AlgorithmIdentifier in the `pk` identifier's SPKI (see Section 5.4).
When generating the challenge, the server performs:
1. Executes a KEM Encapsulate operation using the public key declared in the `pk` identifier, obtaining a shared secret `shared_secret` and a ciphertext `ct`.
2. Derives the MAC key:
```
prk = HKDF-Extract(salt = 32 zero bytes, IKM = shared_secret)
mac_key = HKDF-Expand(prk, info = "ACME-pk-01-KEM v1", L = 32)
```
See [RFC5869] for HKDF.
3. Stores `mac_key` in the order record; `shared_secret`, `prk`, and all intermediate states from the Encapsulate process MUST be destroyed after `mac_key` is derived.
4. Fills the `challenge_ciphertext` field with the Base64URL encoding of `ct`.
The applicant constructs the proof by the following steps:
1. Let `ct` be the raw bytes obtained by Base64URL-decoding the `challenge_ciphertext` field.
2. Performs KEM Decapsulate(`ct`) using the private key corresponding to the public key declared in the `pk` identifier, obtaining the shared secret `shared_secret`.
3. Derives `mac_key` using the same parameters as the server (as above).
4. Computes `newOrder_hash = SHA-256(raw_newOrder)`.
5. Computes the proof:
```
proof = base64url( HMAC-SHA-256(mac_key, newOrder_hash) )
```
The applicant MUST NOT use `shared_secret` directly as the HMAC key; `mac_key` MUST be derived via HKDF.
### 5.3. Signature Algorithms
In signature key mode, the signature algorithm is determined by the key type declared in the `pk` identifier:
| Key type | Signature algorithm |
|------------|------------------------------------|
| EC P-256 | ECDSA with SHA-256 |
| EC P-384 | ECDSA with SHA-384 |
| Ed25519 | Ed25519 (PureEdDSA, [RFC8032]) |
| RSA | RSASSA-PSS with SHA-256 |
| ML-DSA-44 | ML-DSA-44 [FIPS-204] |
| ML-DSA-65 | ML-DSA-65 [FIPS-204] |
| ML-DSA-87 | ML-DSA-87 [FIPS-204] |
The client MUST use the signature algorithm corresponding to the declared public key type.
The modulus length of an RSA key SHOULD be at least 2048 bits; the server MAY reject RSA keys with modulus length less than 2048 bits and return the `urn:ietf:params:acme:error:badPublicKey` error.
Byte encoding of signature values:
- **ECDSA**: MUST use the IEEE P1363 compact format (`r || s`, fixed length equal to twice the byte length of the curve order), per [RFC7518] Section 3.4; ASN.1 DER encoding MUST NOT be used.
- **RSASSA-PSS**: MUST use the PS256 parameter set (per [RFC7518] Section 3.5): MGF1 with SHA-256, salt length 32 bytes, trailer field 0xBC.
- **Ed25519**: MUST use the 64-byte signature encoding defined in [RFC8032] Section 5.1.
- **ML-DSA-44 / 65 / 87**: MUST use the byte encoding defined in [FIPS-204].
### 5.4. KEM Algorithms
In KEM key mode, the KEM algorithm is determined by the key type declared in the `pk` identifier:
| Key type | KEM algorithm | SPKI AlgorithmIdentifier OID |
|--------------|-------------------------|------------------------------|
| ML-KEM-512 | ML-KEM-512 [FIPS-203] | 2.16.840.1.101.3.4.4.1 |
| ML-KEM-768 | ML-KEM-768 [FIPS-203] | 2.16.840.1.101.3.4.4.2 |
| ML-KEM-1024 | ML-KEM-1024 [FIPS-203] | 2.16.840.1.101.3.4.4.3 |
The KEM algorithm used by the challenge is uniquely determined by the AlgorithmIdentifier OID within the `pk` identifier's SPKI. Both server and client MUST use the OID to select the KEM algorithm in the table above for the Encapsulate / Decapsulate operations.
### 5.5. Algorithm Set Declaration
The server SHOULD:
- Reject key types and algorithms that do not meet current security baselines;
- Declare the set of supported signature and KEM algorithms in the Directory metadata.
### 5.6. Order Binding
Both `to_sign` (signature key mode) and `newOrder_hash` (KEM key mode, used as HMAC input) include `SHA-256(raw_newOrder)`, binding the proof to the entire byte sequence of the `newOrder` request, including the `identifiers` array and any other fields. Any modification to `raw_newOrder` will cause PoP verification to fail.
---
## 6. Finalization
The behavior at the finalization stage depends on whether the order contains a `pk` identifier.
### 6.1. Order Contains a `pk` Identifier
The `finalize` request MUST be an empty object `{}`; the server MUST reject `finalize` requests containing other fields (such as `csr`) with the `urn:ietf:params:acme:error:malformed` error. When constructing the certificate, the server uses:
- **Public key**: The SPKI obtained by decoding the validated `pk` identifier value;
- **SAN (Subject Alternative Name)**: Derived from other validated identifiers in the order (such as `dns`, `rfc822name`).
```http
POST /acme/order/xyz/finalize HTTP/1.1
Content-Type: application/jose+json
{}
```
### 6.2. Order Does Not Contain a `pk` Identifier
Processed via the [RFC8555] standard finalization flow: the client MUST submit a PKCS#10 CSR. This extension does not apply in this case.
### 6.3. Public Key Consistency
Before issuing the certificate, the server MUST confirm that the SPKI to be written into the certificate is byte-for-byte identical to the SPKI obtained by decoding the `pk` identifier value. The server MUST treat the originally received bytes of the `pk` identifier value as the sole authoritative source and MUST NOT perform any form of DER normalization or re-encoding.
Note: The strict DER validation required by Section 3.1 ensures that the SPKI entering the system has only one canonical encoding, making the byte-level comparison deterministic.
---
## 7. Relationship to Existing ACME Mechanisms
### 7.1. Relationship to Existing Challenge Types
This extension does not modify, overload, or replace any existing challenge type. The `pk-01` challenge coexists with domain validation challenges such as `dns-01`, `http-01`, and `tls-alpn-01` in an order, processed in parallel and independently.
### 7.2. Authorization and Pre-authorization
Authorization for a `pk` identifier MUST NOT be reused across multiple orders: each order containing a `pk` identifier MUST trigger a new `pk-01` challenge and a new PoP verification.
This constraint stems from the order binding defined in Section 5.6: the `SHA-256(raw_newOrder)` in the PoP cryptographically binds the signature/MAC to the exact bytes of the current order. Reusing a previously valid authorization would leave the new order without a corresponding PoP, breaking the end-to-end public key binding.
The pre-authorization mechanism defined in [RFC8555] Section 7.4 does not apply to `pk` identifiers: pre-authorization requires the identifier to be validated before order creation, which conflicts with the order-binding semantics of this extension.
### 7.3. Relationship to CAA
The CAA (Certification Authority Authorization) record defined in [RFC8659] depends on DNS names. A `pk` identifier itself does not trigger CAA queries.
When an order contains both a `dns` identifier and a `pk` identifier, the CA MUST perform CAA checks for the `dns` identifier per [RFC8659]; the `pk` identifier does not affect the scope or outcome of the CAA check.
When an order contains only a `pk` identifier (no DNS name-class identifier), CAA does not apply; the CA's issuance authorization is determined by its local policy.
---
## 8. Security Considerations
The security considerations of this extension inherit from [RFC8555] Section 10. This section provides supplementary remarks on the specific mechanisms introduced by this extension.
The `pk-01` challenge cryptographically proves that, at the time the challenge completes, the requester possesses the private key corresponding to the declared public key. It does not prove that the requester is authorized to use any particular identifier (such as `dns`, `rfc822name`); authorization for identifier control is the responsibility of identifier-specific challenges (such as `dns-01`, `email-reply-00`) and CAA records or equivalent mechanisms. This extension does not constitute a defense against certificate requests originating from entities that have legitimately obtained control of the certificate private key.
The `nonce` field MUST have at least 128 bits of entropy [RFC4086] and MUST NOT contain characters outside the Base64URL alphabet (including the padding character `=`). The same `nonce` MUST NOT be used for multiple challenges; once the challenge enters a terminal state, the server MUST immediately mark the `nonce` as consumed, and any subsequent request carrying the same `nonce` MUST be rejected.
In KEM key mode, `mac_key` MUST be derived via HKDF [RFC5869] from `shared_secret` obtained through KEM Decapsulate; using `shared_secret` directly as the HMAC key does not satisfy the key derivation requirements of [NIST-SP-800-56C]. The HKDF `info` string `"ACME-pk-01-KEM v1"` isolates the derived key from any keys that might be derived from the same KEM public key in other protocols (such as TLS, JOSE, etc.).
The cryptographic binding between the certificate public key and the authorized identifiers is jointly established by the `pk-01` challenge and the byte-level public key consistency check at finalization: the PoP input includes `SHA-256(raw_newOrder)`, binding the signature or MAC to the entire byte sequence of the `newOrder` request (including the `identifiers` array and any other extension fields); when issuing the certificate, the server further requires the certificate public key to be byte-identical to the SPKI obtained by decoding the `pk` identifier value (see Section 6.3). Together, these constitute an end-to-end binding between the authorized identifiers and the public key of the issued certificate.
The server SHOULD reject key types and signature/KEM algorithms that do not meet current security baselines (see Section 5.5).
Since KEM keys do not cryptographically support signature operations, revocation (per [RFC8555] Section 7.6) of a certificate bound to a KEM public key can only be initiated by the ACME account key; the path of "signing the revocation request with the certificate private key" is not applicable to such certificates.
---
## 9. IANA Considerations
### 9.1. ACME Validation Methods Registry
IANA is requested to add the following entry to the **ACME Validation Methods** registry. The Change Controller is the IETF.
| Label | Identifier Type | Note | Reference |
|---------|-----------------|---------------------------------------------------|-------------------------------|
| `pk-01` | `pk` | Proof of Possession challenge for `pk` identifier | draft-geng-acme-public-key-07 |
### 9.2. ACME Identifier Types Registry
IANA is requested to add the following entry to the **ACME Identifier Types** registry. The Change Controller is the IETF.
| Label | Description | Reference |
|-------|------------------------------------------------------------|-------------------------------|
| `pk` | Public key, encoded as base64url of DER-encoded SPKI | draft-geng-acme-public-key-07 |
### 9.3. ACME Message Fields Registry
New fields (`pk-01` Challenge Object):
| Field | Message Type | Data Type | Presence | Description |
|------------------------|------------------------|-----------|--------------------------------------------------------------------------------|---------------------------------------------------------------------------|
| `nonce` | pk-01 Challenge Object | String | REQUIRED for signature keys (mutually exclusive with `challenge_ciphertext`) | Server-generated random value (>=128 bits entropy), Base64URL-encoded. |
| `challenge_ciphertext` | pk-01 Challenge Object | String | REQUIRED for KEM keys (mutually exclusive with `nonce`) | Base64URL-encoded KEM ciphertext from server's Encapsulate operation. |
New field (`pk-01` Challenge Response):
| Field | Message Type | Data Type | Presence | Description |
|---------|---------------------------------------|-----------|----------|--------------------------------------------------------------------------|
| `proof` | pk-01 Challenge Response (POST body) | String | REQUIRED | Base64URL-encoded signature (signature keys) or HMAC (KEM keys). |
### 9.4. ACME Error Types Registry
IANA is requested to add the following entry to the **ACME Error Types** registry. The Change Controller is the IETF.
| Type | Description | Reference |
|----------|---------------------------------------------------|-------------------------------|
| `badPoP` | The proof-of-possession verification has failed. | draft-geng-acme-public-key-07 |
### 9.5. Error Types Used by This Extension
| Error Type | Trigger Condition | Reference |
|----------------|--------------------------------------------------------------------------------------------------|---------------|
| `malformed` | A single `newOrder` request contains more than one `pk` identifier | Section 3.2 |
| `badPublicKey` | `pk` identifier value cannot be decoded as a valid SPKI, or the declared key type is not supported by the server | Section 3.1 |
| `badPoP` | Signature/MAC verification failed, or `nonce`/`mac_key` has been consumed | Section 4.3 |
`malformed` and `badPublicKey` are already registered in [RFC8555] Section 6.7. `badPoP` is requested for IANA registration by this document (Section 9.4).
---
## 10. Implementation Considerations
### 10.1. ACME Server (CA)
#### 10.1.1. Obtaining `newOrder_hash`
The input `raw_newOrder` to `newOrder_hash` is the raw byte sequence of the `newOrder` request's JWS protected payload after `BASE64URL-DECODE` and before JSON parsing.
The server MUST NOT serialize the parsed JSON object back to bytes for use as `raw_newOrder`: JSON normalization (field ordering, whitespace handling, Unicode escape forms, number representations, etc.) would alter the byte representation, causing the server's computed hash to differ from the client's.
The server MAY freely choose either of the following implementation approaches:
- Compute and persist `newOrder_hash` (about 32 bytes) at order creation time, no longer retaining `raw_newOrder`;
- Persist the `raw_newOrder` bytes as received and compute `newOrder_hash` on demand during `pk-01` challenge validation.
Regardless of the approach used, the server MUST ensure that the `newOrder_hash` used during `pk-01` challenge validation is byte-identical to the value computed from `raw_newOrder` at order creation time.
#### 10.1.2. Signature Key Mode
- The server MUST generate a unique `nonce` for each `pk-01` challenge and immediately mark it as consumed once the challenge reaches a terminal state.
- The byte length of `nonce` SHOULD be between 16 and 32 bytes; shorter values weaken the entropy guarantee, while longer values needlessly increase signature input and transmission overhead.
- The server MUST perform SPKI format validation on the `pk` identifier value and store it as the originally received bytes (see Sections 3.1 and 6.3).
#### 10.1.3. KEM Key Mode
- After the KEM Encapsulate operation completes, the server MUST:
- Immediately derive `mac_key` per Section 5.2;
- Store `mac_key` in the order record;
- Immediately destroy `shared_secret`, HKDF intermediate states, and all temporary materials from the Encapsulate process.
- `mac_key` MUST be immediately destroyed once the challenge reaches a terminal state.
- When comparing the client-submitted `proof` with the locally computed HMAC output, the server MUST use constant-time comparison to avoid leaking byte-level information through timing side channels.
#### 10.1.4. Error Returns
`pk-01`-related errors SHOULD use the [RFC7807] `Problem Details` format:
```json
{
"type": "urn:ietf:params:acme:error:badPoP",
"detail": "Signature verification failed for pk-01 challenge",
"status": 400
}
```
### 10.2. ACME Client
- The client MUST ensure that the private key used for the signature or KEM operation strictly corresponds to the public key declared in the `pk` identifier.
- The client MUST retain the exact byte sequence of the `newOrder` request's JWS payload (i.e., the bytes as sent) locally, and use the same byte sequence to compute `newOrder_hash` during the `pk-01` challenge phase. The client MUST NOT serialize the parsed JSON object back to bytes for use as `raw_newOrder`: JSON normalization would alter the byte representation, causing client and server to compute different hashes.
- The client MUST select the PoP construction method based on the field present in the `pk-01` challenge object (`nonce` or `challenge_ciphertext`); if the set of fields in the challenge object does not match the key type declared in the `pk` identifier, the client MUST abort with an error.
- When the order does not contain a `pk` identifier, the `finalize` stage MUST submit a PKCS#10 CSR as defined in [RFC8555].
- The client SHOULD use a key pair dedicated to the certificate, distinct from the ACME account key.
---
## 11. Examples
### 11.1. Signature Key: dns + pk Multi-Identifier Order
The applicant has DNS control over `example.com` and a P-256 key pair (private key `d`, public key SPKI bytes `<spki_bytes>`).
**Step 1: newOrder request**
```http
POST /acme/new-order HTTP/1.1
Host: acme.example.com
Content-Type: application/jose+json
{
"identifiers": [
{ "type": "dns", "value": "example.com" },
{ "type": "pk", "value": "<base64url(spki_bytes)>" }
]
}
```
**Step 2: Server returns two authorizations**
The authorization for the `dns` identifier typically contains multiple challenges such as `dns-01`, `http-01`, and `tls-alpn-01`; the client picks one to complete per [RFC8555] Section 7.1.4. This example uses `dns-01` (per [RFC8555] Section 8.4).
The authorization for the `pk` identifier:
```json
{
"type": "pk-01",
"url": "https://acme.example.com/acme/chall/pk789",
"status": "pending",
"nonce": "Kz3mVpQeRd9fLwYbN5hXuT6oJsIc0vAg2nEp1yMrFqZ"
}
```
**Step 3: Client constructs and submits PoP**
```
raw_newOrder = <exact bytes of step 1 newOrder JSON>
newOrder_hash = SHA-256(raw_newOrder)
nonce_bytes = base64url-decode("Kz3mVpQeRd9fLwYbN5hXuT6oJsIc0vAg2nEp1yMrFqZ")
to_sign = nonce_bytes || newOrder_hash
proof = base64url( ECDSA-Sign(d, to_sign) ) # IEEE P1363 encoding (see Section 5.3)
```
```http
POST /acme/chall/pk789 HTTP/1.1
Content-Type: application/jose+json
{ "proof": "<base64url signature>" }
```
**Step 4: All challenges valid, then finalize**
```http
POST /acme/order/xyz/finalize HTTP/1.1
Content-Type: application/jose+json
{}
```
The server issues the certificate using the SPKI obtained by decoding the `pk` identifier value as the public key and `example.com` as the SAN.
### 11.2. KEM Key: Order Containing Only a `pk` Identifier
The applicant has an ML-KEM-768 key pair (private key `sk`, public key SPKI bytes `<spki_bytes>`).
**Step 1: newOrder request**
```http
POST /acme/new-order HTTP/1.1
Host: acme.example.com
Content-Type: application/jose+json
{
"identifiers": [
{ "type": "pk", "value": "<base64url(spki_bytes)>" }
]
}
```
**Step 2: Server performs Encapsulate and returns the challenge**
The server performs ML-KEM-768 Encapsulate using the applicant's public key, obtains `(ct, shared_secret)`, derives `mac_key` and stores it in the order record, then immediately destroys `shared_secret` and any ephemeral state.
```json
{
"type": "pk-01",
"url": "https://acme.example.com/acme/chall/pk890",
"status": "pending",
"challenge_ciphertext": "<base64url(ct)>"
}
```
**Step 3: Client Decapsulates and submits PoP**
```
ct = base64url-decode(challenge_ciphertext)
shared_secret = ML-KEM-768.Decapsulate(sk, ct)
prk = HKDF-Extract(salt = 32 zero bytes, IKM = shared_secret)
mac_key = HKDF-Expand(prk, info = "ACME-pk-01-KEM v1", L = 32)
raw_newOrder = <exact bytes of step 1 newOrder JSON>
newOrder_hash = SHA-256(raw_newOrder)
proof = base64url( HMAC-SHA-256(mac_key, newOrder_hash) )
```
```http
POST /acme/chall/pk890 HTTP/1.1
Content-Type: application/jose+json
{ "proof": "<base64url MAC>" }
```
**Step 4: Server validation**
The server retrieves `mac_key` and `newOrder_hash` from the order record, computes `HMAC-SHA-256(mac_key, newOrder_hash)`, and compares it with the `proof` submitted by the client. It immediately destroys `mac_key` after validation completes.
**Step 5: finalize**
```http
POST /acme/order/xyz/finalize HTTP/1.1
Content-Type: application/jose+json
{}
```
The server issues the certificate using the SPKI obtained by decoding the `pk` identifier value as the public key; other certificate fields (Subject, SAN, etc.) are determined by CA policy (see Section 3.4).
---
## 12. References
### 12.1. Normative References
- **[RFC2119]** Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.
- **[RFC4086]** Eastlake, D., et al., "Randomness Requirements for Security", RFC 4086, June 2005.
- **[RFC5480]** Turner, S., et al., "Elliptic Curve Cryptography Subject Public Key Information", RFC 5480, March 2009.
- **[RFC5869]** Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, May 2010.
- **[RFC7515]** Jones, M., et al., "JSON Web Signature (JWS)", RFC 7515, May 2015.
- **[RFC7518]** Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, May 2015.
- **[RFC7807]** Nottingham, M. and E. Wilde, "Problem Details for HTTP APIs", RFC 7807, March 2016.
- **[RFC8032]** Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, January 2017.
- **[RFC8174]** Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017.
- **[RFC8555]** Barnes, R., et al., "Automatic Certificate Management Environment (ACME)", RFC 8555, March 2019.
- **[FIPS-203]** NIST, "Module-Lattice-Based Key-Encapsulation Mechanism Standard", FIPS 203, August 2024.
- **[FIPS-204]** NIST, "Module-Lattice-Based Digital Signature Standard", FIPS 204, August 2024.
- **[X.690]** ITU-T, "Information technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)", ITU-T Recommendation X.690, February 2021.
### 12.2. Informative References
- **[RFC2986]** Nystrom, M. and B. Kaliski, "PKCS #10: Certification Request Syntax Specification Version 1.7", RFC 2986, November 2000.
- **[RFC8659]** Hallam-Baker, P., et al., "DNS Certification Authority Authorization (CAA) Resource Record", RFC 8659, November 2019.
- **[RFC8738]** Shoemaker, R., "Automated Certificate Management Environment (ACME) IP Identifier Validation Extension", RFC 8738, February 2020.
- **[NIST-SP-800-56C]** NIST, "Recommendation for Key-Derivation Methods in Key-Establishment Schemes", SP 800-56C Rev. 2, August 2020.
- **[I-D.aaron-acme-profiles]** Gable, A., "Automated Certificate Management Environment (ACME) Profiles Extension", Work in Progress.
---
## Authors' Addresses
Feng Geng
Huawei Technologies
Email: [email protected]
Panyu Wu
Huawei Technologies
Email: [email protected]
Liang Xia
Huawei Technologies
Email: [email protected]
Xin Chen
TrustAsia Technologies
Email: [email protected]
_______________________________________________
Acme mailing list -- [email protected]
To unsubscribe send an email to [email protected]