[JWT] Unable to use private keys with no password

Forge Component
(9)
Published on 2018-10-10 by João Almeida
9 votes
Published on 2018-10-10 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-----