Versions in this module Expand all Collapse all v0 v0.1.0 Jan 5, 2026 Changes in this version + func DefaultCADir() string + func DefaultCertPath() string + func DefaultKeyPath() string + type CA struct + Certificate *x509.Certificate + PrivateKey *ecdsa.PrivateKey + func Load(certPath, keyPath string) (*CA, error) + func LoadFromPEM(certPEM, keyPEM []byte) (*CA, error) + func LoadOrCreate(certPath, keyPath string, cfg *Config) (*CA, error) + func New(cfg *Config) (*CA, error) + func (ca *CA) CertPEM() []byte + func (ca *CA) GenerateCert(domain string) (certPEM, keyPEM []byte, err error) + func (ca *CA) KeyPEM() []byte + func (ca *CA) Save(certPath, keyPath string) error + func (ca *CA) TLSCertificate() (tls.Certificate, error) + type Config struct + CommonName string + Organization string + ValidFor time.Duration + func DefaultConfig() *Config