Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertWatchFn ¶
func Load ¶
func Load(tlsPath string, tlsCertPEM string, tlsKeyPEM string) (tlsConfig *tls.Config, watchFn CertWatchFn, err error)
Load a TLS configuration First, checks if tlsKeyPEM and tlsCertPEM are valid TLS certificates If not, tries to load from a path on disk files named "tls-cert.pem" and "tls-key.pem"
Click to show internal directories.
Click to hide internal directories.