Documentation ¶
Index ¶
- func ClientConfig() *tls.Config
- func ClientConfigWithCACert(caCertFile string) (*tls.Config, error)
- func ClientConfigWithCACertKeyPair(caCertFile, certFile, keyFile string) (*tls.Config, error)
- func LoadCACert(caCertFile string) (*x509.CertPool, error)
- func MaybeServerConfig(certFile, keyFile string) (*tls.Config, error)
- func MaybeServerConfigWithMTLS(certFile, keyFile, mtlsClientCAFile string, mtlsEnabled bool) (*tls.Config, error)
- func ServerConfig(certFile, keyFile string) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientConfig ¶ added in v17.4.0
func ClientConfigWithCACert ¶ added in v17.4.0
func ClientConfigWithCACertKeyPair ¶ added in v17.4.0
func MaybeServerConfig ¶ added in v17.4.0
MaybeServerConfig is like ServerConfig but returns (nil, nil) if certFile and keyFile are empty.
func MaybeServerConfigWithMTLS ¶ added in v17.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.