Available on crate feature
acme only.Modules§
- dns_api
- DNS-01 records through DNS provider APIs: Cloudflare (an API token with
DNS edit permission; Zone read too unless
dns_zone_idis set) and Amazon Route 53 (requests signed with AWS Signature Version 4, credentials from the standardAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY/AWS_SESSION_TOKEN). The zone is configured (dns_zone_id) or found by asking the API for each parent of the record name in turn. The API base URL can be replaced (dns_api_url) — CI points both at a mock that writes into BIND. - on_
demand - On-demand TLS (
[acme] on_demand = true): a certificate is ordered at the first TLS handshake for a name nobody configured — a customer’s own domain pointed at a SaaS — once theon_demand_askendpoint allows it (GET <ask>?domain=<name>answering 2xx). - tls_
alpn - TLS-ALPN-01 (RFC 8737): the CA opens a TLS connection to the domain’s
port 443 offering only the ALPN protocol
acme-tls/1, and rws answers with a self-signed certificate for the domain carrying the criticalid-pe-acmeIdentifierextension: SHA-256 of the key authorization. No port 80, no DNS access.
Structs§
- Acme
Config - ACME provisioning configuration.
- Acme
Manager - Manages the ACME lifecycle: initial provisioning and automatic renewal.
- DnsConfig
- DNS-01 settings.
- Tsig
- A TSIG key: its name, algorithm and secret.
Enums§
- Challenge
Type - The ACME challenge rws answers (RFC 8555 §8, RFC 8737).
- DnsProvider
- How DNS-01 records are published.
Constants§
- STATE_
DIR - Where ACME keeps its files when no path is configured (relative to the working directory, but a dot-directory: never served).
Functions§
- renewal_
status - Whether the renewal loop runs, and its last outcome
(time, outcome). - request_
renewal - Ask the running renewal loop to order a new certificate now;
falsewhen no loop runs (ACME isn’t configured).