You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A YubiKey can be a good place to store a Root CA, because the key will not be exportable, but you can use it to sign new intermediate CAs as needed. However, if you take this approach, it is strongly recommended that you have at least one backup YubiKey. If one YubiKey fails, you'll still have backups. You can distribute your Root CA to several secure ("cold storage") locations.
Note: If you need to require more than one person to be present when using your Root CA, this approach could be combined with a threshold cryptography algorithm like Shamir's Secret Sharing to divide the YubiKey PIN across a handful of trusted parties. However, this is very challenging to operationalize and is beyond the scope of this tutorial. Choose an approach that suits your organization and threat model.
In this tutorial, we will create and import a root CA key and certificate onto multiple YubiKeys, 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A YubiKey can be a good place to store a Root CA, because the key will not be exportable, but you can use it to sign new intermediate CAs as needed. However, if you take this approach, it is strongly recommended that you have at least one backup YubiKey. If one YubiKey fails, you'll still have backups. You can distribute your Root CA to several secure ("cold storage") locations.
In this tutorial, we will create and import a root CA key and certificate onto multiple YubiKeys, 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.
Before you begin
You will need:
step-ca
as an online intermediate CA.First, generate your root key pair on disk:
Generate your Root CA certificate:
For each root CA YubiKey, import the key and certificate.
You can use slot 9c, or 82-95.
Your root CA has been backed up and you can now delete the private key:
Let's now create an intermediate CA.
Switch to a Yubikey that you'll use for your online
step-ca
intermediate signing CA.Then, run:
Now switch back to a root CA YubiKey, to sign the CSR for the intermediate:
Finally, return to the intermediate CA yubikey to import the intermediate certificate:
Now, for your CA config, you'll want to use:
See our Configuration Guide for more details on configuring
step-ca
to use a YubiKey online intermediate CA.Beta Was this translation helpful? Give feedback.
All reactions