certtest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestCACertificates

func CreateTestCACertificates(t *testing.T, clk clock.Clock) string

CreateTestCACertificates creates a self-signed CA and an intermediate CA for testing purposes. It returns the path to the temporary directory where the certificates are stored.

func CreateTestIntermediateCACertificate

func CreateTestIntermediateCACertificate(t *testing.T, clk clock.Clock, parent *x509.Certificate, parentKey crypto.PrivateKey, cn string) (*x509.Certificate, crypto.PrivateKey)

CreateTestIntermediateCACertificate creates an intermediate CA certificate for testing purposes.

func CreateTestSelfSignedCACertificate

func CreateTestSelfSignedCACertificate(t *testing.T, clk clock.Clock) (*x509.Certificate, crypto.PrivateKey)

CreateTestSelfSignedCACertificate creates a self-signed CA certificate for testing purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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