jwtk / njwt

Node.js JWT support
Apache License 2.0
431 stars 49 forks source link

RSA key format #76

Open 8coins opened 3 years ago

8coins commented 3 years ago

Trying to find out what format is accepted to use RSA key for signingKey parameter. Tried this without success:

var signingKey = Buffer.from("-----BEGIN RSA PRIVATE KEY-----XXXXXXX-----END RSA PRIVATE KEY-----", 'base64');

Thanks!