-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
feat: 🎸 added support for differnt pem/der encodings #51
Conversation
Multiple options are tested and the first working import method is picked
Looks good. Might add a extra DER encoded key to the test resources. |
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. |
} else { | ||
for key in &keys { | ||
log::trace!("{:?}", key); | ||
} | ||
|
||
Err("Failed to decode private key. Is the key corrupted?".into()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} 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()) |
Multiple options are tested and the first working import method is picked