Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option applies a modification on a tls.Config.
func CA ¶
CA adds CA certificate from file to tls.Config. If not using this Option, then TLS will be using the host's root CA set.
func SkipServerVerification ¶
func SkipServerVerification() Option
SkipServerVerification turns off verification of server's certificate chain and host name.
Click to show internal directories.
Click to hide internal directories.