Re: [TLS] updated PEM file format draft for ECH key pairs

Rob Sayre <sayrer@gmail.com> Sat, 20 November 2021 03:02 UTC

Return-Path: <sayrer@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9EAE3A0A24 for <tls@ietfa.amsl.com>; Fri, 19 Nov 2021 19:02:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=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=gmail.com
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 Lzwjt8NjYwYr for <tls@ietfa.amsl.com>; Fri, 19 Nov 2021 19:02:29 -0800 (PST)
Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0413B3A0A22 for <tls@ietf.org>; Fri, 19 Nov 2021 19:02:28 -0800 (PST)
Received: by mail-io1-xd34.google.com with SMTP id w22so15282096ioa.1 for <tls@ietf.org>; Fri, 19 Nov 2021 19:02:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SU+CKhKSN6555Pmi+nbEYzb77wgtq7gQLU3khMzltY4=; b=YS+FpE4wo8zUdb1I6Otv8wiTgxe1XWDzKPzGcWMHtDVzEMtXoqXmmFq6dqJjYuziry uJcL3JmwDfEWr1eTsrZrzhs/fyM3/UfoFVsUFeXJpHjkrfAETNSme7FpC4z2GiqSLD45 C6jr/Nj6zFQ64KtkzmqRovLFFXT89nNmy/A6mv83+lrnTDdZEY9MP3SqS4PSb+U0AO8z 9ZVrywAGcjEkTHqtBKHh0YtisgnfvFIWMOlnwclhNkzxdgSaM6+3PoVVzHy5UuJKesVz epGDorXuS1TbTkh1gjfUeEwRvQskxId9VXHLVQz3aT63jTYlxGg8+HvrONY5RzYeUsKU 0WAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SU+CKhKSN6555Pmi+nbEYzb77wgtq7gQLU3khMzltY4=; b=Aw72LvTp6vOqj1PDgWnjk7bLAEAxsk1rlnb6x01yjTzX0LIUa87eQtAI//4omp6I6d 3eDZE7lPtnwhKfGn5mwAL5ikwHJeIWSOXM0Qq7JWlU2PIa/fOZQCvcgbBzy3J6GvFBDO 1vVAzoGizsNBd4cGPSd1HqbEKyA+C9DX8LD2z9dJszUjjUYPqrhyJ8LR4Sjpq4ic0cl4 7RsRIELGcNPonjzuoMCqceG/cmKYjmufa/fzBQq5kW4aXbR+Hh73SEViyAR85dJyoyTO 1JMydtFty2s707AhUZv24Bt1rSSrku2N1cdXiJ2woXZq01W8R96YCE9nm8CLWxJ23lE+ nq4Q==
X-Gm-Message-State: AOAM533qViMfw+y+KJjYrjAe8Y/XUTmOguYdXEPvOB9Rupa3kLoq05GG DsNBAAQUKdZHpBlq/NCjqFsDAR1pp4CXV4mEBOcVbJog75t0og==
X-Google-Smtp-Source: ABdhPJxDFO40rxYvV022wT9OxZLGqVXIUtf4m+cHIoovnwYKfgtDzXrX2Ok0stMb66Tcca+TQf3jr3GaSa/XPg+SXFg=
X-Received: by 2002:a5e:c645:: with SMTP id s5mr9109604ioo.154.1637377347756; Fri, 19 Nov 2021 19:02:27 -0800 (PST)
MIME-Version: 1.0
References: <1358e3ab-13dc-1a70-b919-fdb8cbd1c10a@cs.tcd.ie>
In-Reply-To: <1358e3ab-13dc-1a70-b919-fdb8cbd1c10a@cs.tcd.ie>
From: Rob Sayre <sayrer@gmail.com>
Date: Fri, 19 Nov 2021 19:02:17 -0800
Message-ID: <CAChr6SzdPTqWxBZiDuauh+GQNJo21+P948-JzM5t4yn3TFEf9w@mail.gmail.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Cc: "tls@ietf.org" <tls@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002d283605d12f9f54"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/oAVVk4bgIpSdzJJDfNkpDT4AkcE>
Subject: Re: [TLS] updated PEM file format draft for ECH key pairs
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Nov 2021 03:02:34 -0000

This is worth working on.

When I worked on this problem in Rust, I used Cloudflare's ad-hoc Go
serialization, although it looks as though they've changed it since[1].

I wasn't really sure how these things should be stored relative to
ECHConfig ids etc, but I came up with a different answer than this draft
does (not that I feel strongly) [2].

thanks,
Rob

[1]
https://github.com/cloudflare/go/blob/7d4ce7c5377c6bf6ff5977d4734d6f6f2a10ccdb/src/crypto/tls/ech_config.go#L16
[2]
https://github.com/rustls/rustls/pull/663/files#diff-62731cbc005ac23c9805e5f34445ff0d9650b4077f8e35a3fdbe5a885986a779R65

On Fri, Nov 19, 2021 at 6:38 PM Stephen Farrell <stephen.farrell@cs.tcd.ie>
wrote:

>
> Hiya,
>
> As discussed at IETF112, I've updated the PEM file format
> draft for ECH. [1] Happy to take comments via mail or via
> that github thing:-)
>
> As and when the chairs think it's a good time to consider
> adoption, or incorporation into the ECH draft, or sending
> this somewhere else, I guess we can have that discussion.
>
> This format is supported by my OpenSSL fork [2] which has
> CLI tooling for making/consuming these and can be ingested
> by the various TLS servers (lighttpd, apache, nginx and
> haproxy) with which I've integrated that ECH-enabled build.
> (There're pointers to forks for those servers at [3].)
>
> I'll work on the well known url draft in the next while.
> It likely needs a bit more work than simple substitution.
>
> Cheers,
> S.
>
> [1] https://datatracker.ietf.org/doc/draft-farrell-tls-pemesni/
> [2] https://github.com/sftcd/openssl/tree/ECH-draft-13a
> [3] https://defo.ie/
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>