tlstest

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tlstest creates temporary certificate revisions for transport tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(tb testing.TB, link string, leaf Identity, ca, previous []byte, until time.Time)

Types

type Authority

type Authority struct {
	Certificate *x509.Certificate
	Key         *ecdsa.PrivateKey
	PEM         []byte
}

func NewAuthority

func NewAuthority(tb testing.TB, name string) Authority

type Identity

type Identity struct {
	Certificate []byte
	Key         []byte
}

func NewIdentity

func NewIdentity(tb testing.TB, ca Authority, name string, usage x509.ExtKeyUsage) Identity

Jump to

Keyboard shortcuts

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