Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCert ¶
type AutoCert struct {
// Acme directory Url
// If nil, uses `acme.LETSENCRYPT_STAGING`
DirectoryURL string
// A function to check whether a host is allowed or not
// If nil, all hosts allowed
// Use `WhitelistHosts(hosts ...string)` for a simple white list of hostnames
HostCheck HostCheck
// Cache dir to store account data and certificates
// If nil, does not write cache data to file
CacheDir string
// When using a staging environment, include a root certificate for verification purposes
RootCert string
// contains filtered or unexported fields
}
AutoCert is a stateful certificate manager for issuing certificates on connecting hosts
func (*AutoCert) GetCertificate ¶
func (m *AutoCert) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate implements a tls.Config.GetCertificate hook
Click to show internal directories.
Click to hide internal directories.