Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACME ¶
type ACME struct {
// contains filtered or unexported fields
}
The ACME object implements the ACME protocol machinery, and can be used to create and renew certificates. It also serves as an HTTP handler to satisfy http-01 validation requests.
type Cert ¶
func (*Cert) TLSCertificate ¶
func (c *Cert) TLSCertificate() (*tls.Certificate, error)
type Manager ¶
type Manager struct { *ACME // contains filtered or unexported fields }
A Manager is responsible for a single SSL certificate (which may have multiple names). It will store the certificate itself, and the ACME state, on etcd, so that it is replicated to all HTTPS servers.
Renewal is handled via (internal) cron jobs, with random schedules to avoid having to implement leader-election for such a simple task.
func NewManager ¶
func (*Manager) GetCertificate ¶
func (m *Manager) GetCertificate(_ *tls.ClientHelloInfo) (*tls.Certificate, error)
Click to show internal directories.
Click to hide internal directories.