renewal

package
v1.12.10-beta.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenewExistingCert

func RenewExistingCert(certsDir, baseName string, impl Interface) error

RenewExistingCert loads a certificate file, uses the renew interface to renew it, and saves the resulting certificate and key over the old one.

Types

type CertsAPIRenewal

type CertsAPIRenewal struct {
	// contains filtered or unexported fields
}

CertsAPIRenewal creates new certificates using the certs API

func (*CertsAPIRenewal) Renew

Renew takes a certificate using the cert and key.

type FileRenewal

type FileRenewal struct {
	// contains filtered or unexported fields
}

FileRenewal renews a certificate using local certs

func (*FileRenewal) Renew

Renew takes a certificate using the cert and key

type Interface

type Interface interface {
	Renew(*certutil.Config) (*x509.Certificate, *rsa.PrivateKey, error)
}

Interface represents a standard way to renew a certificate.

func NewCertsAPIRenawal

func NewCertsAPIRenawal(client kubernetes.Interface) Interface

NewCertsAPIRenawal takes a Kubernetes interface and returns a renewal Interface.

func NewFileRenewal

func NewFileRenewal(caCert *x509.Certificate, caKey *rsa.PrivateKey) Interface

NewFileRenewal takes a certificate pair to construct the Interface.

Jump to

Keyboard shortcuts

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