Skip to content

DNS-01 Handler

lacme.challenges.dns01

DNS-01 challenge handler (RFC 8555 ยง8.4).

Computes the _acme-challenge TXT record name and base64url-encoded SHA-256 digest of the key authorization, delegates record creation and deletion to a pluggable :class:DNSProvider, and optionally polls a propagation checker before returning from :meth:DNS01Handler.provision.

DNS01Handler

DNS-01 challenge handler.

Satisfies :class:~lacme.challenges.ChallengeHandler.

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

Remove the _acme-challenge TXT record.

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

Create the _acme-challenge TXT record and wait for propagation.

DNSProvider

Bases: Protocol

Protocol for DNS record backends used by :class:DNS01Handler.

create_txt_record async
create_txt_record(domain: str, value: str) -> None

Create a TXT record for domain with value.

delete_txt_record async
delete_txt_record(domain: str, value: str) -> None

Delete a TXT record for domain with value.