[Acme] acme-scoped-dns-challenges: account hash

Richard Körber <acme2@ml.shredzone.de> Sat, 16 March 2024 11:19 UTC

Return-Path: <acme2@ml.shredzone.de>
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 93A8CC14F5E9 for <acme@ietfa.amsl.com>; Sat, 16 Mar 2024 04:19:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=i7o.de
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JoP9-4cxi2ag for <acme@ietfa.amsl.com>; Sat, 16 Mar 2024 04:19:08 -0700 (PDT)
Received: from i7o.de (i7o.de [95.216.117.94]) (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 69424C14F5F6 for <acme@ietf.org>; Sat, 16 Mar 2024 04:19:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=i7o.de; s=dkim_1; h=Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iT14mAwUk6mms+0MqJ2T6dugnSfpAOSZcvBLlbKWYHk=; b=iOs2kC9qvTwFx1sajbSvkZF/EY dt+Cani0bLqau8+aKFm3P1KhLbISPbNi02+2MMHuVjF3wrVwPRGPVI0Bs/S95w6bOs65AzpjoHZt3 BUmxZYtLbE3pgze1B1ROohZ91cit9KuWE+KhfJhyr7CgcAfy2XIYF13MLVYBTmtXUeXo=;
Received: from p5ddd7d4a.dip0.t-ipconnect.de ([93.221.125.74] helo=[192.168.0.17]) by i7o.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from <acme2@ml.shredzone.de>) id 1rlS47-0000GK-Tf for acme@ietf.org; Sat, 16 Mar 2024 12:19:03 +0100
Message-ID: <7de8d083-2935-4e8a-932d-c834eb90be70@ml.shredzone.de>
Date: Sat, 16 Mar 2024 12:19:03 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: IETF ACME <acme@ietf.org>
From: Richard Körber <acme2@ml.shredzone.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/FY-bUKPaF1Go36lak3Z4JcVrAM0>
Subject: [Acme] acme-scoped-dns-challenges: account hash
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.39
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: Sat, 16 Mar 2024 11:19:13 -0000

Hello!

In section 4 of draft-ietf-acme-scoped-dns-challenges-00, an example is 
given about how to calculate the hash of the account resource URL.

The example gives this account URL: "https://example.com/acme/acct/"

According to the example, the result of the 
"base32(SHA-256(<ACCOUNT_RESOURCE_URL>)[0:10])" operation is supposed to 
be "ujmmovf2vn55tgye".

However, in my implementation I get the hash "jkk3cewh6vmq7rgf".

I checked my code multiple times, but could not find an implementation 
error.

Before I am going to waste more time with debugging, I'd like to ask if 
the example result in the specs is correct?

Thank you!

Best,
Richard Koerber