tls

package
v0.0.1-0...-ef6af33 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Organization       string
	CommonName         string
	ValidSinceDuration string
	NotBefore          time.Time
	ValidForDuration   string
	NotAfter           time.Time
	DNSNames           []string
	SignedCerts        []*Cert
	IsCa               bool
	K8sSecretName      string
}

func (*Cert) Generate

func (c *Cert) Generate() (*CertKeyPair, error)

func (*Cert) SetDefaults

func (c *Cert) SetDefaults() []string

type CertKeyPair

type CertKeyPair struct {
	CertPem string
	CertKey string
}

type RootCaPair

type RootCaPair struct {
	CertPem string
	CertKey string
}

Jump to

Keyboard shortcuts

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