Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface {
// Generate should do actual key generation
Generate() error
// Encode should write out the private key in openssh-key-v1 format
Encode(io.Writer) error
// EncodePublic should write out the public key, in openssh's authorized_key format
EncodePublic(io.Writer) error
// Name should provide the type of key
Name() string
}
Generator is able to generate a specific type of key and export both private and public parts
type Manager ¶
type Manager struct {
// Directory where keys are stored
//
// default: current work directory
Directory string
// NamingScheme specifies naming scheme for keys.
// Must include a %s for inserting keytype.
//
// To use existing openssh keys: "ssh_host_%s_key"
//
// default: determines executable name at runtime
// and sets the value to "<executable>_host_%s_key"
NamingScheme string
// Keys defines which types of keys to manage.
//
// default: a set of keys similar to openssh,
// rsa 3072 bits, ecdsa P256, and an ed25519 key.
Keys []Generator
}
Manager configures hostkeys
Click to show internal directories.
Click to hide internal directories.