tls

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Config uses session.Registry to generate tls.Config's dynamically for each session. E.g. some session will require client cert authentication.

func NewConfig

func NewConfig(certPEM, keyPEM []byte, registry *session.Registry) (*Config, error)

NewConfig returns a new Config with a certificate or an error if the default certificate cannot be loaded.

func (*Config) GetDefaultConfig

func (c *Config) GetDefaultConfig() *tls.Config

GetDefaultConfig returns the default tls.Config

Jump to

Keyboard shortcuts

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