Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenewExistingCert ¶
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 ¶
func (r *CertsAPIRenewal) Renew(cfg *certutil.Config) (*x509.Certificate, crypto.Signer, error)
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 ¶
func (r *FileRenewal) Renew(cfg *certutil.Config) (*x509.Certificate, crypto.Signer, error)
Renew takes a certificate using the cert and key
type Interface ¶
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 crypto.Signer) Interface
NewFileRenewal takes a certificate pair to construct the Interface.
Click to show internal directories.
Click to hide internal directories.