-
Notifications
You must be signed in to change notification settings - Fork 161
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 PKCS#1 encoded RSA keys #76
Comments
RFC 8017 uses CLASSes which |
Actually… that command does actually write a PKCS#8 object:
It is the |
OK, in order to have a raw PKCS#1 you need to execute this as well:
I added both examples and very rudimentary PKCS#1 support. |
Raw PKCS#1 is now detected by itself, but not yet when inside a PKCS#8 like your example.
|
Oh thank you for taking a look :) I don't have all the details in my head anymore but it seems to look better! |
This is more complex because I have to find a way to let it understand that the
(and at the time I prefer to avoid "magic code" and only use features that can be parsed directly from ASN.1 definitions inside RFCs) |
PKCS#1 encoded RSA keys can be generated with OpenSSL using:
The format is described in RFC 8017, and in particular: https://www.rfc-editor.org/rfc/rfc8017#appendix-A.1
Currently, such a key is detected as a "PKCS#8 private key" which gives an incorrect mapping.
Here's a sample (zipped because GitHub requires it):
1024.zip
The text was updated successfully, but these errors were encountered: