Integrate with Amazon Web Services
Access the Key Management System in the AWS Management Console
Connect to the Key Management Service (KMS) using the AWS Management Console and select your AWS region.
The steps below can be carried out either on the AWS Management Console or using the AWS KMS API. See the AWS KMS documentation for details of how to use these tools. This guide provides instructions for using the console. Instructions for using the API can be found in the AWS documentation.
Create a customer master key in the AWS Management Console
-
In the navigation pane in KMS, select Customer Managed Keys.
-
Select Create key.
-
Select Symmetric.
-
Expand Advanced Options.
-
For Key Material Origin, specify External.
-
Confirm that you understand the implications of using an imported key.
-
Select Next.
-
Create an Alias, Description, and Tags:
-
Specify an alias for the key and, optionally, a description and tags.
-
Select Next.
-
-
Define Key Administrative Permissions:
-
Specify the Identity and Access Management (IAM) users who can administer the key and decide whether key administrators are able to delete the key.
-
Select Next.
-
-
Under This Account, define Key Usage Permissions:
-
Specify the IAM users who can use the key.
-
Select Next.
-
-
Review Key Policy:
-
A preview of your key policy is displayed.
-
Select Finish.
-
If the operation succeeds, you have created a CMK with no key material. The following message is displayed:
Your customer master key (CMK) was created with alias _<key name>_ and key ID _<key id>_.
To use this CMK, you must import key material.
Download a wrapping key and import token in the AWS Management Console
After completing the instructions in Create a customer master key in the AWS Management Console, you are on the Download wrapping key and import token screen.
Otherwise complete these steps:
-
Connect to the AWS Management Console and select your AWS Region.
-
In the navigation pane in KMS, select Customer Managed Keys.
-
Select the alias or key ID of the CMK that is pending import.
-
Expand Cryptographic configuration and view its values.
-
Expand Key Material and select Download wrapping key and import token.
You can continue to download the wrapping key:
-
Select the wrapping algorithm to use.
Entrust recommends selecting the strongest hashing algorithm supported.
-
Select Download wrapping key and import token and save the
ImportParameters.zip
file. -
Decompress
ImportParameters.zip
. You should find the following files:-
A README text file.
-
The wrapping key file.
-
The import token file.
-
Use cloud_integration_tool to generate, wrap, and export a key
Using the downloaded wrapping key file, call cloud_integration_tool
as follows:
cloud_integration_tool aws <key name> <wrapping key> <wrapping algorithm>
Running this command creates a file called <key name>-wrapped
.
Upload the wrapped key material
If you have just completed the instructions in Download a wrapping key and import token in the AWS Management Console, you are on the Upload your wrapped key material screen.
Otherwise complete these steps:
-
Connect to the AWS Management Console and select your AWS Region.
-
In the navigation pane in KMS, select Customer Managed Keys.
-
Select the key ID or alias of the CMK for which you downloaded the public key and import token.
-
Expand Cryptographic configuration and view its values.
-
Expand Key Material and then select Upload key material.
Now you can continue to upload the wrapped key.
-
Under Encrypted key material and import token > Wrapped key material, select Choose file.
Upload the file that contains your wrapped (encrypted) key material. This is the file that was produced in Use cloud_integration_tool to generate, wrap, and export a key.
-
Under Encrypted key material and import token > Import token, select Choose file.
Select and upload the file that contains the import token that you downloaded.
-
In the Expiration option section, you can determine whether the key material expires.
To set an expiration date and time, choose Key material expires and use the calendar to select a date and time.
-
Select Upload key material.
The following message is displayed:
Your key material was imported into the customer master key (CMK) with key ID <key id>.
You can now use this CMK.
The AWS key is now ready for use.
At this point users have now extended trust to AWS in terms of use of the key and its destruction. |