Created
November 3, 2020 12:27
-
-
Save lucashenning/8c5dde9540a23d089601563f0638fde7 to your computer and use it in GitHub Desktop.
AWS KMS Sign DIGEST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function sign(msgHash, keyId) { | |
const params : KMS.SignRequest = { | |
KeyId: keyId, | |
Message: msgHash, | |
SigningAlgorithm: 'ECDSA_SHA_256', | |
MessageType: 'DIGEST' | |
}; | |
return kms.sign(params).promise(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment