tlsutil

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSConfig

type TLSConfig struct {
	Config *tls.Config
}

func NewTLSConfig

func NewTLSConfig(certFilepath, keyFilepath string, rootCACertFilepaths, clientCACertFilepaths []string, requireAndVerifyClientCert bool) (*TLSConfig, error)

func (*TLSConfig) LoadClientCACert added in v0.63.0

func (tc *TLSConfig) LoadClientCACert(caCertFilepath string) error

func (*TLSConfig) LoadRootCACert added in v0.63.0

func (tc *TLSConfig) LoadRootCACert(caCertFilepath string) error

func (*TLSConfig) LoadX509KeyPair

func (tc *TLSConfig) LoadX509KeyPair(certFilepath, keyFilepath string) error

Jump to

Keyboard shortcuts

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