testauthority

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testauthority implements a wrapper around native.Keygen that uses pre-computed keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keygen

type Keygen struct {
	*keygen.Keygen
}

func New

func New() *Keygen

New creates a new key generator with defaults

func NewWithClock

func NewWithClock(clock clockwork.Clock) *Keygen

NewWithClock creates a new key generator with the specified configuration

func (*Keygen) GenerateHostCert

func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error)

func (*Keygen) GenerateJWT

func (n *Keygen) GenerateJWT() (pub []byte, priv []byte, err error)

func (*Keygen) GenerateKeyPair

func (n *Keygen) GenerateKeyPair() (priv []byte, pub []byte, err error)

GenerateKeyPair returns a new private key in PEM format and an ssh public key in authorized_key format.

func (*Keygen) GeneratePrivateKey

func (n *Keygen) GeneratePrivateKey() (*keys.PrivateKey, error)

GeneratePrivateKey generates a new PrivateKey.

func (*Keygen) GenerateUserCert

func (n *Keygen) GenerateUserCert(c services.UserCertParams) ([]byte, error)

func (*Keygen) GetNewKeyPairFromPool

func (n *Keygen) GetNewKeyPairFromPool() (priv []byte, pub []byte, err error)

type PreparedKeyPair

type PreparedKeyPair struct {
	Priv []byte
	Pub  []byte
}

Jump to

Keyboard shortcuts

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