pkg

package
v0.0.0-...-18650dd Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCaCerts

func GenerateCaCerts(ctx context.Context, caCertPath string, caKeyPath string) error

func GenerateClientCert

func GenerateClientCert(ctx context.Context, caCertPath string, caKeyPath string, clientCertPath string, clientKeyPath string) error

GenerateClientCert generates a client certificate signed by the given CA.

func GenerateServerCert

func GenerateServerCert(ctx context.Context, caCertPath string, caKeyPath string, serverCertPath string, serverKeyPath string) error

GenerateServerCert generates a server certificate signed by the given CA.

func LoadCACertificate

func LoadCACertificate(ctx context.Context, certPath, keyPath string) (*x509.Certificate, *ecdsa.PrivateKey, error)

LoadCACertificate loads a CA certificate and private key from files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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