Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeys ¶
func GenerateKeys() (RawPublicKey, RawPrivateKey, error)
GenerateKeys generates a ed25519 keypair in on-disk format
func ParsePublicKey ¶ added in v0.23.0
func ParsePublicKey(raw RawPublicKey) (ssh.PublicKey, error)
ParsePublicKey parses exactly one authorized-key-formatted SSH public key. Comments are accepted, but authorized_keys options, trailing records, and certificates are not. Callers that persist the key can use ssh.MarshalAuthorizedKey on the result to obtain its canonical form.
Types ¶
type RawCertificate ¶
type RawCertificate string
RawCertificate is a cert in the on-disk certificate format
type RawPrivateKey ¶
type RawPrivateKey string
RawPrivateKey is a private key in the on-disk private key format
Click to show internal directories.
Click to hide internal directories.