ssl

package
v1.5.0-alpha.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientTSLConfNoVerity

func ClientTSLConfNoVerity() *tls.Config

ClientTSLConfNoVerity get a empty tls.Config with insecure skip verify for client side.

func ClientTSLConfVerity

func ClientTSLConfVerity(caFile, certFile, keyFile, passwd string) (*tls.Config, error)

ClientTSLConfVerity receive certs files and return a tls.Config for client side.

func ClientTSLConfVerityServer

func ClientTSLConfVerityServer(caFile string) (*tls.Config, error)

ClientTSLConfVerityServer get a new tls.Config and will check given ca for client side.

func ServerTSLConf

func ServerTSLConf(caFile, certFile, keyFile, passwd string) (*tls.Config, error)

ServerTSLConf receive certs files and return a tls.Config for server side.

func ServerTSLConfVerity

func ServerTSLConfVerity(certFile, keyFile, passwd string) (*tls.Config, error)

ServerTSLConfVerity receive certs files without ca and return a tls.Config for server side.

func ServerTSLConfVerityClient

func ServerTSLConfVerityClient(caFile, certFile, keyFile, passwd string) (*tls.Config, error)

ServerTSLConfVerityClient receive certs files with ca and return a tls.Config for server side.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL