Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAndSave ¶
GenerateAndSave generate CA private key and CA certificate and dump them to file
Types ¶
type CertsStorage ¶
type CertsStorage interface { Get(key string) (*tls.Certificate, bool) Set(key string, cert *tls.Certificate) }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetOrCreateCert ¶
func (*Config) GetRootCA ¶
func (c *Config) GetRootCA() *x509.Certificate
func (*Config) NewTLSConfigForHost ¶
func (*Config) SetValidity ¶
type DomainTrieCertsStorage ¶
type DomainTrieCertsStorage struct {
// contains filtered or unexported fields
}
DomainTrieCertsStorage cache wildcard certificates
func NewDomainTrieCertsStorage ¶
func NewDomainTrieCertsStorage() *DomainTrieCertsStorage
func (*DomainTrieCertsStorage) Get ¶
func (c *DomainTrieCertsStorage) Get(key string) (*tls.Certificate, bool)
Get gets the certificate from the storage
func (*DomainTrieCertsStorage) Set ¶
func (c *DomainTrieCertsStorage) Set(key string, cert *tls.Certificate)
Set saves the certificate to the storage
Click to show internal directories.
Click to hide internal directories.