tlstool

package
v17.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig added in v17.4.0

func ClientConfig() *tls.Config

func ClientConfigWithCACert added in v17.4.0

func ClientConfigWithCACert(caCertFile string) (*tls.Config, error)

func ClientConfigWithCACertKeyPair added in v17.4.0

func ClientConfigWithCACertKeyPair(caCertFile, certFile, keyFile string) (*tls.Config, error)

func LoadCACert

func LoadCACert(caCertFile string) (*x509.CertPool, error)

func MaybeServerConfig added in v17.4.0

func MaybeServerConfig(certFile, keyFile string) (*tls.Config, error)

MaybeServerConfig is like ServerConfig but returns (nil, nil) if certFile and keyFile are empty.

func MaybeServerConfigWithMTLS added in v17.4.0

func MaybeServerConfigWithMTLS(certFile, keyFile, mtlsClientCAFile string, mtlsEnabled bool) (*tls.Config, error)

func ServerConfig added in v17.4.0

func ServerConfig(certFile, keyFile string) (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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