Vault - How does the Vault integrate with HSMs that support Multiple Slots?
85
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 13:00 PM
Question
How does the Vault integrate with HSMs that support Multiple Slots?
Environment
v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0
Answer
Some HSMs can support more than one slot. Slots are logical containers that may have different cryptography attributes. For example, some slots may support storing AES 256 keys while others may not. Each such slot has a slot index, and also a slot ID. These two parameters are different, but each of them can be used to uniquely identify the slot.
An HSMSlotIndex parameter can be used to specify which slot to used. By default, this parameter is not present in the main vault configuration file dbparm.ini. The supported values for this parameter are "0 - 63"
If HSMSlotIndex parameter is not defined in the dbparm.ini file, the behavior is as follows:
- CAVaultManager LoadServerKeyToHSM / GenerateKeyOnHSM commands will iterate through all the slots and find the first one that meets its cryptography criteria, and store the Server Key in it. In addition to cryptography criteria the slot must have CKF_HW_SLOT attribute assigned to it.
- When the Vault starts, it will look through all the slots for the server key according to its label (CKA_LABEL attribute)
If the HSMSlotIndex parameter is specified, the behavior is the following:
- CAVaultManager LoadServerKeyToHSM / GenerateKeyOnHSM commands will check if the slot specified by HSMSlotIndex meets the security criteria, and store the Server Key in it if it does. If the slot does not meet cryptography criteria the utility will display an error
- When the Vault starts, it will look only in the slot specified by HSMSlotIndex and try to load a key with the appropriate label (CKA_LABEL attribute). If the key cannot be found, the vault will log an error and terminate
Additional Information
Details
Q:How does the Vault integrate with HSM that supports Multiple Slots?
A:
Some HSMs can support more than 1 slot. Slots are logical containers that may have different cryptography attributes. For example, some slots may support storing AES 256 keys while others may not. Each such slot has a slot index, and also a slot ID. These two parameters are different, but each of them can be used to uniquely identify the slot.
In v9.1 and above a HSMSlotIndex parameter can be used to specify which slot to used. By default, this parameter is not present in the main vault configuration file dbparm.ini. The supported values for this parameter are "0 - 63"
If HSMSlotIndex parameter is not defined in the dbparm.ini file, the behavior is as follows:
- CAVaultManager LoadServerKeyToHSM / GenerateKeyOnHSM commands will iterate through all the slots and find the first one that meets its cryptography criteria, and store the Server Key in it. In addition to cryptography criteria the slot must have CKF_HW_SLOT attribute assigned to it.
- When the Vault starts, it will look through all the slots for the server key according to its label (CKA_LABEL attribute)
If the HSMSlotIndex parameter is specified, the behavior is the following:
- CAVaultManager LoadServerKeyToHSM / GenerateKeyOnHSM commands will check if the slot specified by HSMSlotIndex meets the security criteria, and store the Server Key in it if it does. If the slot does not meet cryptography criteria the utility will display an error
- When the Vault starts, it will look only in the slot specified by HSMSlotIndex and try to load a key with the appropriate label (CKA_LABEL attribute). If the key cannot be found, the vault will log an error and terminate