Relative Content

Tag Archive for c#amazon-web-servicesrsaamazon-kmsjwe

Decode JWE token with AWS KMS service c#

has anyone used AWS KMS async keys (public/private) to encrypt a payload using the public key without using kms service and decrypt the payload using kms service? The scenario would be I give the public key to a client so they can generate a JWE and we can decrypt it using kms. My understanding is that KMS private key cant be downloaded so the decryption has to be done within KMS service. I’ve tried the most basic scenario and it throws exception InvalidCiphertextException. It feels like kms service can’t decrypt a payload that has not been encrypted using kms service.