tls

package
v0.0.0-...-9633304 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: GPL-3.0 Imports: 8 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 {
	KeyFile  string
	CertFile string
}

func New

func New(keyfile, certfile string) *Config

func (*Config) CertificateExist

func (c *Config) CertificateExist() bool

func (*Config) CreateSelfSignedCertificate

func (c *Config) CreateSelfSignedCertificate(cn string, duration int) error

func (*Config) IsCertificateExpire

func (c *Config) IsCertificateExpire() bool

Jump to

Keyboard shortcuts

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