utls

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig(ctx context.Context, cred *v1.Credential) (*tls.Config, error)

ClientConfig takes a credential and returns a TLS configuration that can be used to connect to a server.

func GenerateClientServerCredentials

func GenerateClientServerCredentials(ctx context.Context) (*v1.Credential, *v1.Credential, error)

GenerateClientServerCredentials generates a new CA and two sets of credentials for use in a client/server configuration. Returns: client_credentials, server_credentials, error.

func ListenerConfig

func ListenerConfig(ctx context.Context, cred *v1.Credential) (*tls.Config, error)

ListenerConfig takes a credential and returns a TLS configuration that can be used to create a TLS listener.

Types

This section is empty.

Jump to

Keyboard shortcuts

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