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
createPrivateKey() only takes one option (keyBitsize), while genrsa offers many additional options; most commonly used are:
encryption cipher (e.g. des3, aes256)
encryption password
I would fork and patch, but it looks like the current implementation is very permissive about the type of keyBitsize, so I worry that any change I would make might break some existing clients. I could prepare a patch that expects an options object instead of keyBitsize, but I think we'd need to rev the major version. Is that something you're okay with?
The text was updated successfully, but these errors were encountered:
I don't have any preferences as long as it doesn't break existing clients. You could add an optional argument that includes the new params and if the argument is missing it wouldn't be used – this would keep old clients running but would allow to use the new stuff.
createPrivateKey()
only takes one option (keyBitsize
), whilegenrsa
offers many additional options; most commonly used are:des3
,aes256
)I would fork and patch, but it looks like the current implementation is very permissive about the type of
keyBitsize
, so I worry that any change I would make might break some existing clients. I could prepare a patch that expects anoptions
object instead ofkeyBitsize
, but I think we'd need to rev the major version. Is that something you're okay with?The text was updated successfully, but these errors were encountered: