Skip to content

Challenges

lacme.challenges

ACME challenge handlers.

Defines the :class:ChallengeHandler protocol implemented by :class:~lacme.challenges.http01.HTTP01Handler and :class:~lacme.challenges.dns01.DNS01Handler.

ChallengeHandler

Bases: Protocol

Protocol for ACME challenge provisioning and cleanup.

deprovision async
deprovision(domain: str, token: str) -> None

Remove the challenge response after validation completes.

provision async
provision(domain: str, token: str, key_authorization: str) -> None

Make the challenge response available for validation.

ChallengeMap

Bases: Protocol

Read-only per-identifier async challenge-handler overrides.

items
items() -> Iterable[tuple[IdentifierValue, tuple[str, ChallengeHandler]]]

Iterate over identifier challenge overrides.