Documentation
¶
Overview ¶
Package tls provides functionality for handling tls connetions.
Index ¶
- Variables
- func CertForClient(logger *zap.Logger, clientHello *tls.ClientHelloInfo, caPrivKey any, ...) (*tls.Certificate, error)
- func HandleTLSConnection(_ context.Context, logger *zap.Logger, conn net.Conn, backdate time.Time) (net.Conn, error)
- func IsTLSHandshake(data []byte) bool
- func SetupCA(ctx context.Context, logger *zap.Logger) error
Constants ¶
This section is empty.
Variables ¶
SrcPortToDstURL map is used to store the mapping between source port and DstURL for the TLS connection
Functions ¶
func CertForClient ¶
func CertForClient(logger *zap.Logger, clientHello *tls.ClientHelloInfo, caPrivKey any, caCertParsed *x509.Certificate, backdate time.Time) (*tls.Certificate, error)
func HandleTLSConnection ¶
Types ¶
This section is empty.
Source Files
¶
- ca.go
- tls.go
Click to show internal directories.
Click to hide internal directories.