Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCertPool ¶
LoadCertPool loads the x509 certificate authority pool.
func LoadCertificate ¶
LoadCertificate loads the certificate from the configured public/private key.
Types ¶
type Config ¶
type Config struct { Enable bool `json:"enable" usage:"whether or not TLS should be enabled"` CertPath string `json:"cert_path" usage:"where to locate certificates for communication"` CAFile string `json:"ca_file" usage:"override the ca file name" default:"ca.crt"` CertFile string `json:"cert_file" usage:"override the cert file name" default:"tls.crt"` KeyFile string `json:"key_file" usage:"override the key file name" default:"tls.key"` ReloadInterval time.Duration `json:"reload_interval" usage:"how often to reload the config" default:"5m"` }
Config defines common configuration that can be used to LoadCertificates for encrypted communication.
Click to show internal directories.
Click to hide internal directories.