sshutils

package
v0.0.0-...-e70d3af Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(conf config.Config, overwrite bool) error

Generate a new CA key based off of the data in the config. If overwrite, it will overwrite the current CA key. Prints the generated public key to stdout.

func GenerateNewSSHKey

func GenerateNewSSHKey(filename string, overwrite bool, printPubKey bool) error

Generate a new ssh key. Store the private key at filename and the public key at filename.pub. If overwrite, it will overwrite anything at filename or filename.pub. If printPubKey, it will print the generated public key to stdout.

func ProcessSignatureRequest

func ProcessSignatureRequest(conf config.Config, sr shared.SignatureRequest) (resp shared.SignatureResponse, err error)

Process a given SignatureRequest into a SignatureResponse or an error. This consists of validating the signature request, determining the correct principals, and signing the provided public key.

func SignKey

func SignKey(caKeyLocation, keyID, principals, expiration, publicKey string) (signature string, err error)

Sign an SSH public key with the given data. Do so without any operations that rely on Keybase in order to ensure that running `keybaseca sign` works even if Keybase is down.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL