tlstest

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tlstest generates throwaway self-signed certificates for tests exercising TLS-enabled transport and cluster code. Not for production use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPair

func NewPair(t testing.TB) (caPEM, certPEM, keyPEM []byte)

NewPair generates a throwaway self-signed CA and one leaf certificate signed by it, valid for both server and client auth. Returns all three as PEM: the CA certificate, the leaf certificate, and the leaf's private key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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