Versions in this module Expand all Collapse all v1 v1.1.0 Sep 12, 2023 Changes in this version + func GenerateCerts(domains ...string) ([]byte, []byte, error) + func GenerateCertsToFile(certFile, keyFile string) error + func GenerateCertsToTempFile(dir string) (string, string, error) + type CertificateAuthority struct + func NewCA() *CertificateAuthority + func (ca *CertificateAuthority) CertPool() *x509.CertPool + func (ca *CertificateAuthority) NewKeyPair(domains ...string) (*KeyPair, error) + func (ca *CertificateAuthority) PrivateKey() []byte + func (ca *CertificateAuthority) PublicKey() []byte + func (ca *CertificateAuthority) ToFile(certFile, keyFile string) error + func (ca *CertificateAuthority) ToTempFile(dir string) (*os.File, *os.File, error) + type KeyPair struct + func (kp *KeyPair) PrivateKey() []byte + func (kp *KeyPair) PublicKey() []byte + func (kp *KeyPair) ToFile(certFile, keyFile string) error + func (kp *KeyPair) ToTempFile(dir string) (*os.File, *os.File, error)