#1 2024-04-19 17:37:31

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

ACME example

Hi, after a long time I back to write a post, I want to know if is there any example/demo of ACME.

And, it's supported DNS challenge ?

Thanks in advance.

Esteban

Last edited by EMartin (2024-04-19 17:47:11)


Esteban

Offline

#2 2024-04-19 19:26:09

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: ACME example

No sample yet.

There is no DNS challenge, only HTTP challenge.

Offline

#3 2024-04-19 20:06:57

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

Re: ACME example

Thanks @ab !


Esteban

Offline

#4 2024-04-20 06:48:10

Chaa
Member
Registered: 2011-03-26
Posts: 245

Re: ACME example

For DNS challenge we need to change DNS server configuration, and provide DNS record with Key:

_acme-challenge.www.example.org. 300 IN TXT "gfj9Xq...Rg85nM"

You can change in TAcmeClient.CreateOrder line from "if v2[0].Idem('HTTP-01') then" to "if v2[0].Idem('DNS-01') then" and use OnChallenges callback.

In callback modify your DNS server configuration to provide DNS record.

If this works for you, we can in mORMot add TAcmeClient.ChallengeType property (or change TAcmeChallenge record and add DnsUrl, DnsToken and DnsKey fields).

Last edited by Chaa (2024-04-20 07:00:58)

Offline

#5 2024-04-22 19:37:37

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

Re: ACME example

Thanks @chaa, first I'll try with http-01.


Esteban

Offline

Board footer

Powered by FluxBB