Generate JWT

Hello, In one of our apps we would like to make a call to a Snowflake REST API. Therefore we need to generate a JWT token. We already know both public and private keys, so it seems to be easy to generate a JWT token. We use the JWT Module with its java action GenerateJWT. But this action needs a JWTRSAPrivateKey object, which we don't have.   Does anybody know how to handle this?
1 answers

Hi Maarten,

if you have PEM key then you can follow below steps to generate jwt here the cast activity is creating JWTRSAPrivateKey object


let me know if you need further help.

Good luck!