1 Answer
- Newest
- Most votes
- Most comments
0
I've found a workaround for this problem.
const publicKey = '-----BEGIN PUBLIC KEY-----\n' _ kmsPublicKey.replace(/(.{64})/g, '$&' _ '\n' ) + '\n-----END PUBLIC KEY-----';
Yes, it isn't very pretty, but it gets the job done.
KMS team, can there be a option to retrieve the public key with the appropriate header and footer on the getPublicKey
method?
answered 3 years ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago