A KMS key is required to generate data key pair?

0

I am trying to generate a data key for us to use outside of KMS. Looking at the documentation for this api - https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kms/client/generate_data_key_pair.html

It is showing that KeyId is a required parameter. I am bit confused since the reason why we are generating an asymmetric ECC key pair this way to begin with because we could not create the correct key/usage within standard KMS. Does anyone know what this parameter is referring to?

AWS
已提问 1 年前519 查看次数
1 回答
1

Hi!

Data keys are used for Envelope Encryption, where you have a primary key and you create different cryptographic keys to encrypt files, that are related to that primary key. The article linked explains it very well.

I think you may be trying to implement asymetric encryption, for that read this article on Asymmetric keys in AWS KMS that explains the usage of asymmetric keys in AWS KMS.

If neither of these two answer matches your problem, I ask that you create a new question with a more detailed description of the scenario you are trying to solve, what you tried that didn't work, and any other details that could help us understand and guide you in your architecture.

Bests!

AWS
已回答 1 年前
profile pictureAWS
专家
kentrad
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则