The key that travels without its secret

OpenPGP is working out how to ship a key without shipping the key. On 4 September the Working Group opened an adoption call for a draft that lets a Transferable Secret Key declare, in a standard wire format, that its secret component lives somewhere else — a smartcard, a platform TPM, a remote HSM, whatever the operator trusts. The call closes 18 September. The document is draft-dkg-openpgp-external-secrets-03, and its most valuable word is also its most honest: external.

That word does a lot of work. It says the portable record is not the whole capability. A stub can cross the wire perfectly and still land on a machine that cannot use it — the driver is missing, the token is in a drawer, the PIN is forgotten, the operator was never authorized. The draft standardizes the absence. It does not pretend to fill it.

The short version

  • On 4 September the OpenPGP Working Group opened an adoption call for draft-dkg-openpgp-external-secrets-03, a draft that lets a Transferable Secret Key mark its secret material as external and carry an optional locator hint. The call closes 18 September; no adoption outcome is reported here.
  • The hint is advisory. A receiver may ignore an unknown hint or use best-effort discovery even when one is present. Revision 03 defines no particular hint scheme, and the live IANA registry does not yet contain the proposed External entry or locator-hint registry.
  • A portable stub preserves cryptographic identity without preserving operational capability. Implementations should record local discovery, authorization, result and recovery evidence separately, without exposing sensitive device identifiers.

What the adoption call actually says — and does not

The call for adoption began 4 September after discussion at IETF 126. It asks whether the OpenPGP Working Group should take on the draft, whose abstract is unusually literal: define a standard wire format indicating that the secret component of an OpenPGP asymmetric key is stored somewhere else, such as hardware or a comparable subsystem.

The call runs to 18 September. The Datatracker record therefore carries two precise states — Call For Adoption By WG Issued for the Working Group, I-D Exists for the IESG — and calls the document an active individual Internet-Draft not endorsed by the IETF. Supportive replies from Daniel Kahn Gillmor, Andrew Gallagher and Heiko Schäfer show engagement, not a ballot count. A call is not a consensus; a draft is not a standard.

That unfinished process mirrors an unfinished format. Revision 03 tentatively asks for S2K usage octet 252, still marked TBD, and for a new registry of locator hints. The live IANA OpenPGP registry lists the established Secret Key Encryption values but no External row at 252 and no External Secret Key Locator Hints registry. A draft request is not a live assignment — a distinction the IETF has spent decades learning to respect.

What the stub actually carries

RFC 9580 defines the Secret Key packet and the Transferable Secret Key structure used to move OpenPGP key material between implementations. Revision 03 would let the packet set its S2K usage octet to External. Instead of holding the secret parameters, the remainder may hold a hint about where an implementation might find a subsystem that can perform the secret operation.

The public part is the anchor. Best-effort discovery is expected to identify a device or subsystem by the secret material corresponding to the associated public-key parameters. That gives a receiving implementation a cryptographic matching object — it need not trust a human-readable label like “card in drawer three.”

But matching is not operating. The draft makes the locator hint deliberately advisory. Empty hint: use best effort. Unintelligible hint: probe anyway. Hint that points nowhere useful: probe anyway. Even a valid-looking hint may be ignored in favor of best effort. Revision 03 standardizes no single hint scheme; it proposes an initially empty IANA registry, reserves a private or experimental range, and applies the Specification Required policy to everything else. The packet is an extensibility point, not a universal device address book.

A location hint is not a custody claim

It is tempting to read the stub as a forwarding address for the secret key. The draft resists that, for good operational reasons. The same secret material may live on several devices. The same device may present different physical identifiers on different machines. One implementation may speak smartcard but not TPM or remote HSM. A PKCS #11 URI can name an object inside that ecosystem, but hard-coding every stub to a slot or serial would make some migrations less portable, not more.

Best effort shifts the question from “what address did the packet assert?” to “what can this implementation observe here?” The answer is time-bound. A device can be absent, locked, disconnected, unsupported. It can list the matching public key and still refuse the secret operation. An authorization prompt may demand a PIN, a biometric gesture, a button press. An operation may time out.

None of those results alone proves custody. A successful public-key match shows a reachable subsystem advertises corresponding material. It does not identify the lawful owner, show who approved this operation, or prove no duplicate exists. A failed probe shows this implementation did not obtain capability under these conditions. It does not prove the secret was destroyed or never existed.

This matters most for organizations moving encrypted mail or signing operations between employee devices, service providers or recovery environments. Copy the stub and the certificate and subkey references survive perfectly. The cutover can still fail, because the capability lives outside the file.

Security benefit without the fairy tale

External keys can shrink one class of exposure. Some devices never release the secret, can rate-limit operations, demand a visible authorization action, or attest that key generation happened on the device. A removable token lets a user move capability without copying raw secret parameters to every host.

The draft does not sell those properties as automatic. It notes hardware can carry design flaws or yield to physical attack. A compromised host can steal decrypted content or the symmetric session key even if it cannot extract the long-term secret. For signing, the device may confirm a button press while the compromised host supplies a different object from the one the user believed was being signed.

Usability is part of the security boundary. Repeated failed PINs lock some devices. Frequent prompts breed unsafe caching and workarounds. Slow hardware, NFC taps and physical interaction demand visible progress, sensible timeouts and actionable errors. An interoperable packet that produces opaque failures standardizes confusion, not control.

Gillmor’s adoption-call reply keeps that trade-off honest: hardware devices are not a sensible choice for almost every OpenPGP user, but a simple standard representation is worth having for the people who do want them. Schäfer argued some contexts effectively require hardware-backed material. The standardization question is not whether everyone should adopt hardware. It is whether those who do can exchange an honest representation of what the file contains — and what it does not.

Keep the local evidence beside the portable object

The wire format should stay small. Loading custody policy, employment authority and recovery procedure into the OpenPGP packet would destroy the portability the draft is trying to win. The missing operational evidence belongs in a separate external-key handoff receipt — my editorial proposal, not an IETF or OpenPGP requirement.

At minimum, a protected receipt can bind the certificate and relevant subkey fingerprint; the draft or later RFC version and actual codepoint state; the hint scheme and version if one was understood; the implementation and subsystem class it can query; the observation time; the public-key matching method; whether authorization was requested; the attempted operation; and the returned result or bounded error. A replacement or recovery event should link the previous observation to the new one rather than silently overwrite it.

The privacy limit matters as much as the fields. Public reports need no smartcard serials, HSM partition names, PIN histories, biometric data or internal topology. They can disclose an opaque receipt identifier, a capability class and a verified outcome while the responsible operator keeps the sensitive record under access control.

The receipt must never turn a locator into authority. It records that a particular implementation obtained or failed to obtain a particular capability at a particular time. Ownership, permission to sign, retention duties and recovery approval still come from the organization and the law.

Heng Lu’s Policy Mirror is useful here because it separates an actor, a rule and evidence instead of letting a technical artifact stand in for all three. The Minimum Initial Specification favors a compact shared core with localized extensions. Here the shared core is the portable OpenPGP signal; local operational evidence stays attached without pretending to be part of the global wire format. Why BTW Media Exists supplies the reporting discipline: describe the draft, the call and the current registry as they are, not as advocates expect them to become.

The draft’s most valuable honesty is the word “external.” It says the transferable record is not the whole capability. A standard can make that absence legible. Only local evidence can show whether the missing part is available when the next operation arrives.

Sources

  1. OpenPGP Working Group call for adoption
  2. Current Datatracker record
  3. OpenPGP External Secret Keys, revision 03
  4. IETF 126 presentation
  5. Daniel Kahn Gillmor’s adoption reply
  6. Andrew Gallagher’s adoption reply
  7. Heiko Schäfer’s adoption reply
  8. Paul Schaub’s co-editor reply
  9. Live IANA OpenPGP registry
  10. RFC 9580 — OpenPGP
  11. RFC 8126 — Guidelines for Writing an IANA Considerations Section
  12. RFC 7512 — The PKCS #11 URI Scheme
  13. Heng Lu — The Policy Mirror
  14. Heng Lu — Minimum Initial Specification
  15. Heng Lu — Why BTW Media Exists