local

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	CACert          ssh.PublicKey
	CAKey           ssh.Signer
	TTL             int
	CriticalOptions map[string]string
	Extensions      map[string]string
}

Signer struct represents local options for signing SSH Key.

func (*Signer) Init

func (s *Signer) Init(config *viper.Viper) error

Init method is used to ingest config of Signer

func (Signer) ReadCA

func (s Signer) ReadCA() (string, error)

ReadCA method read CA public cert from local file

func (Signer) Sign

func (s Signer) Sign(ctx context.Context, payload []byte, id string, principals []string) (cert string, err error)

Sign method is used to sign passed SSH Key.

Jump to

Keyboard shortcuts

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