Re: [Acme] dns-01 challenge limitations

Simon Ser <contact@emersion.fr> Sun, 13 September 2020 09:25 UTC

Return-Path: <contact@emersion.fr>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BB5643A0B92 for <acme@ietfa.amsl.com>; Sun, 13 Sep 2020 02:25:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=emersion.fr
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A-nxw-Cx5fZE for <acme@ietfa.amsl.com>; Sun, 13 Sep 2020 02:25:06 -0700 (PDT)
Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 551483A0B91 for <acme@ietf.org>; Sun, 13 Sep 2020 02:25:06 -0700 (PDT)
Date: Sun, 13 Sep 2020 09:24:57 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1599989104; bh=XtX0pxP2b0l3cjcDHCC92a9zkvC+oHxcc5RqA98H5pw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=MYwewRiVQT8e4/w9evc/C0CmmQPyNS6C0FiVAzd3b9cY92VKk8znPdKTsXWZjRtyX XWkJluoBGnyngnCloYqNpn0tZafdujgJB0BWhopEi/GJiuz0+f29MqlyIA3ret7ZFj 3o6RIBYONGc5iheuiy9/qEKjoQIqhPSE5MBuISPfOS1gfntPU2Q+EV3eHt0hSMyny+ bCpDQkwdjsPHZAHGFA30t2YVFQof/B3E9+TPoDZCJwGawyUaWZNrJBzkCIoyUHwG5b kSppuEi4gOkW2mM2n8PiIzfqZ+2nMAhABGUdNrpMwXz72r/D81VZEbO3SGdX/8D6wz csEb+hOoK5aSw==
To: Michael Richardson <mcr+ietf@sandelman.ca>
From: Simon Ser <contact@emersion.fr>
Cc: "acme\\@ietf.org" <acme@ietf.org>, "Matthew.Holt\\@gmail.com" <Matthew.Holt@gmail.com>
Reply-To: Simon Ser <contact@emersion.fr>
Message-ID: <lp_PV1Faiz60HayUqYhD_DtpPHgiEVhFMSeBPicOw9XsiDkG_6S6CmbqqD1CNqy5nN44FlX7BPZ0N4cQRksC2ZG7UmKhzE-HCnPJelNvhaE=@emersion.fr>
In-Reply-To: <28079.1599844001@localhost>
References: <uu-OR5wP1b7svN1Rxems1U8_axHG7M8M9_kYqTBVyhQFxqrddppvhasyxKtLQ-4AZkrbBWhJ_9V-Xs8mQBK5E4smP4_1vANgZazIwicsbq0=@emersion.fr> <28079.1599844001@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/KSbMhe9Kz3tBhtUCORUjD7rMayM>
Subject: Re: [Acme] dns-01 challenge limitations
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 13 Sep 2020 09:25:09 -0000

On Friday, September 11, 2020 7:06 PM, Michael Richardson <mcr+ietf@sandelman.ca> wrote:

> Simon Ser <contact@emersion.fr> wrote:
>     > dns-01 requires the ACME client to complete the challenge by updating a DNS
>     > record. This is bothersome because this often requires interacting with the
>     > DNS registry operator. This is typically done via vendor-specific APIs, with
>     > access control handled via vendor-specific means (tokens, public keys,
>     > etc).
>
> I guess if you've hosted your zone with the registrar, then that might be
> true.  my opinion: Don't do that.
>
> Host your own zone, and/or use Dynamic DNS update (RFC3007), which is mature technology.
> There are some annoyances with TSIG until you realize that the key name
> really matters.

That sounds like the most reasonable way to solve the dns-01 challenge indeed.
The self-hosted zome can even be limited to just _acme-challenge.

I'm still wondering whether dns-01 is an absolutely necessary evil (see other
replies).

>     > For instance, it would be possible to require users to add a short public key
>     > in a DNS TXT record, then ask the ACME client to sign challenges with that key.
>     > Something like this would significantly ease the development of ACME
>     > clients.
>
> So, this would be be a client key challenge.
> This would not be dns-01.  It could certainly work, but it would be a new effort.
> Maybe we could use SIG(0), I'm not sure.

Yes, this wouldn't be dns-01 or dns-02, it would be a completely separate
thing.

> The question would be whether or not it would get implemented.

Yes, this is why I'm writing to this mailing list. Maybe I should've CC'ed some
Let's Encrypt specific mailing list as well.

>     > Are there specific reasons why dns-01 requires updating a DNS record?
>
> Yes, because it proves you control the zone.

Right, but there could be other ways to prove this as well.