How to get private Key through KVM policy?

Hello Team,

 

Any one can provide sample example for getting Values (public key and private key) from KVM.

And I want to use those keys in JWT encryption.

Thank you.

0 2 397
2 REPLIES 2

Have you seen this answer

It refers to a repo with an example API proxy that demonstrates reading PEM-encoded RSA keys (public and private) from the KVM. Seems like exactly what you want.

 

You can store the keys in an encrypted kvm.

Then using another kvm get policy extract the private key/public key assigning to "private." prefixed variables In JWT policy just refer as private.keyvariablename.