tlsbuilder

package
v3.14.2 Latest Latest
Warning

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

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

Documentation

Overview

tlsbuilder package was based on the tls package in runme.dev It was modified to generate certificates suitable for server encryption. The runme package is generating certificates for mutual TLs.

Index

Constants

View Source
const (
	CertPEMFile = "cert.pem" // deprecated
	KeyPEMFile  = "key.pem"  // deprecated
)

Variables

This section is empty.

Functions

func LoadClientConfig

func LoadClientConfig(certFile, keyFile string) (*tls.Config, error)

func LoadClientConfigFromDir deprecated

func LoadClientConfigFromDir(dir string) (*tls.Config, error)

Deprecated: use LoadClientConfig.

func LoadOrGenerateConfig

func LoadOrGenerateConfig(certFile, keyFile string, logger *zap.Logger) (*tls.Config, error)

LoadOrGenerateConfig loads the TLS configuration from the given files, or generates a new one if the files do not exist.

func LoadOrGenerateConfigFromDir deprecated

func LoadOrGenerateConfigFromDir(dir string, logger *zap.Logger) (*tls.Config, error)

Deprecated: use LoadOrGenerateConfig.

func LoadServerConfig

func LoadServerConfig(certFile, keyFile string) (*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