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

feat: 🎸 added support for differnt pem/der encodings #51

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

peterbornerup
Copy link
Member

Multiple options are tested and the first working import method is picked

Multiple options are tested and the first working import method is
picked
@benjaminbruun
Copy link
Collaborator

Looks good. Might add a extra DER encoded key to the test resources.
Is the readme up to date?

@peterbornerup
Copy link
Member Author

good point. I'll wait until we know if this actually resolves any errors or not. I got a feeling that the pcks8 is a more modern format so hopefully we'll run into fewer problems with that as an option.

Comment on lines +41 to +47
} else {
for key in &keys {
log::trace!("{:?}", key);
}

Err("Failed to decode private key. Is the key corrupted?".into())
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
for key in &keys {
log::trace!("{:?}", key);
}
Err("Failed to decode private key. Is the key corrupted?".into())
}
}
for key in &keys {
log::trace!("{:?}", key);
}
Err("Failed to decode private key. Is the key corrupted?".into())

@benjaminbruun benjaminbruun marked this pull request as draft December 23, 2024 12:27
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.

3 participants