tlsutil

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientMTLSConfig

func CreateClientMTLSConfig(clientCert tls.Certificate, caPEMs [][]byte) (*tls.Config, error)

func CreateDefaultServerTLSConfig added in v2.0.2

func CreateDefaultServerTLSConfig(commonName string) (*tls.Config, error)

func CreateServerTLSConfig

func CreateServerTLSConfig(cert tls.Certificate, mutual bool, uris []string, clientCAPEMs [][]byte) (*tls.Config, error)

func NewCertExchanger

func NewCertExchanger(cert *tls.Certificate, certChannel chan *tls.Certificate) *certExchanger

func UpgradeTLSConfigClientExchanger

func UpgradeTLSConfigClientExchanger(tlsConfig *tls.Config, certChannel chan *tls.Certificate) error

func UpgradeTLSConfigServerExchanger

func UpgradeTLSConfigServerExchanger(tlsConfig *tls.Config, certChannel chan *tls.Certificate) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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