tls

package
v3.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractClientCertificates

func ExtractClientCertificates(cert []byte, certFile string, key []byte, keyFile string) (*tls.Certificate, error)

ExtractClientCertificates extracts tls.Certificates from TLSClientConfig. It returns nil in case there was no client cert and/or client key provided. REVIEW: in case of no certs specified, return nil, nil, OR return non-nil error, OR add a boolean return value?

func ValueFromVariableOrFile

func ValueFromVariableOrFile(v []byte, file string) ([]byte, error)

ValueFromVariableOrFile uses v value if it's not empty, and falls back to reading a file content when value is missing. When both are empty, nil is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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