Documentation ¶
Index ¶
- func ClientTSLConfNoVerity() *tls.Config
- func ClientTSLConfVerity(caFile, certFile, keyFile, passwd string) (*tls.Config, error)
- func ClientTSLConfVerityServer(caFile string) (*tls.Config, error)
- func ServerTSLConf(caFile, certFile, keyFile, passwd string) (*tls.Config, error)
- func ServerTSLConfVerity(certFile, keyFile, passwd string) (*tls.Config, error)
- func ServerTSLConfVerityClient(caFile, certFile, keyFile, passwd string) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTSLConfNoVerity ¶
ClientTSLConfNoVerity get a empty tls.Config with insecure skip verify for client side.
func ClientTSLConfVerity ¶
ClientTSLConfVerity receive certs files and return a tls.Config for client side.
func ClientTSLConfVerityServer ¶
ClientTSLConfVerityServer get a new tls.Config and will check given ca for client side.
func ServerTSLConf ¶
ServerTSLConf receive certs files and return a tls.Config for server side.
func ServerTSLConfVerity ¶
ServerTSLConfVerity receive certs files without ca and return a tls.Config for server side.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.