Modifying PKCS #11 library attributes for AWS CloudHSM Client SDK 5
Some PKCS #11 library attributes for of an AWS CloudHSM object can be modified after the object has been created, whereas some cannot. To modify attributes, use the key set-attribute command from CloudHSM CLI. You can also derive a list of attributes by using the key list command from CloudHSM CLI.
The following list displays attributes that are allowed for modification after object creation:
-
CKA_LABEL -
CKA_TOKENNote
Modification is allowed only for changing a session key to a token key. Use the key set-attribute command from CloudHSM CLI to change the attribute value.
-
CKA_ENCRYPT -
CKA_DECRYPT -
CKA_SIGN -
CKA_VERIFY -
CKA_WRAP -
CKA_UNWRAP -
CKA_LABEL -
CKA_SENSITIVE -
CKA_DERIVENote
This attribute supports key derivation. It must be
Falsefor all public keys and cannot be set toTrue. For secret and EC private keys, it can be set toTrueorFalse. -
CKA_TRUSTEDNote
This attribute can be set to
TrueorFalseby Crypto Officer (CO) only. -
CKA_WRAP_WITH_TRUSTEDNote
Apply this attribute to an exportable data key to specify that you can only wrap this key with keys marked as
CKA_TRUSTED. Once you setCKA_WRAP_WITH_TRUSTEDto true, the attribute becomes read-only and you cannot change or remove the attribute.