tls

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BreakIntoNextProtos

func BreakIntoNextProtos(prefix, value string) ([]string, error)

BreakIntoNextProtos takes in a prefix and a value and breaks it into a chunks

func ClientConfig

func ClientConfig(ctx context.Context, n *types.NodeCredentials, opt ...nodeenrollment.Option) (*tls.Config, error)

ClientConfig creates a client-side tls.Config by from the given NodeCredentials. The values populated here can be used or modified as needed.

Supported options: WithRandomReader, WithServerName (passed through to standardTlsConfig), WithExtraAlpnProtos

func CombineFromNextProtos

func CombineFromNextProtos(prefix string, chunks []string) (string, error)

CombineFromNextProtos takes in a prefix and chunks and combines it from chunks

func GenerateServerCertificates

GenerateServerCertificates issues contemporaneous certificates for TLS connections from one or more root certificates.

Valid options: WithRandomReader, WithWrapper (passed through to LoadNodeInformation and LoadRootCertificates)

func ServerConfig

ServerConfig takes in a generate response and turns it into a server-side TLS configuration

Supported options: none, although options passed in here will be passed through to the standard TLS configuration function (useful for tests, mainly)

Types

This section is empty.

Jump to

Keyboard shortcuts

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