Creating keys with external key material (BYOK)
When we create keys within AWS KMS, AWS creates and manages the key material for that key. We can also create keys using our own key material that has been created outside of AWS. In this recipe, we will learn how to import a key material into AWS KMS. Using external key material for our keys is called Bring Your Own Key (BYOK) and is useful for organizations that have strict compliance or policy requirements that mandate the use of keys they control. This key should be a 256-bit symmetric key. Asymmetric keys are not supported for BYOK.
Getting ready
We’ll need the following to complete this recipe:
- A working AWS account,
awsseccb-sandbox-1, and a user,awsseccbadmin1, as described in the Technical requirements section. - The latest OpenSSL setup on our local machine. If it’s not already installed, go to the OpenSSL website at https://www.openssl.org, download the latest version of OpenSSL, and set it up...