Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles TLS certificate lifecycle.
Supported modes (CertConfig.CertMode):
- "http" — ACME HTTP-01 challenge via certmagic (needs port 80).
- "dns" — ACME DNS-01 challenge via certmagic + libdns provider.
- "self" — Self-signed certificate generated in memory.
- "file" — User-provided certificate and key file paths (CertFile/KeyFile).
- "content" — Certificate and key PEM content pushed from the panel.
- "none" — No TLS. The node will handle plain connections.
All modes normalise to in-memory PEM. Kernels never see file paths — they always receive PEM bytes via TLSCert().
Priority Logic (when CertMode is empty):
- "http" (if auto_tls is true)
- "content" (if both CertContent and KeyContent are provided)
- "file" (if both CertFile and KeyFile paths are provided)
- "none" (default)
func NewManager ¶
func NewManager(cfg config.CertConfig) *Manager
NewManager creates a certificate manager.
func (*Manager) CertRenewed ¶
func (*Manager) Reconfigure ¶
Reconfigure applies a new cert configuration at runtime (e.g. from panel push). Returns true when the PEM material changed (caller should restart kernel).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dnsproviders is a registry of DNS providers usable for ACME DNS-01 challenges.
|
Package dnsproviders is a registry of DNS providers usable for ACME DNS-01 challenges. |
Click to show internal directories.
Click to hide internal directories.