-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Breaking] Drop support for RSA PKCS#1 PEM keys in favor of the OpenSSH format. #272
Conversation
@jborean93 fyi. |
…SH format. As described in the README, this library embraces OpenSSH format when possible. This drops support for the RSA PKCS#1 PEM ('RSA PRIVATE KEY') format which was supported because the library author was using this format for a key. If you are using a key in this format, it can be converted by running: ssh-keygen -p -f <key_file> The OpenSSH format has been supported in OpenSSH since 2014 and became the default format used by 'ssh-keygen' in 2018.
31b5c8f
to
11a646f
Compare
Sorry for breaking your app @yokrysty. I assume the converted key is working well with other tools, like From the debug info you provided, I think we're not meeting the length requirements that the .NET class is expecting:
This code needs to be updated for that: Tmds.Ssh/src/Tmds.Ssh/PrivateKeyParser.OpenSsh.cs Lines 171 to 191 in f4501c5
With your key only the InverseQ is not the expected value. Can you try updating the above code by setting the |
yes it works with: |
Great! I'll look at fixing this and include it in a patch release in the coming day(s). |
@yokrysty the fix is in 0.9.1 which I've just uploaded to nuget.org. |
As described in the README, this library embraces OpenSSH format when possible.
This drops support for the RSA PKCS#1 PEM ('RSA PRIVATE KEY') format which was supported because the library author was using this format for a key.
If you are using a key in this format, it can be converted by running:
ssh-keygen -p -f <key_file>
The OpenSSH format has been supported in OpenSSH since 2014 and became the default format used by 'ssh-keygen' in 2018.