ssl

package
v0.0.0-...-32b710e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0, BSD-3-Clause, 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