Documentation ¶
Overview ¶
Package tlsutil contains utility functions for TLS operations.
Index ¶
- func ClientKeypair() (string, string)
- func DNSNames(svcName, svcNamespace string) []string
- func HeadlessDNSNames(podName, svcName, svcNamespace string) []string
- func NewClientTLSConfig() (*tls.Config, error)
- func NewClientTLSConfigFromSecret(c client.Client, name, namespace string) (*tls.Config, error)
- func NewServerTLSConfig() (*tls.Config, error)
- func ServerKeypair() (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientKeypair ¶
ClientKeypair returns the path to a client certificatee and key.
func HeadlessDNSNames ¶
HeadlessDNSNames returns the DNS names for a pod in the given headless service name and namespace.
func NewClientTLSConfig ¶
NewClientTLSConfig returns a new client TLS configuration for use with connecting to a server requiring mTLS.
func NewClientTLSConfigFromSecret ¶
NewClientTLSConfigFromSecret returns a client TLS config from a kubernetes certificate secret.
func NewServerTLSConfig ¶
NewServerTLSConfig returns a new server TLS configuration with client certificate verification enabled.
func ServerKeypair ¶
ServerKeypair returns the path to a server certificatee and key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.