Each asymmetric key-encryption key (KEK) must have a valid certificate, to ensure that the public key part is intact when using it during key archiving. When using an HSM to store the key encryption key, do the following to issue a certificate for either a new or an existing KEK:
- Run
hwsetup
to either generate a key pair (see Generate DSA/EC/RSA key pair), or to find an existing key in the HSM (see List slot contents). - Run
hwsetup
to create a PKCS #10 request based on the selected key pair (see Generate PKCS #10 certificate request). - Use RA to issue a certificate to a file, kek.crt, based on the PKCS #10 request.
- Run
hwsetup
to store the certificate in HSM (see Install certificate).