1 Answer
- Newest
- Most votes
- Most comments
0
I am able to encrypt and decrypt using the same key and account via aws kms cli.
Are you referring to KMS CLI encrypt and decrypt? If so, you cannot use AWS Encryption SDK, which is a client-side encryption library, to decrypt a ciphertext that's encrypted by KMS directly. You have to use AWS SDK to call the KMS API with your payload. Unfortunately there isn't an example for encrypt and decrypt but think you should be able to piece it together (here's Python example if it helps).
Also this video: https://www.youtube.com/watch?v=YfoCNCuVSlI
answered a year ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 8 months ago
Using AWS.EncryptionSDK 3.1.0 (latest at time of writing) AWSSDK.KeyManagamentService 3.7.200.18
The last log entry before it fails is AmazonKeyManagementServiceClient ... Received Response (truncated to 1024 bytes)