local

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 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(ctx context.Context) (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