tlsutil

package
Version: v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertPool

func NewCertPool(CAFiles []string) (*x509.CertPool, error)

NewCertPool creates x509 certPool with provided CA files.

Types

type TLSInfo

type TLSInfo struct {
	CAFile   string
	CertFile string
	KeyFile  string
}

TLSInfo prepares tls.Config's from TLS filename inputs.

func (*TLSInfo) ClientConfig

func (info *TLSInfo) ClientConfig() (*tls.Config, error)

ClientConfig returns a tls.Config for client use.

func (*TLSInfo) ServerConfig

func (info *TLSInfo) ServerConfig() (*tls.Config, error)

ServerConfig returns a tls.Config for server use.

Source Files

Jump to

Keyboard shortcuts

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