DNS-01 & Gandi.net & 'Use a "Throwaway" Validation Domain'

Hello,
I am using Certbot to retrieve certificates for the domain: "mycompagny.fr".
These certificates will be installed on Internet and Intranet sites.
So I need to use the ACME DNS-01 validation method.

Unfortunately I do not have an API to manage the "mycompagny.fr" zone.

On the other hand, I have an account with "Gandi.net" and I'm able to create and manage domain names via their API.
For example, I can create these zones: "acme-mycompagny.fr" or a sub-zone "acme.mycompagny.fr" in the Gandi.net interface.

Is it possible to obtain certificates for "mycompagny.fr" through delegation to the "acme-mycompagny.fr" zone (Gandi.net)?

If yes :

  1. What static records should I declare in the “mycompagny.fr” zone ?
  2. What dynamic records should I add in the “acme-compagny.fr” zone hosted by Gandi.net ?
  3. How to configure Certbot version 2.8.0 with Certbot-plugin-gandi version 1.5.0 to retrieve the certificate: intranet.mycompagny.fr ?

I found these references:

paragraph: 'Use a "Throwaway" Validation Domain'

Thank you for your help.

2 Likes

I have only ever used the certificate manager in pfSense with aliases. It is built on acme.sh. Even if you choose another ACME client, their wiki entry may help you with the concept and structure.

If you choose acme.sh, note that you need to update the configured CA to use Let's Encrypt. They switched their default CA to ZeroSSL in August 2021.

5 Likes

The general idea is to create a CNAME record for _acme-challenge.subdomain.<yourdomain> and point it to a corresponding TXT record (which may not exist yet) in any other zone that you can easily update, then have your client add/update the target TXT record and value, then continue with domain validation as normal.

It does depend on the acme client, because they may need to know how to translate either the full record name or the partial name depending on how DNS provider APIs are implemented (some expect to know the destination zone they are looking up which is different to the domain you are getting the certificate for). In Certify The Web we call it a CNAME delegation rule DNS Validation (dns-01) | Certify The Web Docs

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.