testutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(t *testing.T, dnsNames []string, ipAddresses []net.IP) (tls.Certificate, *x509.CertPool)

GenerateCert creates a self-signed TLS certificate and a CA pool trusting it.

func GenerateCertPEM

func GenerateCertPEM(t *testing.T, dnsNames []string, ipAddresses []net.IP) ([]byte, []byte)

GenerateCertPEM creates a self-signed certificate and returns PEM-encoded cert and key bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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