Documentation ¶
Overview ¶
Package transport provides transport related functions to other kwil-db packages to help configure and use TLS clients and services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientTLSConfig ¶
DefaultClientTLSConfig returns a client tls config using just the system's CA pool, if present, otherwise an empty certificate pool.
func GenTLSKeyPair ¶
GenTLSKeyPair generates a key/cert pair to the paths provided.
func NewClientTLSConfig ¶
NewClientTLSConfig creates a new basic tls.Config for a TLS client. This is not appropriate for a server's config. Provide the server's certificate or it's root certificate authority.
func NewClientTLSConfigFromFile ¶
NewClientTLSConfigFromFile creates a new basic tls.Config for a TLS client given the path to a PEM encoded certificate file to include in the root CAs. Provide the server's certificate or it's root certificate authority. Use DefaultClientTLSConfig to use just the system's CA pool.
Types ¶
This section is empty.