tls

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CAFile             string // The CA cert to use for the targets.
	CertFile           string // The client cert file for the targets.
	KeyFile            string // The client key file for the targets.
	ServerName         string // Used to verify the hostname for the targets.
	InsecureSkipVerify bool   // Disable target certificate validation.
}

Config configures the options for TLS connections.

func (*Config) Connect

func (c *Config) Connect(host string) (*tls.Conn, error)

Connect todo

func (*Config) NewTLSConfig

func (c *Config) NewTLSConfig() (*tls.Config, error)

NewTLSConfig creates a new tls.Config from the given

Jump to

Keyboard shortcuts

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