Table of Contents

Property CASignatureAlgorithms

Namespace
SshSharp
Assembly
SshSharp.dll

CASignatureAlgorithms

The signature algorithms a certificate authority may have signed a host certificate with, as ssh_config's CASignatureAlgorithms: for example SshAlgorithmList.Only("ssh-ed25519") to trust only certificates an Ed25519 authority signed. Null (the default) allows SshSharp's set: ssh-ed25519, the three ecdsa-sha2-nistp* and rsa-sha2-512, rsa-sha2-256. The list can only narrow that set: SHA-1 ssh-rsa and the FIDO sk-* algorithms, which ssh's defaults have, are never accepted. A host certificate signed with an algorithm the list leaves out cannot be used, as one that has expired: KnownHostsVerifier logs a warning and checks its key as a plain key, as ssh does. FipsMode does not apply to it.

public SshAlgorithmList? CASignatureAlgorithms { get; init; }

Property Value

SshAlgorithmList

Exceptions

ArgumentException

A name is not a CA signature algorithm SshSharp accepts.