Expand description
Central configuration hub and certificate lifecycle management.
This module provides the Config struct, which is the primary entry
point for managing TLS certificates. It coordinates certificate
obtainment, renewal, revocation, and caching across multiple issuers
and a persistent storage backend.
§Usage
ⓘ
use certon::config::Config;
let config = Config::builder()
.storage(my_storage)
.build();
config.manage_sync(&["example.com".into()]).await?;Structs§
- Config
- Central configuration for automatic TLS certificate management.
- Config
Builder - Builder for constructing a
Configwith sensible defaults.
Enums§
- Issuer
Policy - Controls how issuers are selected when obtaining or renewing certificates.
Constants§
- EVENT_
CACHED_ MANAGED_ CERT - Event emitted when a managed certificate is cached (loaded from storage
into the in-memory
CertCache). - EVENT_
CERT_ FAILED - Event emitted when a certificate obtain or renewal operation failed.
- EVENT_
CERT_ OBTAINED - Event emitted when a certificate has been successfully obtained.
- EVENT_
CERT_ OBTAINING - Event emitted when a certificate obtain operation begins.
- EVENT_
CERT_ RENEWED - Event emitted when a certificate has been successfully renewed.
- EVENT_
CERT_ REVOKED - Event emitted when a certificate has been revoked.
Traits§
- Certificate
Selector - Trait for custom certificate selection logic during TLS handshakes.