tlsconf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMutualAuthParamsNotComplete = errors.New("cert and key are required for a mutual authentication")
	ErrAppendCACert                = errors.New("failed to append CA certificate")
)

Functions

func Config

func Config(fs afero.Fs, cacert, cert, key string) (*tls.Config, error)

Config creates a TLS configuration based on the provided certificates and a key. Parameters: - cacert: path to the CA certificate file (optional), - cert: path to the client certificate file (optional), - key: path to the client certificate key file (optional).

Types

This section is empty.

Jump to

Keyboard shortcuts

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