testutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCSR

func EncodeCSR(csr []byte) []byte

func NewCACertificate

func NewCACertificate(key crypto.Signer, validFrom time.Time, duration time.Duration, isCA bool) (*x509.Certificate, error)

func NewCertificateRequest

func NewCertificateRequest(key crypto.Signer, subject pkix.Name) ([]byte, error)

func NewKeyProvider

func NewKeyProvider(cfg Config) keyprovider.KeyProvider

Types

type Config added in v0.2.0

type Config struct {
	KnownSigners         []string
	AddSignerError       SignerError
	ProvisionSignerError SignerError
}

type SignerError added in v0.2.0

type SignerError struct {
	Name       string
	ErrMessage string
}

Jump to

Keyboard shortcuts

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