Update docs and remove a leftover DSA certificate algorithm#1632
Merged
Rob-Hague merged 2 commits intosshnet:developfrom May 4, 2025
Merged
Update docs and remove a leftover DSA certificate algorithm#1632Rob-Hague merged 2 commits intosshnet:developfrom
Rob-Hague merged 2 commits intosshnet:developfrom
Conversation
Rob-Hague
commented
Apr 19, 2025
| hostAlgs.Add("rsa-sha2-512-cert-v01@openssh.com", data => { var cert = new Certificate(data); return new CertificateHostAlgorithm("rsa-sha2-512-cert-v01@openssh.com", cert, new RsaDigitalSignature((RsaKey)cert.Key, HashAlgorithmName.SHA512), hostAlgs); }); | ||
| hostAlgs.Add("rsa-sha2-256-cert-v01@openssh.com", data => { var cert = new Certificate(data); return new CertificateHostAlgorithm("rsa-sha2-256-cert-v01@openssh.com", cert, new RsaDigitalSignature((RsaKey)cert.Key, HashAlgorithmName.SHA256), hostAlgs); }); | ||
| hostAlgs.Add("ssh-rsa-cert-v01@openssh.com", data => { var cert = new Certificate(data); return new CertificateHostAlgorithm("ssh-rsa-cert-v01@openssh.com", cert, hostAlgs); }); | ||
| hostAlgs.Add("ssh-dss-cert-v01@openssh.com", data => { var cert = new Certificate(data); return new CertificateHostAlgorithm("ssh-dss-cert-v01@openssh.com", cert, hostAlgs); }); |
Collaborator
Author
There was a problem hiding this comment.
2025.0.0 will break with servers which offer ssh-dss-cert-v01@openssh.com because I missed this line in #1558. Hopefully that is not very many... the workaround is to remove it:
client.ConnectionInfo.HostKeyAlgorithms.Remove("ssh-dss-cert-v01@openssh.com");
Rob-Hague
commented
Apr 19, 2025
| switch (keyName) | ||
| { | ||
| case "RSA PRIVATE KEY": | ||
| case "DSA PRIVATE KEY": |
Collaborator
Author
There was a problem hiding this comment.
this removal makes no difference, it throws NotSupportedException either way
WojciechNagorski
approved these changes
May 4, 2025
This was referenced Oct 27, 2025
This was referenced Nov 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.