tls

package
v0.0.0-...-d6600ca Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrefixDriectory Directory Prefix where certs are generated
	PrefixDriectory = "/tmp"
	// PublicKeyNameSuffix is the name of the public key file to be generated
	PublicKeyNameSuffix = ".CAcert.pem"
	// PrivateKeyNameSuffix is the name of the private key file to be generated
	PrivateKeyNameSuffix = ".CAkey.pem"
	// CAName is the name of the CA and host for the generated key pair
	CommonName = "0.0.0.0"
	// Years for CA cert to be valid
	Years = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Public  string
	Private string
}

Certificate contains information

func GenCert

func GenCert() (*Certificate, error)

GenCert generate a self signed cert

Jump to

Keyboard shortcuts

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