Table of Contents

Property Principals

Namespace
SshSharp
Assembly
SshSharp.dll

Principals

The user or host names the certificate is valid for. An empty list is refused by IsValidFor(SshPublicKey, SshCertificateType, string, DateTimeOffset, out string?), by sshd for TrustedUserCAKeys and by ssh for host certificates; only an authorized_keys cert-authority line without principals= takes it as any user. A certificate lists at most 256, as OpenSSH allows; one with more is refused when it is read.

public IReadOnlyList<string> Principals { get; }

Property Value

IReadOnlyList<string>