» HTTP request DNS Challenge Provider

The httpreq DNS challenge provider can be used to perform DNS challenges for the acme_certificate resource with HTTP request.

For complete information on how to use this provider with the acme_certifiate resource, see here.

» Example

resource "acme_certificate" "certificate" {
  ...

  dns_challenge {
    provider = "httpreq"
  }
}

» Argument Reference

The following arguments can be either passed as environment variables, or directly through the config block in the dns_challenge argument in the acme_certificate resource. For more details, see here.

In addition, arguments can also be stored in a local file, with the path supplied by supplying the argument with the _FILE suffix. See here for more information.

» Description

The server must provide:

The URL of the server must be define by HTTPREQ_ENDPOINT.

» Mode

There are 2 modes (HTTPREQ_MODE):

  • default mode: json { "fqdn": "_acme-challenge.domain.", "value": "LHDhK3oGRvkiefQnx7OOczTY5Tic_xZ6HcMOc_gmtoM" }

  • RAW json { "domain": "domain", "token": "token", "keyAuth": "key" }

» Authentication

Basic authentication (optional) can be set with some environment variables:

  • HTTPREQ_USERNAME and HTTPREQ_PASSWORD
  • both values must be set, otherwise basic authentication is not defined.