certrequester

package
v0.0.0-...-4380e07 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificate

func GetCertificate(ctx context.Context, clientset clientset.Interface, cfgPath, certPath, keyPath string) error

GetCertificate creates a CSR that needs to be approved and signed by a specific signer. The certificate and private key are then dumped to certPath and keyPath respectively.

Types

type CSRConfig

type CSRConfig struct {
	Name      string
	Subject   pkix.Name
	DNSSANs   []string
	IPSANs    []net.IP
	KeyUsages []certificatesv1.KeyUsage
}

CSRConfig describes the CSR

type Config

type Config struct {
	CSR         CSRConfig
	Signer      string
	WaitTimeout util.Duration
}

Config describes the CSR and selects a specific Signer

Jump to

Keyboard shortcuts

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