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

Support for elliptic private keys possible? #221

Closed
DerAndereAndi opened this issue Apr 9, 2022 · 2 comments
Closed

Support for elliptic private keys possible? #221

DerAndereAndi opened this issue Apr 9, 2022 · 2 comments

Comments

@DerAndereAndi
Copy link

HI everyone,

when using an identity pkcs8 key that uses an elliptic private key with the 1st line string

-----BEGIN EC PRIVATE KEY-----

instead of

-----BEGIN PRIVATE KEY-----

then the library can't work with it. When modifying the 1st line to the later it works. Would it be possible to support this out of the box without requiring to modify this line?

That would be awesome. Thanks for the library and all the work it involves!
Andreas

@sfackler
Copy link
Owner

sfackler commented Apr 9, 2022

I believe that is SEC 1 formatted rather than PKCS#8. This SO post talks about the difference and how to convert between them: https://security.stackexchange.com/a/84331

@DerAndereAndi
Copy link
Author

Very good point. Thank you!

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

No branches or pull requests

2 participants