Method VerifySignature
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
VerifySignature()
Whether AuthorityKey's signature over the certificate is valid, with the rules the library applies to every
certificate it checks: SHA-1 (ssh-rsa) signatures are refused, an RSA authority must have at least 2048 bits, and Ed25519
signatures are checked strictly (RFC 8032: a non-canonical signature or a small-order key fails).
public bool VerifySignature()
Returns
- bool
True when the signature is valid; false for a wrong, malformed or refused signature, or an authority key that cannot verify (a FIDO security key's).
Remarks
This proves only that the holder of AuthorityKey issued the certificate, not that you trust that authority: check that with GetAuthorityKey(), or use IsValidFor(SshPublicKey, SshCertificateType, string, DateTimeOffset, out string?), which checks both.