Re: [TLS] TLS 1.3 multiple PSKs (was session tickets) from the client?

Hubert Kario <hkario@redhat.com> Fri, 11 May 2018 11:22 UTC

Return-Path: <hkario@redhat.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 74D0E12E88B for <tls@ietfa.amsl.com>; Fri, 11 May 2018 04:22:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 99tL86uJkFi7 for <tls@ietfa.amsl.com>; Fri, 11 May 2018 04:22:50 -0700 (PDT)
Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB04B124C27 for <tls@ietf.org>; Fri, 11 May 2018 04:22:49 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 53E1F7D664; Fri, 11 May 2018 11:22:49 +0000 (UTC)
Received: from pintsize.usersys.redhat.com (unknown [10.43.21.223]) by smtp.corp.redhat.com (Postfix) with ESMTP id E889185779; Fri, 11 May 2018 11:22:48 +0000 (UTC)
From: Hubert Kario <hkario@redhat.com>
To: tls@ietf.org
Date: Fri, 11 May 2018 13:22:43 +0200
Message-ID: <1532850.sSZ8P2j6eL@pintsize.usersys.redhat.com>
In-Reply-To: <2AF454E0-48F4-4C98-855D-B4BB342E4C47@dukhovni.org>
References: <773A6343-2978-4195-BF53-B5253E3B9129@dukhovni.org> <BBFEDE28-AC26-4748-9F49-8B6EBF12F1F1@dukhovni.org> <2AF454E0-48F4-4C98-855D-B4BB342E4C47@dukhovni.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart3388960.Sa08eK659I"; micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 11 May 2018 11:22:49 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 11 May 2018 11:22:49 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'hkario@redhat.com' RCPT:''
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/wFh8aPtaV-7nynLO_vHvyUAO4fI>
Subject: Re: [TLS] TLS 1.3 multiple PSKs (was session tickets) from the client?
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 11 May 2018 11:22:51 -0000

On Thursday, 10 May 2018 19:28:45 CEST Viktor Dukhovni wrote:
> > On May 10, 2018, at 11:46 AM, Viktor Dukhovni <ietf-dane@dukhovni.org> 
wrote:
> >> I would imagine, but NSS, at least, doesn't support external PSKs.
> > 
> > Good to know.  Does any implementation other than OpenSSL support
> > external PSKs?  How do you distinguish between external PSKs and
> > resumption PSKs?
> 
> So no need to distinguish in either NSS or Mint.  Anyone else?
> 
> On a related note, should a client sending both a resumption and
> an external PSK place the resumption PSK first in the list of
> PSK identities?  My concern is that server implementations might
> otherwise recognize the external PSK first, and then not even
> look at the resumption PSK.  Is that a valid concern?

I'd say so, the server should use the first identity for which the binder 
validates.
 
> Should server implementations first see if any of the PSKs
> are resumption PSKs before considering the rest?

all the value lists sent by client are supposed to be sorted by willingness to 
use by client, most wanted first

I don't see why PSK's shouldn't be like this too.
-- 
Regards,
Hubert Kario
Senior Quality Engineer, QE BaseOS Security team
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 115, 612 00  Brno, Czech Republic