Letsencrypt_dns.Makemodule S : Letsencrypt.Client.Sinclude sig ... endtype solver = Letsencrypt.Client.Solver(S).solver = {challenge : Letsencrypt.Client.challenge;solve_challenge : token:string ->
key_authorization:string ->
[ `host ] Domain_name.t ->
(unit, [ `Msg of string ]) Stdlib.result S.t;}val print_http : solverval print_alpn : solverval dns_solver :
([ `raw ] Domain_name.t ->
string ->
(unit, [ `Msg of string ]) Stdlib.result S.t) ->
solverdns_solver (fun domain content) is a solver for dns-01 challenges. The provided function should return Ok () once the authoritative name servers serve a TXT record at domain with the content. The domain already has the _acme-challenge. prepended.
val print_dns : solverprint_dns outputs the DNS challenge solution, and waits for user input before continuing with ACME.
val nsupdate :
?proto:Dns.proto ->
int ->
(unit -> Ptime.t) ->
(string -> (unit, [ `Msg of string ]) Stdlib.result S.t) ->
?recv:(unit -> (string, [ `Msg of string ]) Stdlib.result S.t) ->
zone:[ `host ] Domain_name.t ->
keyname:'a Domain_name.t ->
Dns.Dnskey.t ->
solvernsupdate ~proto id now send ~recv ~keyname key ~zone constructs a dns solver that sends a DNS update packet (using send) and optionally waits for a signed reply (using recv if present) to solve challenges. The update is signed with a hmac transaction signature (DNS TSIG) using now () as timestamp, and the keyname and key for the cryptographic material. The zone is the one to be used in the query section of the update packet. If signing, sending, or receiving fails, the error is reported.