Method GetPublicKey
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
GetPublicKey()
The public key as an SshPublicKey, with this key's Comment. For a key paired with a certificate (WithCertificate(SshCertificate)), it is the certified key, not the certificate that PublicKey holds then.
public SshPublicKey GetPublicKey()
Returns
Exceptions
- FormatException
The key is one SshPublicKey does not read: an agent's FIDO security-key certificate.