4.3.2.2 LetsEncrypt DNS challenge in production
Previous4.3.2.1 LetsEncrypt https challenge in development environmentsNext4.3.2.3 Static TLS certificates
Last updated
traefik:
.. <locate the environment and command block and make the following edits>
environment:
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN}
command:
- --certificatesresolvers.certResolver.acme.dnschallenge=true
- --certificatesresolvers.certResolver.acme.dnschallenge.provider=cloudflare
- --certificatesresolvers.certResolver.acme.email=<your email address>
- --certificatesresolvers.certResolver.acme.storage=acme.jsonsudo certbot certonly --manual -d <your-domain> -d '*.<your-domain>'Please deploy a DNS TXT record under the name:
_acme-challenge.<your-domain>.
with the following value:
<TXT RECORD VALUE HERE>
Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.<your-domain>.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.