tlsconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertWatchFn

type CertWatchFn = func(ctx context.Context) error

func Load

func Load(tlsPath string, tlsCertPEM string, tlsKeyPEM string) (tlsConfig *tls.Config, watchFn CertWatchFn, err error)

Load a TLS configuration First, checks if tlsKeyPEM and tlsCertPEM are valid TLS certificates If not, tries to load from a path on disk files named "tls-cert.pem" and "tls-key.pem"

Jump to

Keyboard shortcuts

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