Versions in this module Expand all Collapse all v1 v1.3.5 Oct 13, 2023 v1.3.4 Oct 13, 2023 Changes in this version + func DefaultRootCAPem() []byte + type Cache interface + Get func(host string) *tls.Certificate + Set func(host string, c *tls.Certificate) + type Certificate struct + func NewCertificate(cache Cache, useDefaultPrivateKey ...bool) *Certificate + func (c *Certificate) GenerateCA() (*Pair, error) + func (c *Certificate) GeneratePem(host string, expireDays int, rootCA *x509.Certificate, ...) (*Pair, error) + func (c *Certificate) GenerateTlsConfig(host string) (*tls.Config, error) + type Pair struct + Cert *x509.Certificate + CertBytes []byte + PrivateKey *ecdsa.PrivateKey + PrivateKeyBytes []byte