Versions in this module Expand all Collapse all v1 v1.0.13 Jan 26, 2026 Changes in this version + const CACertFile + const CAKeyFile + const DefaultCAValidityDays + const DefaultCertValidityDays + const DefaultCertsDir + const ServerCertFile + const ServerKeyFile + func EnsureCertificates(certPath, keyPath string) (cert, key string, err error) + func GenerateCertificates(paths *CertPaths) error + func GenerateSelfSignedCA() (*ecdsa.PrivateKey, *x509.Certificate, error) + func GenerateServerCert(caKey *ecdsa.PrivateKey, caCert *x509.Certificate) (*ecdsa.PrivateKey, *x509.Certificate, error) + func GetCACertPath(customPath string) (string, error) + func LoadClientTLSConfig(caCertPath string, skipVerify bool) (*tls.Config, error) + func LoadTLSConfig(certPath, keyPath string) (*tls.Config, error) + type CertPaths struct + CACert string + CAKey string + ServerCert string + ServerKey string + func DefaultCertPaths() (*CertPaths, error)