testpki

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testpki creates hermetic certificate material for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Material

type Material struct {
	CertificatePEM []byte
	PrivateKeyPEM  []byte
}

Material contains one self-signed certificate and its PKCS#8 private key.

func NewSelfSigned

func NewSelfSigned(t testing.TB) Material

NewSelfSigned creates one in-memory CA-capable client identity without opening a listener.

Jump to

Keyboard shortcuts

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