common

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CertValidity = time.Hour * 24 * 365
View Source
const EncryptionBits = 4096

Variables

View Source
var (
	// Log for global use
	Log = log.New()
)

Functions

func ExitIfError

func ExitIfError(err error)

ExitIfError will generically handle an error by logging its contents and exiting with a return code of 1.

func GenerateSelfSignedCA added in v0.3.0

func GenerateSelfSignedCA(commonName string) ([]byte, []byte, error)

func GenerateSignedCert added in v0.3.0

func GenerateSignedCert(commonName string, dnsNames []string, caPem []byte, caKey []byte) ([]byte, []byte, error)

func LogIfError

func LogIfError(err error)

func ValidDaysRemaining added in v0.3.0

func ValidDaysRemaining(pem []byte) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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