Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTLSClientConfig ¶
NewTLSClientConfig returns a TLS config for a client connection If caPath is empty, system CAs will be used
func NewTLSConfig ¶
func NewTLSConfig(certPath, keyPath, caPath, serverName string, password string) (tlsConfig *tls.Config, err error)
NewTLSConfig returns a TLS config that includes a certificate Use for Server TLS config or when using a client certificate If caPath is empty, system CAs will be used
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.