Within EJBCA, Crypto Tokens store the keys that our CA uses to perform its duties.
The following describes how to create two Crypto Tokens, one for the Root CA and one for the Issuing CA.
Create Crypto Token for Root CA
To create Crypto Tokens for the Root CA:
- Select Crypto Tokens under CA Functions, and then click Create new.
- Enter the following on the New Crypto Token page:
- Name: Name for the Root CA Crypto Token, for example, "Corporate Root CA Crypto Token". Note that this is not the CA name but the name of the token.
- Authentication Code: Enter a password to be used to activate the slot whenever the Root CA needs to be brought online.
- Auto-activation: Clear Use since we only need the root to sign the Issuing CA or renew its certificate.
- Allow export of private keys: This is an option since we are using soft keystores. To allow exporting of keys, select Allow. If cleared, EJBCA will try to prevent export.
- Click Save.
- Create three key pairs within the Crypto Token on the Crypto Token: <Name> page:
- defaultKey (RSA 2048 bit): Used for everything not signing or test.
- signKey (RSA 2048 bit): Used for cert signing.
- testKey (RSA 1024 bit): Used for testing health check for CA.
Create Crypto Token for Issuing CA
To create Crypto Tokens for the Issuing CA:
- Click Back to Crypto Token overview and perform the same Crypto Token steps to create or the Issuing CA Crypto Token.
Note that the Issuing CA Crypto Token will be set to auto-activation in the next step. - Enter the following on the New Crypto Token page:
- Name: Name for the Issuing CA Crypto Token, for example, "Corporate Issuing CA Crypto Token".
- Authentication Code: Enter a password to be used to activate the slot whenever the Issuing CA needs to be brought online.
- Auto-activation: Select Use to allow the token to start each time the system starts, and be active in order to be used by the issuing CA to issue certificates.
- Allow export of private keys: This is an option since we are using soft keystores. To allow exporting of keys, select Allow. If cleared, EJBCA will try to prevent export.
- Create the same three key pairs for the Issuing CA Crypto Token as for the Root CA Crypto Token:
- defaultKey (RSA 2048 bit): Used for everything not signing or test.
- signKey (RSA 2048 bit): Used for cert signing.
- testKey (RSA 1024 bit): Used for testing health check for CA.