-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
ERROR: fail get idrsa, x509: failed to parse private key (use ParsePKCS8PrivateKey instead for this key format) #121
Comments
@jonasvinther are you able to merge this issue as we need it also |
@jonasvinther can you show us your openssl command that are used for decrypt file. |
It's documented here: https://github.com/jonasvinther/medusa#key-generation I looked into this issue yesterday and realized that the suggested code won't fix this issue. In order to support ECDSA etc. the code needs to be changed to handle the different formats. |
I found a workaround to generating a key pair that will correctly parse during decryption. I was using openssl 3.0.1 to generate the keys, which resulted in the above parsing error. For these steps to work: https://github.com/jonasvinther/medusa#key-generation, I switched to using openssl 1.0.2. |
Hello,
Issue on decrypr file
I fixed this issue on rsa.go files
from
to
Can you fix it ?
The text was updated successfully, but these errors were encountered: