Skip to content

Instantly share code, notes, and snippets.

@lucashenning
Created November 3, 2020 12:27
Show Gist options
  • Save lucashenning/8c5dde9540a23d089601563f0638fde7 to your computer and use it in GitHub Desktop.
Save lucashenning/8c5dde9540a23d089601563f0638fde7 to your computer and use it in GitHub Desktop.
AWS KMS Sign DIGEST
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