tls

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientTLS = errors.New("client tls err")
)

Functions

func GetClientTLSConfig

func GetClientTLSConfig(insecure bool, caCertFile, CertFile, KeyFile string) (t *tls.Config, err error)

func GetServerTLSConfig

func GetServerTLSConfig(caCertFile string) (t *tls.Config, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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