tls

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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