tlstest

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package tlstest provides utilities for testing with TLS certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(options *CertOptions) (cert *tls.Certificate, certPEMBlock, keyPEMBlock []byte, err error)

GenerateCert generates a certificate with the given options.

func Logr added in v0.3.0

func Logr(t *testing.T) logr.Logger

Types

type CertOptions

type CertOptions struct {
	Parent     *tls.Certificate
	Template   *x509.Certificate
	PrivateKey crypto.Signer
}

CertOptions are certificate options.

Jump to

Keyboard shortcuts

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