tls

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCAPITLSConfig

func NewCAPITLSConfig(caPath string, skipCertVerify bool, commonName string) (*tls.Config, error)

func NewGenericTLSConfig

func NewGenericTLSConfig() (*tls.Config, error)

func NewMutualTLSClientConfig

func NewMutualTLSClientConfig(caPath, certPath, keyPath, commonName string) (*tls.Config, error)

func NewMutualTLSServerConfig

func NewMutualTLSServerConfig(caPath, certPath, keyPath string) (*tls.Config, error)

func NewTLSClientConfig

func NewTLSClientConfig(caPath, commonName string) (*tls.Config, error)

func NewTLSServerConfig added in v1.4.3

func NewTLSServerConfig(certPath, keyPath string) (*tls.Config, error)

func NewUAATLSConfig

func NewUAATLSConfig(caPath string, skipCertVerify bool) (*tls.Config, error)

Types

type TLS

type TLS struct {
	CAPath   string `env:"CA_PATH,   required, report"`
	CertPath string `env:"CERT_PATH, required, report"`
	KeyPath  string `env:"KEY_PATH,  required, report"`
}

Jump to

Keyboard shortcuts

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