Versions in this module Expand all Collapse all v0 v0.2.4 Aug 1, 2022 Changes in this version + const CertificateBlockType + const Static + func GenCA() (*x509.Certificate, crypto.Signer, error) + func IsStatic(secret *v1.Secret) bool + func LoadCA(caPem, caKey []byte) (*x509.Certificate, crypto.Signer, error) + func LoadCerts(certFile, keyFile string) (*x509.Certificate, crypto.Signer, error) + func LoadOrGenCA() (*x509.Certificate, crypto.Signer, error) + func Marshal(x509Cert *x509.Certificate, privateKey crypto.Signer) ([]byte, []byte, error) + func NeedsUpdate(maxSANs int, secret *v1.Secret, cn ...string) bool + func NewPrivateKey() (crypto.Signer, error) + func NewSelfSignedCACert(key crypto.Signer, cn string, org ...string) (*x509.Certificate, error) + func NewSignedCert(signer crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer, cn string, ...) (*x509.Certificate, error) + func NewSignedClientCert(signer crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer, cn string) (*x509.Certificate, error) + func ParseCertPEM(pemCerts []byte) (*x509.Certificate, error) + type TLS struct + CACert *x509.Certificate + CAKey crypto.Signer + CN string + FilterCN func(...string) []string + Organization []string + func (t *TLS) AddCN(secret *v1.Secret, cn ...string) (*v1.Secret, bool, error) + func (t *TLS) Filter(cn ...string) []string + func (t *TLS) Merge(target, additional *v1.Secret) (*v1.Secret, bool, error) + func (t *TLS) Renew(secret *v1.Secret) (*v1.Secret, error) v0.2.3-k3s Aug 3, 2022