Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sovereign, high-performance data protection

HSM Key Rotation

Eviden KMS rotates keys that reside on a PKCS#11 HSM (Utimaco, Proteccio, Thales Luna, SoftHSM2, …) the same way it rotates database keys: manually with Re-Key (AES keys) and Re-Key Key Pair (RSA and EC key pairs), and on a schedule with the auto-rotation scheduler. The generations of a key form an HSM keyset addressed by the key's base UID hsm::<model>::<slot>::<key_id>; generation N is hsm::<model>::<slot>::<key_id>@N.

New keys are generated on the same HSM slot and cryptographic operations run on the token. The keyset state lives on the token too, in CKA_LABEL and CKA_START_DATE / CKA_END_DATE, with no database rows. Create non-extractable keys when key material must never be exportable.

HSM key rotation: the KMS rotates keysets that live on a PKCS#11 HSM slot

PageTypeRead it to
How to rotate HSM keysHow-toenroll a key, arm or disarm auto-rotation, rotate keys and key pairs, use a keyset for cryptography, recover from an interrupted rotation
HSM keysets referenceReferencelook up UID and CKA_LABEL formats, the addressing rules per operation, the due rule, attribute support, errors, HSM model support and the differences from SQL keysets
HSM keysets explainedExplanationunderstand why the token carries the state, why old generations cannot protect data, why some decryption modes need an explicit generation and which identity the scheduler uses

Rotation of database keys is described in Key Rotation and Auto-Rotation Policy.