tls

package
v2.3.0-beta37 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package tls provides functionality for handling tls connetions.

Index

Constants

This section is empty.

Variables

View Source
var (
	DstURL string
)

Functions

func CertForClient

func CertForClient(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)

func HandleTLSConnection

func HandleTLSConnection(_ context.Context, logger *zap.Logger, conn net.Conn) (net.Conn, error)

func IsTLSHandshake

func IsTLSHandshake(data []byte) bool

func SetupCA

func SetupCA(ctx context.Context, logger *zap.Logger) error

SetupCA setups custom certificate authority to handle TLS connections

Types

This section is empty.

Jump to

Keyboard shortcuts

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