testutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCACertificate

func GenerateCACertificate(caCertFile, caKeyFile string) error

GenerateCACertificate generates a CA certificate for testing client authentication

func GenerateCertificateWithExpiry

func GenerateCertificateWithExpiry(certFile, keyFile string, expiry time.Duration) error

GenerateCertificateWithExpiry generates a test certificate with a specific expiry time

func GenerateClientCertificate

func GenerateClientCertificate(clientCertFile, clientKeyFile, caCertFile, caKeyFile string) error

GenerateClientCertificate generates a client certificate signed by the CA

func GenerateTestCertificate

func GenerateTestCertificate(certFile, keyFile string) error

GenerateTestCertificate generates a self-signed test certificate and private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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