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

Export RSA private key to PKCS8 format #294

Closed
akostadinov opened this issue Nov 19, 2019 · 4 comments · Fixed by #297
Closed

Export RSA private key to PKCS8 format #294

akostadinov opened this issue Nov 19, 2019 · 4 comments · Fixed by #297

Comments

@akostadinov
Copy link

Hi, I don't see any way to export RSA private key to PKCS8 PEM format as for example required by Chrome extension .crx.

There is a discontinued rubygem about this [1] but I think a to_pkcs8 method would nicely fit into the main library. There is a pull request for making it work with recent ruby.

[1] https://github.com/postageapp/openssl_pkcs8
[2] https://github.com/postageapp/openssl_pkcs8/pull/4/files

@ioquatix
Copy link
Member

Great, can you make a PR here?

@akostadinov
Copy link
Author

I don't expect to have time for this. I found I have another way around for the task at hand.

@ioquatix
Copy link
Member

What is the other way?

@bdewater
Copy link
Contributor

#119 covers this among other things. Perhaps the relevant commit(s) could be cherry-picked out of the larger work in there to support x25519.

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

Successfully merging a pull request may close this issue.

3 participants