jwt-kms
jwt-kms copied to clipboard
Not working with AWS KMS
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?