CrushMFT Documentation

Let's Encrypt by DNS#

The LetsEncrypt plugin can prove that a name is yours through DNS: a record in the zone of the name, in place of a call to the server. Nothing has to reach the server from the internet.

Use it for

  • servers the internet cannot reach;
  • certificates for all sub domains at once, *.example.com, which can only be proven this way;
  • several servers behind one name, where a call from outside could land on the wrong one: Let's Encrypt in a cluster.

It does not work for certificates for IP addresses: "ACME does not support DNS challenges for IP addresses."

There are two kinds. dns-01 sets a new record at every renewal, so the server must be able to change your DNS by itself. dns-persist-01 uses one record that you set once, by hand.

dns-01: a record per renewal#

The authority gives the plugin a value. The value must appear as a TXT record named _acme-challenge. and the name: for files.example.com, at _acme-challenge.files.example.com. The authority looks the record up, finds the value, and issues the certificate. The next renewal brings a new value.

The plugin cannot know how your DNS provider is changed. It hands the value to a job of yours, and the job does it.

The job#

In the plugin: Challenge type dns-01, and under Plugin / Job to run with results the job.

The job is given two variables:

Variable Is
{dns_challenge_domain} the name the record is for
{dns_challenge_token} the value to put into the TXT record

What the job does with them depends on the provider:

Your DNS is at The job uses
a provider with a web API: most of them an HTTP task that calls the provider's address for setting a record, with your API key
a DNS server of your own that takes updates an Execute task that runs nsupdate, or a script of yours
a provider with a command line tool an Execute task that runs the tool

Two things a working job has:

  1. It sets the record and then waits until the provider serves it. Providers take from seconds to minutes. A Wait task of a minute or two after the call is the simple way.
  2. It replaces the value of the last time, so that old values do not pile up.

If the job fails, the plugin stops and the log says "ACME: Failed CrushTask/Job".

For a certificate with several names the job is run for each name.

You need to know the API of your DNS provider and how jobs are built: Jobs. This kind is for people who are at home in both.

Do not hand over the whole zone#

The key that the job uses can change DNS records. If your provider can limit a key to one record or one small zone, do that. A common arrangement: make _acme-challenge.files.example.com an alias (CNAME) of a record in a small zone that is used for nothing else, and give the job a key for that zone only.

dns-persist-01: a record that stays#

Here the record does not hold a value of the day. It says, once and for good: "the ACME account with this address may get certificates for this name." You set it by hand, and no renewal changes it. No job is needed and no key to your DNS lies on the server.

Not every authority offers this kind. If yours does not, the plugin says: "The ACME server did not offer a dns-persist-01 challenge for this authorization."

Setting it up#

  1. Challenge type: dns-persist-01.
  2. Press Generate DNS Persist Records. The plugin registers the account at the authority if there is none yet, and shows the records to make: a TXT record at _validation-persist. and the name, with the value to put in. For a certificate for all sub domains the value ends in ; policy=wildcard.
  3. Make those records at your DNS provider, exactly as shown.
  4. DNS Persist ID: the set of records this configuration uses. "Choose the record this configuration uses. Rename or delete records with the row buttons." Load DNS Persist Files shows the sets there are. "Please click 'Generate DNS Persist Records' to create a persist record first."
  5. Wait until the provider serves the records, then Test, then Submit.

From then on the plugin renews without touching DNS: "Triggering validation. Assuming _validation-persist TXT record is already deployed."

What the record is tied to#

The record names your account at the authority. So:

  • Keep the plugin's account files. A new account has another address, and the record must be made again.
  • Test and the real service are two accounts. Records generated for one are not valid for the other.
  • ACME Key Change keeps the account, and the record stays valid.
  • Anybody who gets the account's key can get certificates for the name while the record stands. Guard the server's files, and remove the record when the server is retired.

With both kinds#

  • Turn on Skip all pre-checks (DNS, CrushMFT server, etc) on a server the internet cannot reach: the checks that call the name would fail.
  • A certificate for *.example.com does not cover example.com itself. Put both under Domains.
  • Test first: it shows whether the record is found, without using up your allowance at the authority.

Not tried for this page#

No certificate was requested and no DNS record set. The page is written from the plugin's screen, from what the plugin's file says it does, and for dns-01 from the earlier documentation.