Re: [TLS] External PSK with certificate-based authentication

Eric Rescorla <ekr@rtfm.com> Sat, 02 December 2017 18:52 UTC

Return-Path: <ekr@rtfm.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 328ED128D0F for <tls@ietfa.amsl.com>; Sat, 2 Dec 2017 10:52:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 hdCJ_S4kSMtX for <tls@ietfa.amsl.com>; Sat, 2 Dec 2017 10:52:27 -0800 (PST)
Received: from mail-yb0-x22a.google.com (mail-yb0-x22a.google.com [IPv6:2607:f8b0:4002:c09::22a]) (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 464D4128CFF for <tls@ietf.org>; Sat, 2 Dec 2017 10:52:27 -0800 (PST)
Received: by mail-yb0-x22a.google.com with SMTP id p128so5230981yba.7 for <tls@ietf.org>; Sat, 02 Dec 2017 10:52:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wccGVJ8Dkq3/IHlcrt5zQTguqNRL21DgqZQ3l7o1Uys=; b=TFzlOE6z92l28pEuYZ1geW4VD9kqNSm/jKRsqHkaOzXbdKTVNw574KEGZ3cKYnEe1k w2NN2WAQRhoKGypHIsy0mFEq0W8+HpODMcjCsDz1t93NNK3+B7gG7dqJdMCTrJCOiYaI 8ViLrMg1JxeIQpVr07hUam+CWA8Bny/X8AuCH8vfDwAeP2kIHmL3Q0BmPQJL9LWNGc5C evpmvJv80Tqnvr/+9W57Ru1bge/HN2MKrFsN290Hkm1sMLS5vDj5MDkUqyV0fLTwfDbC yES3MKeSO42YSu3QNP0mKyu0PyWgPpUyDZENEYd2snjYJoys8aEA0SgGkhRDKCswVkL0 cCvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wccGVJ8Dkq3/IHlcrt5zQTguqNRL21DgqZQ3l7o1Uys=; b=ZkyuUDDndS0+BE84N9mn0VVKUyHA6RHIpCDyj2rmSCv2K93Hf+toQ0S2R0sQ/Qj0jD zyF/GX3cArP8LS8nQMJ+iBiBpUEI4HDitrNAxOxx35GppqHFHig3dj0yzV7kc2tFq4uh 7FE79OxSrfOphXxuxi7fGDWns/9bsV9DEwVZxdL8FvRbBJB8KBikZMYc3WJcvKfgTfK8 +gLkL7tMdxu3m7iZWuKsRJ2FcvbCh/vdH3WsPr4TVhhrCo7dGnzsVxrJdi9eonBOc/7l SSkALwV9MLXdqU8UxUL8WcJ3MYd2Q8VUyl9A0KxKhPQ0o6rkrU08sgRiqaaoLZUG//Kx eoaA==
X-Gm-Message-State: AKGB3mL6FQRv7rRNsaVFQ6bwuBtSS1VsJqhk6DIQoKhwtsOzCPIbaw3i ths8PzcDL53fDOZIkXTLGvKqZoVpy4Xyf6IJKdioFint
X-Google-Smtp-Source: AGs4zMYYaQcJF+yAPoWXLVNenV1JhLHOFWj6VaW1qsuOxVUS1pJhwzjZ1Kp/+t+aS1yoDsUQnz65td8vHp0IPrA0LoY=
X-Received: by 10.37.13.65 with SMTP id 62mr1077919ybn.416.1512240746366; Sat, 02 Dec 2017 10:52:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.123.132 with HTTP; Sat, 2 Dec 2017 10:51:45 -0800 (PST)
In-Reply-To: <332B60C8-9355-4743-B663-9FAB77C55282@vigilsec.com>
References: <332B60C8-9355-4743-B663-9FAB77C55282@vigilsec.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sat, 02 Dec 2017 10:51:45 -0800
Message-ID: <CABcZeBNRbUZCJSQ0H62HgWxn_kNLq+BMmpE5uYCLL0c0A8Z7PA@mail.gmail.com>
To: Russ Housley <housley@vigilsec.com>
Cc: IETF TLS <tls@ietf.org>
Content-Type: multipart/alternative; boundary="001a11c01ee2809c21055f5ffc44"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/zAIZqT7KKlxmajuH_CH22F21QgQ>
Subject: Re: [TLS] External PSK with certificate-based authentication
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: Sat, 02 Dec 2017 18:52:29 -0000

On Sat, Dec 2, 2017 at 10:10 AM, Russ Housley <housley@vigilsec.com> wrote:

> At the bottom of page 136, the current draft says:
>
>    Note: TLS does not currently permit the server to send a
>    certificate_request message in non-certificate-based handshakes
>    (e.g., PSK).  If this restriction were to be relaxed in future, the
>    client's signature would not cover the server's certificate directly.
>    However, if the PSK was established through a NewSessionTicket, the
>    client's signature would transitively cover the server's certificate
>    through the PSK binder.  [PSK-FINISHED] describes a concrete attack
>    on constructions that do not bind to the server's certificate (see
>    also [Kraw16]).  It is unsafe to use certificate-based client
>    authentication when the client might potentially share the same PSK/
>    key-id pair with two different endpoints.  Implementations MUST NOT
>    combine external PSKs with certificate-based authentication of either
>    the client or the server.
>
> [PSK-FINISHED] tells why it is not safe to do client authentication after
> resumption.
>
> [Kraw16] says two things: (1) using a PSK from a previous handshake and
> adding client authentication is not secure; and (2)does not work; and the
> client signature must cover the public key.
>
> So, the final sentence in the quoted paragraph seems to be too broad.  I
> do not see why we forbid an external PSK and certificate-based
> authentication in an initial handshake.  I acknowledge that TLS 1.3 does
> not support it, but I have been expecting an extension to be specified to
> do just that once the TLS 1.3 base specification is finished.
>

My view on this is that that's not a currently specified configuration. A
future specification could of course relax that. If you wanted to submit a
PR that said "absent some extension to the contrary" that would be fine,
though I think that's implicit.

-Ekr



Russ
>
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>