Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password mandatory when converting to pkcs#8 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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