Table of Contents

Enum SshSignaturePurpose

Namespace
SshSharp
Assembly
SshSharp.dll

What a signature made with a private key is for (Purpose).

public enum SshSignaturePurpose

Fields

Authentication = 0

Public key authentication: proving the key to a server while logging in (RFC 4252 section 7).

Certificate = 2

Issuing an OpenSSH certificate as its certificate authority (SignAsync(SshPrivateKey, CancellationToken), ssh-keygen -s): the data is the certificate without its signature. A signer that holds a CA key can allow this purpose alone.

FileSignature = 1

An SSH signature over a file or other data (SSHSIG, ssh-keygen -Y sign), with its Namespace.

Other = 3

Data of a form SshSharp does not recognise, which a program on a server asked an in-process agent (FromKeys(params SshPrivateKey[])) to sign through agent forwarding: a challenge of its own, such as pam_ssh_agent_auth's. A signer whose policy allows only the purposes above refuses it by throwing.