Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientConfig ¶
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 ¶
ListenerConfig takes a credential and returns a TLS configuration that can be used to create a TLS listener.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.