Skip to content

Update docs and remove a leftover DSA certificate algorithm#1632

Merged
Rob-Hague merged 2 commits intosshnet:developfrom
Rob-Hague:docs
May 4, 2025
Merged

Update docs and remove a leftover DSA certificate algorithm#1632
Rob-Hague merged 2 commits intosshnet:developfrom
Rob-Hague:docs

Conversation

@Rob-Hague
Copy link
Collaborator

No description provided.

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); });
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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");

switch (keyName)
{
case "RSA PRIVATE KEY":
case "DSA PRIVATE KEY":
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this removal makes no difference, it throws NotSupportedException either way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments