It is not possible to specify the modulusLength for generated RSA keys since the update to 3.x.x #121
Replies: 3 comments
-
Hi @dlavrenuek This is not appropriate for a bug type issue. It was a conscious decision on my end to narrow the public API surface. I'll close this for now and consider adding this in a future release. Until then, for Node.js runtime this module is a simple wrapper around promisified |
Beta Was this translation helpful? Give feedback.
-
added in v3.2.0 |
Beta Was this translation helpful? Give feedback.
-
Please consider supporting the library if it provides value to you or your company and this support was of help to you. Supporting the library means, amongst other things, that such support will be available in the future. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Jose version 3.x introduced a lot of code changes together with removed functionality that was present in jose 2.x. One of these is setting the
modulusLength
for generated RSA keys. This value is now hardcoded in https://github.com/panva/jose/blob/master/src/runtime/node/generate.ts#L55 and can not be changed during runtimeTo Reproduce
Code to reproduce the behaviour:
Working code in jose 2.0.3
Analogue in jose 3.1.3 with missing option of the modulusLength:
jose
version: v3.x.xAdditional context
Add any other context about the problem here.
jose
too.Beta Was this translation helpful? Give feedback.
All reactions