Security1 min read
HSM key ceremonies: rehearsed vs. rushed
A key ceremony is a scripted piece of theatre with real cryptographic consequences. The failure modes are entirely operational.
A hardware security module key ceremony looks like a scripted piece of theatre — because it is one. The formalism exists because the failure modes are entirely operational: a lost custodian card, an unrehearsed step, a script that doesn't match the actual HSM firmware version. The cryptography is the easy part.
Based on ceremony participation 2023–2024; written June 2026.
What a good ceremony has
- A written script rehearsed against the actual hardware. Not a whiteboard walk-through — a full dry run with the intended HSM, the intended commands, the intended signoff points.
- At least one custodian who has done it before. Ceremonies are learned by doing; a full room of first-timers is a bad ceremony.
- A quiet room. The number of times I've seen a key ceremony run in a shared conference room next to a sales call is nonzero.
- A witness who isn't a custodian. Someone whose job is to verify the script was followed, not to hold a card.
- A recording of the ceremony. The recording proves what happened; it's not a security risk if handled correctly.
What goes wrong
- HSM firmware mismatch. The script was written against firmware v5.3; the device on the day is v5.4, and one command has changed syntax.
- Custodian availability. One custodian is out sick; the ceremony proceeds with an alternate who wasn't briefed.
- Naming discipline. The key is created under a name that overlaps with an existing key. Subsequent operations touch the wrong key.
- No recovery plan. The ceremony completes; a step is later discovered to have been wrong; no recovery path was designed.
The ceremony script should live in a version-controlled document, be reviewed like code, and be rehearsed before every real run. It's not glamorous work. It prevents six-figure mistakes.