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
One of the tests which builds a signed JWT with RS256 fails:
1) should generate and read a JWT signed using RS256, privKey 1024
1) Jwt Utils Tests should generate and read a JWT signed using RS256, privKey 1024:
AssertionError: expected [Error: error:0607A082:digital envelope routines:EVP_CIPHER_CTX_set_key_length:invalid key length] to not exist
at test/unit/jwt-utils-test.js:562:25
at Object.buildJWT (lib/jwt-utils.js:425:16)
at Context.<anonymous> (test/unit/jwt-utils-test.js:561:14)
Tested with Node.js 4, 6 and 8. iojs 2 works fine though
I will try to find what causes this
The text was updated successfully, but these errors were encountered:
This is caused by a bug in NodeJS which was fixed from version 10.7 onwards (nodejs/node#21288). I'm not sure if a backport of the fix to version 8.x is planned.
It looks like errors in OpenSSL's CipherBase queue were not being handled properly. This AssertionError is actually an error in the queue from a previous unit test which was supposed to fail and was not being cleaned up internally. If all unit tests except this one are removed it will actually work.
One of the tests which builds a signed JWT with RS256 fails:
Tested with Node.js 4, 6 and 8. iojs 2 works fine though
I will try to find what causes this
The text was updated successfully, but these errors were encountered: