jwt-kms icon indicating copy to clipboard operation
jwt-kms copied to clipboard

Not working with AWS KMS

Open fjcabello opened this issue 5 years ago • 0 comments

Hi, not sure if I'm doing something wrong, but I create keys with 'sign&verify' property (I have tried with RSA and ECC) and I get the same error:

InvalidKeyUsageException: arn:aws:kms:eu-west-1:774082574083:key/9a956830-5b5d-4203-bc1e-52781bbab0a2 key usage is SIGN_VERIFY which is not valid for Encrypt.

Checking the source code I realise you are calling to this.kms.encrypt, not kms.sign

Is this related to a change in AWS api?

fjcabello avatar Apr 15 '20 07:04 fjcabello