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
type FileRenewal ¶
type FileRenewal struct {
// contains filtered or unexported fields
}
FileRenewal renews a certificate using local certs
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.
Click to show internal directories.
Click to hide internal directories.