Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientTLSConfig ¶
func GetClientTLSConfig(cfg *ClientTLSConfig) (*tls.Config, error)
GetClientTLSConfig creates a tls.Config object from certs and roots
Types ¶
type ClientTLSConfig ¶
type ClientTLSConfig struct { // The filenames of pem files for CA certificates CACertFiles []string `json:"ca_certfiles"` Client KeyCertFiles `json:"client,omitempty"` }
ClientTLSConfig defines the root ca and client certificate and key files
type KeyCertFiles ¶
KeyCertFiles defines the files need for client on TLS
Click to show internal directories.
Click to hide internal directories.