Documentation ¶
Index ¶
- func InstallCert(a agent.Agent, cert *ssh.Certificate, key Key) error
- func SavePrivateFiles(prefix string, cert *ssh.Certificate, key Key) error
- func SavePublicFiles(prefix string, cert *ssh.Certificate, pub ssh.PublicKey) error
- func Sign(pub ssh.PublicKey, token string, conf *Config) (*ssh.Certificate, error)
- type Config
- type Key
- type KeyOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallCert ¶
InstallCert adds the private key and signed certificate to the ssh agent.
func SavePrivateFiles ¶
func SavePrivateFiles(prefix string, cert *ssh.Certificate, key Key) error
SavePrivateFiles installs the private part of the key.
func SavePublicFiles ¶
SavePublicFiles installs the public part of the cert and key.
Types ¶
type Config ¶
type Config struct { CA string `mapstructure:"ca"` Keytype string `mapstructure:"key_type"` Keysize int `mapstructure:"key_size"` Validity string `mapstructure:"validity"` ValidateTLSCertificate bool `mapstructure:"validate_tls_certificate"` PublicFilePrefix string `mapstructure:"key_file_prefix"` }
Config holds the client configuration.
func ReadConfig ¶
ReadConfig reads the client configuration from a file into a Config struct.
type KeyOption ¶
type KeyOption func(*options)
A KeyOption is used to generate keys of different types and sizes.
Click to show internal directories.
Click to hide internal directories.