Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MutualTLSConfig ¶
MutualTLSConfig holds the certificates and keys needed for mTLS.
func (*MutualTLSConfig) FromFiles ¶
func (c *MutualTLSConfig) FromFiles( serverPvtKeyFile, serverCertFile, clientCertFile string) error
FromFiles populates MutualTLSConfig with the PEM data in the given files.
func (*MutualTLSConfig) ServerTLSConfig ¶
func (c *MutualTLSConfig) ServerTLSConfig() (*tls.Config, error)
ServerTLSConfig builds an HTTPS server configuration for mTLS.
Click to show internal directories.
Click to hide internal directories.