tlstool

package
v17.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClientTLSConfig

func DefaultClientTLSConfig() *tls.Config

func DefaultClientTLSConfigWithCACert

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

func DefaultClientTLSConfigWithCACertKeyPair

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

func DefaultServerTLSConfig

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

func LoadCACert

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

func MaybeDefaultServerTLSConfig

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

MaybeDefaultServerTLSConfig is like DefaultServerTLSConfig but returns (nil, nil) if certFile and keyFile are empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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