Repository navigation
ACME DNS 01 Challenge
The ACME Responder supports domain validation using DNS-01 challenge as described in RFC 8555.
+-------------------+ +-------------------+
| |--(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.
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 dnsTo 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 dnsCreate 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> TXTOnce the TXT record is propagated properly, complete the enrollment using certbot.
|
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |