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

Problem with elliptic private keys #238

Open
BratSinot opened this issue Oct 17, 2022 · 1 comment
Open

Problem with elliptic private keys #238

BratSinot opened this issue Oct 17, 2022 · 1 comment

Comments

@BratSinot
Copy link

BratSinot commented Oct 17, 2022

Greetings!

Extent of this:
#221

I got 2 keys: keys.tgz

If I try to use them, I got error. If I try convert openssl pkcs8 -in server.pem -topk8 -nocrypt -outform pem -out new-server.pem I got error.
If I remove EC from -----BEGIN EC PRIVATE KEY----- everything work fine. But in Docker with musl target I got error.

What I do wrong?

@UXabre
Copy link

UXabre commented Apr 20, 2023

I'm actually seeing the same issue and I think this code is the bad boy:

if !key.starts_with(b"-----BEGIN PRIVATE KEY-----") {

I don't think a check is needed actually? Or at the very least it should allow for "EC" in there.

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