Skip to content

2024.2.0.3

Choose a tag to compare

@darinkes darinkes released this 16 Jul 07:44
· 18 commits to main since this release

SSH.NET extension to generate and export authentication keys in OpenSSH and PuTTY v2/v3 format.

Features

  • Fluent SshKey.Builder() API — a chainable alternative to SshKeyGenerateInfo (generate in-memory, to a Stream, or to a file)

Fixes

  • Passphrases are now encoded as UTF-8 instead of ASCII. ASCII silently replaced non-ASCII characters with ?, producing keys that ssh/PuTTY could not decrypt. ASCII passphrases are unaffected (identical bytes).

Testing / CI

  • Interop tests that run generated keys through the real ssh-keygen and puttygen tools
  • A second CI leg testing against the latest SSH.NET (not just the dependency-range floor), plus a round-trip test proving SSH.NET reads every generated format
  • Replaced obsolete RNGCryptoServiceProvider with RandomNumberGenerator

Dependencies

NuGet: https://www.nuget.org/packages/SshNet.Keygen/2024.2.0.3

Full changelog: 2024.2.0.2...2024.2.0.3