Skip to content

ACME DNS 01 Challenge

Endi S. Dewata edited this page Nov 2, 2026 · 4 revisions

Overview

The ACME Responder supports domain validation using DNS-01 challenge as described in RFC 8555.

Workflow

   +-------------------+                        +-------------------+
   |                   |--(1) Request Order---->|                   |
   |    ACME Client    |                        |    ACME Server    |
   |  (e.g., Certbot)  |<-(2) Cryptographic-----|    (e.g., CA)     |
   +-------------------+      Challenge Token   +-------------------+
             |                                                |
   (3) Update TXT Record via API                              |
             v                                                |
   +-------------------+                                      |
   |    DNS Provider   |                                      |
   | (e.g., Cloudflare,|                                      |
   |  AWS Route 53)    |<-------(4) Perform DNS Lookup--------+
   +-------------------+       _://yourdomain.com
  • The ACME client requests a certificate for a domain from the ACME responder.

  • The ACME responder generates a token and responds with a DNS-01 challenge.

  • The ACME client uses the token and the account key to create a key authorization.

  • The ACME client creates a TXT record in DNS to stores the key authorization.

  • The ACME client notifies the ACME responder that it is ready for validation.

  • The ACME responder retrieves the TXT record from DNS.

  • The ACME responder validates the key authorization.

  • The ACME responder issues an actual certificate.

  • The ACME client retrieves the actual certificate.

Certbot

To enroll a certificate with manual DNS-01 validation, execute the following command:

$ certbot certonly --manual \
    --server http://$HOSTNAME:8080/acme/directory \
    -d pki.example.com \
    --preferred-challenges dns

To enroll a wildcard certificate with manual DNS-01 validation, execute the following command:

$ certbot certonly --manual \
    --server http://$HOSTNAME:8080/acme/directory \
    -d *.example.com \
    --preferred-challenges dns

Create a TXT record in the DNS server as instructed by certbot. Check the TXT record propagation with the following command:

$ dig _acme-challenge.<DNS name> TXT

Once the TXT record is propagated properly, complete the enrollment using certbot.

See Also

Clone this wiki locally