zcerts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certs

type Certs struct {
	CertFile, KeyFile string
}

func Make

func Make(option ...Option) (*Certs, error)

type Option

type Option func(*certsConfig)

********************************auto generate****************************** Option is a certsConfig configurator to be supplied to newcertsConfig() function.

func WithCerts

func WithCerts(certs Certs) Option

WithCerts sets the Certs

func WithParentCert

func WithParentCert(template x509.Certificate) Option

WithParentCert sets the arentCert

func WithSubject

func WithSubject(subject pkix.Name) Option

WithSubject sets the Subject

func WithTemplate

func WithTemplate(template x509.Certificate) Option

WithTemplate sets the Template

Jump to

Keyboard shortcuts

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