Luna USB HSM 6.x to Luna Network HSM 7

This chapter describes how to migrate your key material from a release 6.x Luna USB HSM partition to a Luna Network HSM 7 partition. You can migrate your key material using one of the following methods:

>Backup and Restore

>Cloning

TIP   When cloning objects:

by direct clone command, or

by backup/restore, or

by synchronization in an HA group)

...between 5.x or 6.x HSMs and 7.x HSMs, the common domain between the HSMs must be the designated primary domain on any HSM that is at firmware version 7.8.0 or newer.

This is because the cloning protocol on HSMs prior to firmware 7.8.0 is unaware of the ability to have multiple domains and therefore the older HSM can interact with only the primary domain on the firmware 7.8.0+ HSM. So, if the domain of the old HSM exists on the firmware 7.8.0-and-newer HSM, set that domain to be Primary before cloning.

Backup and Restore

Cryptographic key material can be backed up from a release 6.x Luna USB HSM partition and then restored to a Luna Network HSM 7 partition using a Luna Backup HSM. The following procedure performs a backup of a 6.x partition on an older operating system to a Luna Backup HSM. The Backup HSM is then moved to a newer operating system where the 6.x key material is restored to a 7.x partition.

Consult the 6.x/7.x CRN for a list of compatible operating systems.

To clone cryptographic keys from one HSM to another, the HSMs must share the same cloning domain. For password-authenticated HSMs, this domain should have been specified when the 6.x partition was initialized. For multifactor quorum-authenticated HSMs, the red key determines the cloning domain. You will need the same red key that was imprinted during 6.x partition creation to initialize the 7.x partition (see Initializing an Application Partition).

HSM Client software must be installed before attempting this procedure (see Luna HSM Client Software Installation for details). The source and destination partitions must be assigned to the client machine issuing the backup or restore command (see Client-Partition Connections for details). Use slot list to ensure both partitions are visible to the client.

Preconditions

On the older operating system, the following instructions assume that:

>6.x Luna HSM Client Software is installed

>the source 6.x partition is visible

>the source partition's security policy allows cloning of private and secret keys

>the destination Backup HSM partition is visible

On the new operating system, the following instructions assume that:

>Luna HSM Client 7/10 software is installed

>you have created an uninitialized partition on the Luna Network HSM 7

>the destination 7.x partition is registered with the client software (visible)

>the source Backup HSM partition's security policy allows cloning of private and secret keys

Slots used in the following instructions:

>On the older operating system running 6.x client software:

Slot 0: the source 6.x partition

Slot 2: the destination Luna Backup HSM partition

>On the new operating system running 7.x client software:

Slot 1: the destination 7.x partition

Slot 2: the source Luna Backup HSM partition (with the backup of the 6.x partition)

NOTE   Partition login name requirements have changed with the hardware versions. With release 7.x , you can log in using the abbreviated PO (Partition Security Officer) or CO (Crypto Officer).

To backup/restore cryptographic keys from a 5.x/6.x partition to a 7.x partition using a Backup HSM

Follow these steps to back up all cryptographic material on a 5.x/6.x partition to a Luna Backup HSM, and restore to a new 7.x partition.

1.On the old operating system running 5.x/6.x client software, run LunaCM and set the current slot to the 5.x/6.x partition.

slot list

slot set -slot 0

2.Log in as the Crypto Officer.

NOTE   Be mindful of whether you’re working with pre-PPSO or PPSO firmware and use the “partition login” or “role login” commands as specified below. Also, with PPSO firmware 6.22.0 and up, be careful with user names, i.e., type “Crypto Officer” in full (is case sensitive) and not "co".

a.If you are backing up a release 5.x or 6.x pre-PPSO partition (up to and including Firmware 6.21.2), use:

partition login

b.If you are backing up a release 6.x PPSO partition (Firmware 6.22.0 and up), use:

role login -name Crypto Officer

3.Optional: To verify the objects in the 5.x/6.x partition to be backed up, use:

partition contents

4.Back up the 5.x/6.x partition contents to the Luna Backup HSM.

partition archive backup -slot 2 -partition <backup_label>

a.If you are backing up a multifactor quorum-authenticated 5.x/6.x partition, use the 5.x/6.x partition's red PED key when prompted.

b.If you are backing up a password-authenticated 5.x/6.x partition, enter the same cloning domain when prompted.

Optionally, verify that all objects were backed up successfully on the Luna Backup HSM by issuing the partition contents command.

5.Move the Luna Backup HSM (with the backup of the 5.x/6.x partition) to the new operating system running the 7.x client software, and make sure it is visible to the client along with the 7.x HSM.

6.On the new operating system running the 7.x client software, run LunaCM, set the current slot to the 7.x partition, and initialize the partition and the PPSO role.

slot set -slot 1

partition init -label <7.x_partition_label>

a.If you are backing up a multifactor quorum-authenticated 5.x/6.x partition, use the 5.x/6.x partition's red PED key when prompted.

b.If you are backing up a password-authenticated 5.x/6.x partition, enter the same cloning domain when prompted.

7.Log in as the po (Partition Security Officer) and initialize the co (Crypto Officer) role.

role login -name po

role init -name co

