sshkey

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(keyPath string) (ssh.Signer, error)

Open reads the path, and parses the key.

func Parse

func Parse(identifier string, pemBytes []byte) (ssh.Signer, error)

Parse tries to parse the given PEM into a ssh.Signer. If the key is encrypted, it will ask for the passphrase. The 'identifier' is used to identify the key to the user when asking for the passphrase.

func ParseRaw added in v0.2.0

func ParseRaw(identifier string, pemBytes []byte) (interface{}, error)

ParseRaw tries to parse the given PEM into a private key. If the key is encrypted, it will ask for the passphrase. The 'identifier' is used to identify the key to the user when asking for the passphrase.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