The Key Encryption Key (KEK) is used by the Key Archiving and Recovery (KAR) factory in order to encrypt and decrypt archived keys.
This task is performed during system key administration in Smart ID Certificate Manager. For information regarding when to do this task, see Decide what action to take.
Prerequisites
Expand |
---|
|
- CM Officer privileges are required.
- Officer must have access privileges to the KEK token procedure.
- To issue certificate for PKCS#10 request, see heading "Create a token procedure with storage profile PKCS#10" in Bootstrap Certificate Manager
|
...
Expand |
---|
|
Note |
---|
An old KEK token must be kept as long as there are archived keys encrypted with it. |
Create the KEK tokenUse the command-line program hwsetup to create a KEK token. Read more about hwsetup here: Initialize Hardware Security Module for use in Certificate Manager. - Run hwsetup to generate a key pair, see Generate DSA/EC/RSA key pair.
- Run hwsetup to create a PKCS #10 request based on the generated key pair, see Generate PKCS #10 certificate request.
- Use Registration Authority (RA) and select the token procedure with storage profile PKCS#10 to import the PKCS#10 request file. Save the issued certificate to file, see Issue certificates from request files in Certificate Manager.
- Run hwsetup to store the certificate in HSM, see Install certificate.
The KEK token must be configured in the CF service (or in all computers running CF in case of a distributed configuration). - In kar.conf:
- Add the crypto library to the list of crypto libraries (in the parameter
kar.common.cryptolib.<#>.name ). - Add the new KEK to the list of tokens:
kar.common.token.<#>.tokenlabel and kar.common.token.<#>.pin . - Set the new KEK as the key to use for key archiving, that is, change the value for
kar.archive.kek.0.tokenlabel and kar.archive.kek.0.keylabel .
- Restart the system in order to make the changes take effect.
Note |
---|
The value of kar.archive.kek.0.keylabel must be the label of the key. In case of an RSA key pair, it should be the label of the public key. To see the key label, use the command hwsetup -list . |
|
Related information