tls

package
v3.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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