certs

package
v0.0.0-...-4ac9672 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertDir      = "certs"
	CertFile     = "server.crt"
	KeyFile      = "server.key"
	CAFile       = "ca.crt"
	CAKeyFile    = "ca.key"
	CertValidity = 365 * 24 * time.Hour
)

Variables

This section is empty.

Functions

func CreateClientCertificate

func CreateClientCertificate(clientName string) ([]byte, []byte, error)

func GetClientTLSConfig

func GetClientTLSConfig(clientName string) (*tls.Config, error)

func GetOrCreateCA

func GetOrCreateCA() (*x509.Certificate, *rsa.PrivateKey, error)

func GetOrCreateCertificates

func GetOrCreateCertificates() (*tls.Certificate, error)

func GetTLSConfig

func GetTLSConfig() (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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