pki

package
v0.0.0-...-6bdf688 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePKIAssets

func CreatePKIAssets(pkiPath string, cfg *Configuration) (*rsa.PrivateKey, *x509.Certificate, error)

CreatePKIAssets will create and write to disk all PKI assets necessary to establish the control plane. It first generates a self-signed CA certificate, a server certificate (signed by the CA) and a key for signing service account tokens. It returns CA key and certificate, which is convenient for use with client config funcs.

Types

type Configuration

type Configuration struct {
	AdvertiseAddresses []string
	ExternalDNSNames   []string
	ExtantCA           bool
}

Jump to

Keyboard shortcuts

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