Skip to content

Conversation

@philippecery
Copy link

Hi @youmark,

As the goal of this library is to support - and promote? - the use of password-protected private key with strong encryption algorithms, I suggest you make the password parameter mandatory when converting to PKCS#8.
Those who prefer to keep their private key in plaintext can still use MarshalPrivateKey, where the password remains optional.
Also, this way, ConvertPrivateKeyToPKCS8 and MarshalPrivateKey have two different purposes.

Regards,
Philippe.

@UlrichEckhardt
Copy link
Contributor

This doesn't seem to cause regressions from the tests, but it's an API break, so it would require a major version bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants