tlsutils

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTLSConfig

func CreateTLSConfig(prefix string) (*tls.Config, error)

CreateTLSConfig creates tls.Config instance from TLS parameters passed in environment variables with the given prefix

func NewTLSConfig added in v0.5.4

func NewTLSConfig(certPath, keyPath, caPath, serverName string, insecure bool, minVersion uint16) (*tls.Config, error)

NewTLSConfig creates a tls.Config instance from directly-passed parameters, loading the ca, cert, and key from disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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