If you are backing up a PED-authenticated 5.x/6.x partition, you can create an optional challenge secret for the Crypto Officer.

role createchallenge -name co -challengesecret <password>

8.Set the current slot to the 7.x partition, log in as the Crypto Officer, and restore from backup.

slot set -slot 1

role login -name co

partition archive restore -slot 2 -partition <backup_label>

Afterwards, you can verify the partition contents on the 7.x partition:

partition contents

Cloning

The simplest method of migrating key material to a new 7.x partition is slot-to-slot cloning. This procedure copies all permitted cryptographic material from a 6.x Luna USB HSM partition to a Luna Network HSM 7 partition.

NOTE   The Luna cloning protocol has been updated several times since the previous generation of Luna HSMs, for standards compliance and added security. If you are planning to migrate your key material from a Luna 5/6 in FIPS mode to a Luna 7 HSM in FIPS mode, you must use an intermediate firmware version before updating to Luna HSM Firmware 7.7.1 or newer. Thales recommends migrating to Luna Network HSM 7 7 with one of the following FIPS-validated firmware versions:

>Luna HSM Firmware 7.3.3

>Luna HSM Firmware 7.0.3

After the migration process is complete, you can update the Luna Network HSM 7 to Luna HSM Firmware 7.7.1 or newer (see Updating the Luna HSM Firmware).

The new configuration's operating system must be compatible with both the new 7.x and the old 6.x hardware. Consult the 6.x CRN for a list of compatible operating systems.

To clone cryptographic keys from one HSM to another, the HSMs must share the same cloning domain. For password-authenticated HSMs, this domain should have been specified when the partition was initialized. For multifactor quorum-authenticated HSMs, the red key determines the cloning domain. You will need the same red key that was imprinted during 6.x partition creation to initialize the 7.x partition (see Initializing an Application Partition).

The Luna HSM Client 7/10 software should be installed, and the connection to both the source and destination partitions verified, before attempting this procedure (see Luna HSM Client Software Installation for details). The source and destination partitions must both be assigned to the client machine issuing the cloning commands (see Client-Partition Connections for details). Use slot list to ensure both partitions are visible to the client.

If the source partition contains asymmetric keys, its security policy must allow cloning of private and secret keys. Use lunacm:> partition showpolicies to ensure that your source partition's security template allows this. If the 6.x HSM's security template does not allow cloning of private/secret keys, the HSM Admin may be able to turn this feature on using lunacm:> partition changepolicy.

CAUTION!   Check your source partition policies and adjust them to be sure you can clone private and symmetric keys. Depending on the configuration of your partition and HSM, these policies may be destructive.

Preconditions

The following instructions assume that:

>the 7.x client software has been installed

>an uninitialized partition has been created on the Luna Network HSM 7

>the destination 7.x partition must be registered with the client (visible)

>the source 6.x partition's security policy allows cloning of private and secret keys

In the following examples:

>Slot 0: the source 6.x partition

>Slot 1: the destination 7.x partition

NOTE   Partition login name requirements have changed with the hardware versions. With release 7.x, you can log in using the abbreviated PO (Partition Security Officer) or CO (Crypto Officer).

To clone cryptographic keys from a 5.x/6.x partition to a 7.x partition (pre-firmware 7.8.0)

Follow these steps to clone all cryptographic material on a 5.x/6.x partition to a 7.x partition.

1.Run LunaCM, set the current slot to the 7.x partition, and initialize the Partition SO role.

slot list

slot set -slot 1

partition init -label <7.x_partition_label>

a.If you are cloning a multifactor quorum-authenticated 5.x/6.x partition, use the 5.x/6.x partition's red key when prompted.

b.If you are cloning a password-authenticated 5.x/6.x partition, enter the same cloning domain when prompted.

2.Log in as the po (Partition Security Officer) and initialize the co (Crypto Officer) role.

role login -name po

role init -name co

If you are cloning a multifactor quorum-authenticated 5.x/6.x partition, you can create an optional challenge secret for the Crypto Officer.

role createchallenge -name co -challengesecret <password>

3.Set the current slot to the source 5.x/6.x slot, log in as the Crypto Officer.

slot set -slot 0

NOTE   Be mindful of whether you’re working with pre-PPSO or PPSO firmware and use the “partition login” or “role login” commands as specified below. Also, with PPSO firmware 6.22.0 and up, be careful with user names, i.e., type “Crypto Officer” in full (is case sensitive) and not "co".

a.If you are cloning a release 5.x or 6.x pre-PPSO partition (up to and including Firmware 6.21.2), use:

partition login

b.If you are cloning a release 6.x PPSO partition (Firmware 6.22.0 and up) , use:

role login -name Crypto Officer

4.Optional: To verify the objects in the 5.x/6.x partition to be cloned, issue the “partition contents” command.

partition contents

5.Clone the objects to the 7.x partition slot (see partition clone for correct syntax).

partition clone -objects 0 -slot 1

Afterward, you can set the current slot to the 7.x partition and verify that all objects have cloned successfully.

slot set -slot 1

role login -name co -password <password>

partition contents

You should see the same number of objects that existed on the 5.x/6.x HSM. You can now decommission the old 5.x/6.x HSM.