Home >

Lunacm Command Reference Guide > LunaCM Commands > hsm > hsm restoresim2

hsm restoresim2

Insert backed-up SO objects into the HSM. When a SIM2-portable blob is created, the options to protect it are:

none

an authentication text string.

Therefore, this restore/import operation offers the option to supply an unlocking/authentication text string in case one was used to secure the blob.

Note:  The lunacm hsm commands appear only when the current slot selected in lunacm is for a locally-installed HSM, such as a SafeNet PCI-E HSM. When lunacm is directed at a slot corresponding to a remote SafeNet Network HSM, the hsm-level commands do not appear, since lunacm has a client-only connection to a remote HSM and therefore cannot log in as SO to a remote HSM. To access HSM commands on the SafeNet Network HSM appliance, you must use the LunaSH.

Syntax

hsm restoresim2 [-auth <auth_passwd>] -filename <input_filename> -partition <partition>

Parameter Shortcut Description
-auth -a The authorization password. If "-auth" is specified, the CKA_SIM_PORTABLE_PASSWORD SIM Form will be used. Otherwise the CKA_SIM_PORTABLE_NO_AUTHORIZATION SIM Form will be used. The same SIM Form that was used for the backup command must be used for the restore command.
-filename -fi The input file name. This is the name of the file (SIM2-portable blob) to be imported.
-partition -par Partition into which objects are restored.

Example

lunacm:> hsm restoreSIM2 -auth someauthenticationsecret -filename mySIM2portableblob
 
Command Result : No Error