tlsconfig

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keygen

func Keygen() (err error)

func New

func New(opts ...Option) *tls.Config

Types

type Option

type Option func(cf *tls.Config)

func CA

func CA(cert string) Option

func CertKeyPair

func CertKeyPair(cert string, key string) Option

func ClientAuth

func ClientAuth(t tls.ClientAuthType) Option

func ClientAuthVerified

func ClientAuthVerified() Option

func ClientCA

func ClientCA(cert string) Option

func ServerAuthSkip

func ServerAuthSkip() Option

Jump to

Keyboard shortcuts

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