Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2024 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 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 Generator 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)