Documentation
¶
Overview ¶
Package certs is the node's certificate source (engine.CertSource): ACME for a domain and a persisted self-signed certificate whose SHA-256 pin the panel puts into subscription URIs.
acme_domain uses golang.org/x/crypto/acme/autocert, one Manager per server name, cache in the state dir. The HostPolicy accepts exactly that name. TLS-ALPN-01 is answered by whatever TLS listener asks Cert.GetCertificate (the engine's own TCP 443 listener, see hysteria2), so that listener must be reachable on 443. HTTP-01 is answered on :80 when it is free; otherwise only TLS-ALPN-01 is offered. acme_ip is not supported yet.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// DirectoryURL is the ACME directory; empty means Let's Encrypt production (use staging first).
DirectoryURL string
// HTTPAddr is where HTTP-01 is served; default ":80".
HTTPAddr string
Log *slog.Logger
// contains filtered or unexported fields
}
Source implements engine.CertSource. Create it with New; the exported fields may be set before the first Acquire.
func (*Source) Acquire ¶
Acquire returns the live certificate source for an inbound. Self-signed certificates are created on first use and reused afterwards (same pin). ACME certificates are fetched lazily on the first handshake and in the background right after Acquire; Info is zero until one exists.