ssl

package
v0.0.0-...-764f856 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCerts

func GenerateCerts(certInfo map[string]CertInfo, csri util.CertificateSigningRequestInterface, namespace, clusterDomain string, expiration int, autoApproval bool, secrets *v1.Secret) error

GenerateCerts creates an SSL cert and private key

func RecordCertInfo

func RecordCertInfo(certInfo map[string]CertInfo, configVar *model.VariableDefinition) error

RecordCertInfo record cert information for later generation

Types

type CertInfo

type CertInfo struct {
	PrivateKeyName  string // Name to associate with private key
	CertificateName string // Name to associate with certificate
	IsAuthority     bool
	KubeCACertFile  string
	CAName          string

	SubjectNames []string
	RoleName     string

	Certificate []byte
	PrivateKey  []byte

	CSRName string // Name of kube csr
}

CertInfo contains all the information required to generate an SSL cert

Jump to

Keyboard shortcuts

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