testutils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificateAndKey

func CreateCertificateAndKey() (testCertContents []byte, testKeyContents []byte, err error)

CreateCertificateAndKey generates a self-signed test certificate and private key, and returns them in PEM format.

func CreateTestCertificate

func CreateTestCertificate() (certPath string, keyPath string, caPath string, err error)

CreateTestCertificate generates a test certificate, key, and CA certificate, writes them to temporary files, and returns their paths.

func CreateTestCertificates

func CreateTestCertificates() (certPath string, keyPath string, err error)

CreateTestCertificates generates a test certificate and key, writes them to temporary files, and returns their paths.

func CreateTestCrt

func CreateTestCrt() (certPath string, keyPath string, certContents []byte, err error)

CreateTestCrt generates a test certificate and key, writes them to temporary files, and returns their paths and the certificate contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

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