Re: Expectations for TLS session reuse

Martin Thomson <martin.thomson@gmail.com> Thu, 22 December 2016 22:34 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B83C1298A0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 22 Dec 2016 14:34:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.6
X-Spam-Level:
X-Spam-Status: No, score=-9.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-3.1, SPF_HELO_PASS=-0.001, SPF_PASS=-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 lGD0xhEJB6lm for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 22 Dec 2016 14:34:31 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8DC61295EA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 22 Dec 2016 14:34:31 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cKBtj-0008Tg-5R for ietf-http-wg-dist@listhub.w3.org; Thu, 22 Dec 2016 22:31:39 +0000
Resent-Date: Thu, 22 Dec 2016 22:31:39 +0000
Resent-Message-Id: <E1cKBtj-0008Tg-5R@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1cKBtL-0008G9-UN for ietf-http-wg@listhub.w3.org; Thu, 22 Dec 2016 22:31:15 +0000
Received: from mail-qt0-f177.google.com ([209.85.216.177]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cKBtK-0007FY-UE for ietf-http-wg@w3.org; Thu, 22 Dec 2016 22:31:15 +0000
Received: by mail-qt0-f177.google.com with SMTP id k15so7832891qtg.3 for <ietf-http-wg@w3.org>; Thu, 22 Dec 2016 14:30:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+j/cI/9hRh9mfijnHzwnyULdrAiSClVH49ppHJ7zdmM=; b=YYZaFSzGDGwWP63z1EhZ3R0DSdu28pEt8SsCJMtjngVpS2a+R47dJYxY0fYz2BImLd zATU6KXqE0PDcnk9iiPpB73QWgzQSEL2lxZxZ03EudOyX1Hz02bvjXbPD6ts1dMUM1J8 vYEUiHrT910meLXtm9Z0aUS7eG00imW8p4gOWmkHOnFKLRgC9PQfzau5e6FtSsuaNBJJ eQzElRxW3FzM7xpTgRa3OjfHE+RFeKAN4Nb3+Q8N1DJ4CtIKnXSTJZ5DlZSPHuXM3kNf Z5FvqfQEnCreJsaQopmHzymsiyLeP1L3fr1WkMzWKGr4ZH+8c7mTQ55FD+Xf7YJ16f0z v7PQ==
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=+j/cI/9hRh9mfijnHzwnyULdrAiSClVH49ppHJ7zdmM=; b=U32Pt8ZeoTR3IKEya9mXm62ToQ/SfW7uNVDSQtgFk31J5BhxfDQBJj3y565hUo5s/5 DjtgzUGYQ9WH0IYjwwr8Decr3r1ckzZrWcVBTjFPwpA9oPu1enhZvIwBTtngHcUhn3qn slICseMMf8jp+F8DrhVF2VPMjCcdMuZo3cfYsqlpAz3b5cQ4tvZp/x2kT+XRDzo4kc3W +3iJquWOe8AiZ1EG6fB0Sf66GvBVtebDyalqH8Q+PINjWAvQWmkHXVUgY9fHd4RRS9NW UWur1WPjgnO8BQEeTaYDKGCsYDiDDr7tacjE/fYSikAytBznUtCmAELnjxivQEiZpykH KUhA==
X-Gm-Message-State: AIkVDXLq12oRU+ACfOZTRb/b3RSVKz3FQykgPhlFLFE7fM2auv8rq36S5TpVY1SPe/IA7/nVVOso2+N70eRi7A==
X-Received: by 10.200.48.28 with SMTP id f28mr13343910qte.247.1482445848947; Thu, 22 Dec 2016 14:30:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Thu, 22 Dec 2016 14:30:48 -0800 (PST)
Received: by 10.140.38.233 with HTTP; Thu, 22 Dec 2016 14:30:48 -0800 (PST)
In-Reply-To: <4acbd46a-ebec-2727-96d3-b668a947856c@rd.bbc.co.uk>
References: <7CF7F94CB496BF4FAB1676F375F9666A376AAB1E@bgb01xud1012> <CABkgnnWOrphhWpjuhRC5apydWb2t=qWvMSb1D9uo8Eb_4JHzqQ@mail.gmail.com> <CAOdDvNo2OgdkuDCjeVZBRnB+JPg0eFtPcm_UXQPhrEuiaGKGaw@mail.gmail.com> <7CF7F94CB496BF4FAB1676F375F9666A376B04C7@bgb01xud1012> <BN6PR03MB2708F28F1828C5278E71938087980@BN6PR03MB2708.namprd03.prod.outlook.com> <CABcZeBMssBzM67iLGtKQgS0KgSj6q9tZX7hG0GNfSK=VvatuWw@mail.gmail.com> <BN6PR03MB270885404C2F1E029F54AABE879B0@BN6PR03MB2708.namprd03.prod.outlook.com> <97158afb-d80a-443c-b59a-209ffe3d34d9@rd.bbc.co.uk> <BN6PR03MB2708A286DF303E6524EF9F4D87930@BN6PR03MB2708.namprd03.prod.outlook.com> <CABkgnnXAaX4+6CbWQGFm_0bk82WZNq9d=UBmaq22u2q7yP+pUQ@mail.gmail.com> <e508d3c7-c81d-91d8-7b6d-3e2b74d15bd9@rd.bbc.co.uk> <CAOdDvNqPDssNmSscgk3chbPg+Uw53_nqFrv+OzhTHWA=hTvwLg@mail.gmail.com> <4acbd46a-ebec-2727-96d3-b668a947856c@rd.bbc.co.uk>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 23 Dec 2016 09:30:48 +1100
Message-ID: <CABkgnnUf8xG7espU5DsQiQg7944F9Nrhz0d91Lv27=V3NVY9oA@mail.gmail.com>
To: Richard Bradbury <richard.bradbury@rd.bbc.co.uk>
Cc: Lucas Pardue <Lucas.Pardue@bbc.co.uk>, Mike Bishop <Michael.Bishop@microsoft.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>, Patrick McManus <mcmanus@ducksong.com>, Eric Rescorla <ekr@rtfm.com>
Content-Type: multipart/alternative; boundary="001a113a353239aff4054446d2b3"
Received-SPF: pass client-ip=209.85.216.177; envelope-from=martin.thomson@gmail.com; helo=mail-qt0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.242, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cKBtK-0007FY-UE 792c4ae01001235c74933242c601caaa
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Expectations for TLS session reuse
Archived-At: <http://www.w3.org/mid/CABkgnnUf8xG7espU5DsQiQg7944F9Nrhz0d91Lv27=V3NVY9oA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33226
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 23 Dec 2016 5:04 AM, "Richard Bradbury" <richard.bradbury@rd.bbc.co.uk>
wrote:

Hmm... The statement in the above quotation seems inconclusive to me.
Surely a client could verify the server's identity simply by checking that
the target authority appears in the server's certificate (and that the
certificate is valid too, of course...). Wouldn't that satisfy the security
consideration on establishing authority described in section 9.1?

Yes[1], if the cert is good and the name is right, that is enough.

Except... We still require that the IP address matches.  But only for
coalescing:

> For TCP connections without TLS, this depends on the host having resolved
to the same IP address.
>
> For https resources, connection reuse additionally depends on having a
certificate that is valid for the host in the URI.

It seems like the requirements for the initial connection are the only ones
that are ambiguous :)  ah the joys of dealing with specs.

Maybe I need to do a writeup. That isn't going to happen soon though. Keep
up the good work, and maybe you can write this up.

[1] The part that you might have been missing is how the valid certificate
is linked to a trust anchor.  That is where is gets much, much more
complicated.  (You might have meant to include that by saying  "valid", but
I wanted to be explicit.)