Versions in this module Expand all Collapse all v0 v0.2.0 Feb 21, 2022 v0.1.0 Jan 5, 2022 Changes in this version + func EncodeCertPEM(ct *x509.Certificate) []byte + func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte + func NewPrivateKey() (*rsa.PrivateKey, error) + func NewSignedCert(cfg cert.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func ServiceToCommonName(serviceNamespace, serviceName string) string + func ValidCACert(key, cert, caCert []byte, dnsName string, time time.Time) bool + type Artifacts struct + CACert []byte + CAKey []byte + Cert []byte + Key []byte + ResourceVersion string + type CertGenerator interface + Generate func(CommonName string) (*Artifacts, error) + SetCA func(caKey, caCert []byte) + type SelfSignedCertGenerator struct + func (cp *SelfSignedCertGenerator) Generate(commonName string) (*Artifacts, error) + func (cp *SelfSignedCertGenerator) SetCA(caKey, caCert []byte)