tlsutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 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.

Jump to

Keyboard shortcuts

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