Versions in this module Expand all Collapse all v2 v2.0.0 Aug 1, 2022 Changes in this version + func GetHTTPSClient(cas []*x509.Certificate) (*http.Client, error) + type CertManager struct + func NewCertManager(cas []*x509.Certificate, ...) (*CertManager, error) + func NewCertManagerFromConfiguration(config Config) (*CertManager, error) + func (a *CertManager) Close() + func (a *CertManager) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error) + func (a *CertManager) GetCertificateAuthorities() []*x509.Certificate + func (a *CertManager) GetClientCertificate(*tls.CertificateRequestInfo) (*tls.Certificate, error) + func (a *CertManager) GetClientTLSConfig() *tls.Config + func (a *CertManager) GetLeaf() *x509.Certificate + func (a *CertManager) GetServerTLSConfig() *tls.Config + func (a *CertManager) NeedsRenewal() bool + func (a *CertManager) NextRenewal() time.Time + func (a *CertManager) ObtainCertificate() error + func (a *CertManager) RenewCertificate() error + type Certifier = interface + Obtain func(request certificate.ObtainRequest) (*certificate.Resource, error) + Renew func(certRes certificate.Resource, bundle, mustStaple bool) (*certificate.Resource, error) + type Client = interface + Certificate func() Certifier + type Config struct + CADirURL string + CAPool string + ChallengeListenPort uint16 + DisableVerifyClientCertificate bool + Domains []string + Email string + TickFrequency time.Duration + UseSystemCertPool bool + type LegoUser struct + func NewUser(email string, key crypto.PrivateKey) *LegoUser + func (l *LegoUser) GetEmail() string + func (l *LegoUser) GetPrivateKey() crypto.PrivateKey + func (l *LegoUser) GetRegistration() *registration.Resource + func (l *LegoUser) SetRegistration(r *registration.Resource)