Class SshEndpointPrivateKey
- Namespace
- SshSharp.Extensions.DependencyInjection
- Assembly
- SshSharp.Extensions.DependencyInjection.dll
A private key given as a value, for PrivateKeys: the key text itself rather than a file, as containers
and secret stores supply it (an environment variable, a mounted Kubernetes secret bound through configuration, Key Vault, user
secrets). Mutable, so configuration can bind to it (Ssh:Deploy:PrivateKeys:0:Key). Neither the key nor the passphrase appears in
ToString() or in the debugger.
public sealed class SshEndpointPrivateKey
- Inheritance
-
SshEndpointPrivateKey
- Inherited Members
Properties
- Key
The private key's text, as a key file holds it: OpenSSH (
-----BEGIN OPENSSH PRIVATE KEY-----), PEM (PKCS#8, PKCS#1 or SEC1) or PuTTY (.ppk), as Parse(string, string?) reads it. Bind it from a secret store, never from a checked-in file.
- Passphrase
The passphrase of an encrypted Key; ignored for an unencrypted one.
Methods
- ToString()
Describes the entry without its secrets: whether a key and a passphrase are set, never their values.