Case Iv: Hsm To Hsm Migration - Red Hat CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE Manual

Hide thumbs Also See for CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE:
Table of Contents

Advertisement

vi serverCertNick.conf
Server-Cert cert-old_DRM_instance

4.2.4. Case IV: HSM to HSM Migration

1.
Extract the public/private key pairs from the HSM. The format for the extracted key pairs should be portable, such as
a PKCS #12 file.
The pk12util tool provided by the Certificate System cannot extract public/private key pairs from an HSM be-
cause of requirements in the FIPS 140-1 standard which protect the private key portion of an entry. To extract this in-
formation, contact the HSM vendor for more information. The extracted keys should not have any dependencies, such
as nickname prefixes, on the HSM.
2.
Copy the extracted key pairs from the old server to the new server.
cp old_server_root/alias/ServerCert.p12
/var/lib/instance_ID/alias/ServerCert.p12
cp old_server_root/alias/kraStorageCert.p12
/var/lib/instance_ID/alias/kraStorageCert.p12
cp old_server_root/alias/kraTransportCert.p12
/var/lib/instance_ID/alias/kraTransportCert.p12
3.
Extract the public key of the old_HSM_slot_name:caSigningCert cert-old_DRM_instance from the old se-
curity databases and save the base-64 encoded output to a file called caSigningCert.b64.
a.
Open the old Certificate System's alias/ directory.
cd old_server_root/alias
b.
Set the LD_LIBRARY_PATH environment variable to search the Certificate System libraries.
LD_LIBRARY_PATH=old_server_root/bin/cert/lib
export LD_LIBRARY_PATH
c.
Use the old Certificate System certutil tool to identify the old HSM slot name.
old_server_root/bin/cert/tools/certutil -U -d .
d.
Use the old Certificate System certutil tool to extract the public key and save the base-64 output to a file. In
this example, the -L option lists the named certificate, the -n option names the certificate, -h gives the old
HSM information, and -a saves the information to the base-64 file.
old_server_root/bin/cert/tools/certutil -L
-n "old_HSM_slot_name:caSigningCert cert-old_DRM_instance"
-d . -h old_HSM_token_name -a > caSigningCert.b64
e.
Copy the base-64 file from the old server to the new server.
cp old_server_root/alias/caSigningCert.b64
/var/lib/instance_ID/alias/caSigningCert.b64
4.
Log into the new server as the Certificate System user, and open the Certificate System alias/ directory.
4.2. 6.0 Data Recovery Manager
(DRM) Migration
77
Chapter 7. Step 4: Migrating Security

Advertisement

Table of Contents
loading

Table of Contents