Skip to main content

Module acme

Module acme 

Source

Structs§

AcmeStatusInfo

Enums§

AcmeState

Constants§

ACME_DASHBOARD_HTML
ACME Status Dashboard HTML template. The placeholder __ACME_DATA__ is replaced with the current ACME status JSON at render time.

Functions§

check_and_renew
Check if a certificate exists and is valid. Returns true if renewal was performed.
get_acme_status
Get ACME/TLS status as JSON for the API endpoint.
get_challenge_response
provision_certificate
Provision a Let’s Encrypt certificate for a domain. The proxy must be running on port 80 to serve HTTP-01 challenges.
start_acme_background
Start background ACME provisioning and renewal. Runs initial check after a short delay (to let proxy start), then every 24h. After provisioning/renewal, hot-reloads the proxy’s TLS config automatically. If provisioning with subdomains fails, retries with bare domain only.