You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crypto.js:283
var ret = this._handle.sign(toBuf(key), null, passphrase);
^
Error: error:0906A068:PEM routines:PEM_do_header:bad password read
at Error (native)
at Sign.sign (crypto.js:283:26)
at sign (/usr/local/lib/node_modules/jwtgen/node_modules/jwt-simple/lib/jwt.js:170:57)
at Object.jwt_encode [as encode] (/usr/local/lib/node_modules/jwtgen/node_modules/jwt-simple/lib/jwt.js:133:17)
at Object.<anonymous> (/usr/local/lib/node_modules/jwtgen/jwtgen.js:138:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Crypto.js need passphrase ! But how pass passphrase in jwtgen ?
The text was updated successfully, but these errors were encountered:
Unfortunately, the library that we're using (jwt-simple) does not allow the use passphrases. I'll contact the author and see if we can fork and suggest a patch for such functionality.
I tried this:
I got it:
Crypto.js need passphrase ! But how pass passphrase in
jwtgen
?The text was updated successfully, but these errors were encountered: