cert

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Certificate []byte
	PrivateKey  []byte
}

func GenerateCertificate

func GenerateCertificate(opts ...Options) (*Certificate, error)

func GenerateCertificateCache

func GenerateCertificateCache() (*Certificate, error)

type Options

type Options func(*options)

func WithDNSNames

func WithDNSNames(dnsNames ...string) Options

func WithIPs

func WithIPs(ips ...string) Options

func WithNotAfter

func WithNotAfter(notAfter time.Duration) Options

func WithOrganization

func WithOrganization(organizations ...string) Options

Jump to

Keyboard shortcuts

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