Viewing KMS keys in an AWS CloudHSM key store - AWS Key Management Service

Viewing KMS keys in an AWS CloudHSM key store

To view the AWS KMS keys in an AWS CloudHSM key store, use the same techniques that you would use to view any AWS KMS customer managed keys. To learn the basics, see Viewing keys. To identify the keys in your AWS CloudHSM cluster that serve as key material for your KMS key, see Finding KMS keys and key material. For information about viewing the AWS CloudTrail logs that record all API operations on a custom key store, see Logging AWS KMS API calls with AWS CloudTrail.

In the AWS KMS console, the KMS keys in your custom key store are displayed on the Customer managed keys page, along with all other customer managed keys in your AWS account and Region.

However, the following values are specific to KMS keys in an AWS CloudHSM key store.

  • The name and ID of the AWS CloudHSM key store that stores the KMS key.

  • The cluster ID of the associated AWS CloudHSM cluster that contains their key material.

  • An Origin value of AWS CloudHSM in the AWS KMS console or AWS_CLOUDHSM in API responses.

  • The key state value can be Unavailable. For help resolving the status, see How to fix unavailable KMS keys.

To view the KMS keys in an AWS CloudHSM key store (Console)

  1. Open the AWS KMS console at https://console.aws.amazon.com/kms.

  2. To change the AWS Region, use the Region selector in the upper-right corner of the page.

  3. In the navigation pane, choose Customer managed keys.

  4. In the upper-right corner, choose the gear icon, choose Custom key store ID and Origin, then choose Confirm.

  5. To identify KMS keys in any AWS CloudHSM key store, look for KMS keys with an Origin value of AWS CloudHSM. To identify KMS keys in a particular AWS CloudHSM key store, view the values in the Custom key store ID column.

  6. Choose the alias or key ID of a KMS key in an AWS CloudHSM key store.

    This page displays detailed information about the KMS key, including its Amazon Resource Name (ARN), key policy, and tags.

  7. Choose the Cryptographic configuration tab. The tabs are below the General configuration section.

    This section includes information about the AWS CloudHSM key store and AWS CloudHSM cluster associated with the KMS key.s

To view the KMS keys in a custom key store (API)

You use the same AWS KMS API operations to view the KMS keys in an AWS CloudHSM key store that you would use for any KMS key, including ListKeys, DescribeKey, and GetKeyPolicy. For example, the following describe-key operation in the AWS CLI shows the special fields for a KMS key in an AWS CloudHSM key store. Before running a command like this one, replace the example KMS key ID with a valid value.

$ aws kms describe-key --key-id 1234abcd-12ab-34cd-56ef-1234567890ab { "KeyMetadata": { "Arn": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", "AWSAccountId": "111122223333", "CloudHsmClusterId": "cluster-1a23b4cdefg", "CreationDate": 1537582718.431, "CustomerMasterKeySpec": "SYMMETRIC_DEFAULT", "CustomKeyStoreId": "cks-1234567890abcdef0", "Description": "Key in custom key store", "Enabled": true, "EncryptionAlgorithms": [ "SYMMETRIC_DEFAULT" ], "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", "KeyManager": "CUSTOMER", "KeySpec": "SYMMETRIC_DEFAULT", "KeyState": "Enabled", "KeyUsage": "ENCRYPT_DECRYPT", "MultiRegion": false, "Origin": "AWS_CLOUDHSM" } }

For help finding the KMS keys in an AWS CloudHSM key store or identifying the keys in your AWS CloudHSM cluster that serve as key material for your KMS key, see Finding KMS keys and key material.