tls

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSConfig

func TLSConfig(cfg Config, dataDir string) (*tls.Config, error)

TLSConfig returns a *tls.Config, generating a self-signed cert if needed.

Types

type Config

type Config struct {
	Enabled  bool
	CertFile string
	KeyFile  string
}

Config holds TLS configuration.

Jump to

Keyboard shortcuts

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