Documentation
¶
Overview ¶
Package acme implements an automatically renewing acme wildcard certificate generation implementation that performs rolling updates on the http.Server.
It uses interactsh built-in DNS server for DNS challenges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(certFile, keyFile, email, domains string, txtCallback TXTUpdateCallback) error
Generate generates new certificates based on provided info
Types ¶
type AutoTLS ¶
type AutoTLS struct {
// contains filtered or unexported fields
}
AutoTLS is a client for daily update checked ACME TLS
func NewAutomaticTLS ¶
func NewAutomaticTLS(email, domains string, txtCallback TXTUpdateCallback) (*AutoTLS, error)
NewAutomaticTLS returns a new auto-tls ACME DNS based client
func (*AutoTLS) GetCertificateFunc ¶
func (kpr *AutoTLS) GetCertificateFunc() func(*tls.ClientHelloInfo) (*tls.Certificate, error)
type CertRefreshFunc ¶
type CertRefreshFunc func(email, domains string, txtCallback TXTUpdateCallback) error
type TXTUpdateCallback ¶
type TXTUpdateCallback func(value string)
TXTUpdateCallback is called when a TXT value is to be updated
Click to show internal directories.
Click to hide internal directories.