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

Feature: auto-detect key format #6

Open
gr2m opened this issue Feb 26, 2024 · 0 comments
Open

Feature: auto-detect key format #6

gr2m opened this issue Feb 26, 2024 · 0 comments

Comments

@gr2m
Copy link
Sponsor

gr2m commented Feb 26, 2024

I think it's possible to recognize most key formats by the first line.

PKCS#1 starts with

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

while PKCS#8` starts with

-----BEGIN PRIVATE KEY-----
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

1 participant