Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use along KMS asymmetrical key #961

Open
julianCast opened this issue Feb 21, 2024 · 0 comments
Open

Use along KMS asymmetrical key #961

julianCast opened this issue Feb 21, 2024 · 0 comments

Comments

@julianCast
Copy link

I have a question regarding the use of this library. If I want to use my asymmetrical KMS key (KeySpec: RSA_2048, KeyUsage: SIGN_VERIFY), from my understand, the private key would be used to sign, while the public key would be use to verify/decode. But since the method jwt.sign with algorithm: 'RS256' requires the following a asymmetrical private key, I would have to generate or download the pem file and link it right?

But it defeat the purpose of having asymmetrical key in KMS while using a pem file. So my undertand if that it makes more sense for me to just use kms Verify/SignCommand methods instead of this library () ? Or am I mixing concepts?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant