Documentation ¶
Overview ¶
Package mtls provides mTLS and TLS config support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewClientConfig ¶
NewClientConfig returns a TLS configuration for use with an mTLS or TLS connection. If all parameters are empty, a nil config will be returned.
func NewServerConfig ¶
NewServerConfig returns a TLS configuration for use with an mTLS or TLS connection. If a root CA PEM block is provided the configuration will be set up for mTLS, otherwise if it is empty the config will be for TLS connections. If all parameters are empty, a nil config will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.