[JWT] Unable to use private keys with no password

Forge Component
(10)
Published on 20 Jul by João Almeida
10 votes
Published on 20 Jul by João Almeida

I'm trying to generate JWTs using RS256 and a non-passworded private key. It seems this component requires the key to be passworded, so I can't use it. Is there a way to make it work with a plain text private key?


My key is of the type:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

Mike Wyse wrote:

I'm trying to generate JWTs using RS256 and a non-passworded private key. It seems this component requires the key to be passworded, so I can't use it. Is there a way to make it work with a plain text private key?


My key is of the type:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

 Hi Mike, can you check with the latest version of the component?