tls

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(cfg *Config) (*tls.Config, error)

Types

type Config

type Config struct {
	// Enabled determines if TLS should be used. Defaults to false.
	Enabled bool
	// File path to the CA PEM certificate to be used for TLS connection. If TLS is
	// enabled and no CA cert file is provided, the system certificate pool is
	// used as default.
	CaCertFile string
	// File path to the client PEM certificate
	ClientCertFile string
	// File path to the client PEM key
	ClientKeyFile string
}

Jump to

Keyboard shortcuts

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