How to create and import a root CA key and certificate onto multiple YubiKeys (for backup / cold storage purposes), and use the root CA to sign a new intermediate CA on a different YubiKey that will be used with step-ca for online leaf certificate signing.
You will need:
- ykman
- step
- step-kms-plugin
- At least three YubiKeys with PIV support. One will be used for an online intermediate CA, and the rest will be for offline root CA backups.
First, on an airgapped machine, generate a key pair on disk: