-
Notifications
You must be signed in to change notification settings - Fork 61
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 for PKCS#8 encoded RSA private keys in Windows port #260
Comments
pkcs 7 should also be supported. Looking into pkcs 8 at the moment |
probably something like this is needed: |
My suggestion would be to look at the first line of the PEM file to determine the format of the PEM: PKCS#1, PKCS#8 or SEC1 and then have different code branches to load the key. |
+1, particularly for EC keys in PKCS#8 format. The previously linked Microsoft API has been removed and this is now recommended: https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-pfximportcertstore |
I think this is also an issue on mac, was seeing |
Windows port only support RSA private keys in PKCS#1 format.
On Linux and MacOS, PKCS#8 private keys are supported
See also #259
The text was updated successfully, but these errors were encountered: