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

Pem format encryption #87

Open
nakky opened this issue Jan 12, 2023 · 0 comments · May be fixed by #88
Open

Pem format encryption #87

nakky opened this issue Jan 12, 2023 · 0 comments · May be fixed by #88

Comments

@nakky
Copy link

nakky commented Jan 12, 2023

When converting the private key to pem format with toBuffer(), it is not encrypted even if a passphrase is specified with WriteOptions. In ssh format, WriteOptions seems to be reflected and can be encrypted.

Looking at the source code, it seems like a natural behavior because there is no particular reference to WriteOptions in toBuffer("pem"...).

WriteOptions is not described in the toBuffer() part of the README, so it may not be included in the specification, but it would be helpful if it could be encrypted.

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 a pull request may close this issue.

1 participant