unit

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertBundle

type CertBundle struct {
	Cert *x509.Certificate
	PEM  []byte
	PK   crypto.PrivateKey
}

CertBundle contains a signed certificate and corresponding private key, to be used for testing.

func MustCreateBundle

func MustCreateBundle(t *testing.T, issuer *CertBundle, name string) *CertBundle

MustCreateBundle creating a CertBundle for testing. If issuer bundle is empty, certificate will be self signed.

Jump to

Keyboard shortcuts

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