mtls

package
v1.48.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mtls provides synthetic certificate fixtures for mTLS tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteClientFiles

func WriteClientFiles(t *testing.T, certPEM, keyPEM []byte) (string, string)

WriteClientFiles writes synthetic client credentials to private temporary files.

Types

type PKI

type PKI struct {
	RootPEM        []byte
	ClientLeafPEM  []byte
	ClientChainPEM []byte
	ClientKeyPEM   []byte
}

PKI contains synthetic PEM data for mTLS tests.

func NewPKI

func NewPKI(t *testing.T) PKI

NewPKI creates a synthetic root, intermediate, and client certificate chain.

Jump to

Keyboard shortcuts

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