signer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySigner

type KeySigner struct {
	// contains filtered or unexported fields
}

KeySigner does the work of signing a ssh public key with the CA key.

func New

func New(conf *config.SSH) (*KeySigner, error)

New creates a new KeySigner from the supplied configuration.

func (*KeySigner) GenerateRevocationList

func (s *KeySigner) GenerateRevocationList(certs []*store.CertRecord) ([]byte, error)

GenerateRevocationList returns an SSH key revocation list (KRL).

func (*KeySigner) SignUserKey

func (s *KeySigner) SignUserKey(req *lib.SignRequest, username string) (*ssh.Certificate, error)

SignUserKey returns a signed ssh certificate.

Jump to

Keyboard shortcuts

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