cert

package
v0.0.0-...-77610c5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOrgName      = "Random Organisation"
	DefaultCommonName   = "domain.invalid"
	DefaultExpiryPeriod = 24 * time.Hour
)

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(opts Options) (cert []byte, privKey crypto.PrivateKey)

Types

type Options

type Options struct {
	OrgName    string
	CommonName string
	Expiry     time.Time
	PrivateKey crypto.PrivateKey
}

Jump to

Keyboard shortcuts

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