cert

package
v0.0.0-...-9802667 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertIfNotExists

func CreateCertIfNotExists(host, certFile, keyFile string, appName string) error

CreateCertIfNotExists verifies that certFile and keyFile exist and are files, and if neither certFile nor keyFile exist, they are automatically created for host

func GenerateCert

func GenerateCert(certFile, keyFile, host, organization string, rsaBits int,
	isCA bool, validFrom time.Time, validFor time.Duration) error

GenerateCert generates a self-signed X.509 certificate for a TLS server. Outputs to certFile and keyFile and will overwrite existing files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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