Re: [TLS] In-handshake CertificateRequest and 0-RTT
David Benjamin <davidben@chromium.org> Thu, 12 May 2016 19:41 UTC
Return-Path: <davidben@google.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 5304012B053 for <tls@ietfa.amsl.com>; Thu, 12 May 2016 12:41:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.695
X-Spam-Level:
X-Spam-Status: No, score=-3.695 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_LOW=-0.7, RP_MATCHES_RCVD=-0.996, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 Wz-4wIUeU2Uy for <tls@ietfa.amsl.com>; Thu, 12 May 2016 12:41:03 -0700 (PDT)
Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (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 5EB2012B039 for <tls@ietf.org>; Thu, 12 May 2016 12:41:03 -0700 (PDT)
Received: by mail-io0-x233.google.com with SMTP id 190so108281493iow.1 for <tls@ietf.org>; Thu, 12 May 2016 12:41:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tRxM+kjhAPPF0hrgQDIMM4JpBchp5vnUpfICs4gpEjs=; b=nv5EmJhCD04vakz4iOK7PWb0pv3sTlnoxfZgsvrnTKkTTzbRo+SXQxBhaaW2Z3fOpu r/tn9QevrwzpeswD1oROMYJ0C3bVuNgtfq1p7iTikcNCTKp1X5HF28RM9vq8OTL9UDl7 KDgl4j9SeiJnnbZPHQ3lMbqLGcG9pT7lZvf/8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tRxM+kjhAPPF0hrgQDIMM4JpBchp5vnUpfICs4gpEjs=; b=OdEkzkPFD9sShE1CfiecIr+ccihreXDZvOoRf3LMrOPXgnJj4h9NbU3uy/pDmshwN8 +2m1VpV7289Q1wmpLS4rHLXyDavO7C2kS1UzTv7c2DWDiNTRj3MR6qi54BXUe6EadRFO e5JgVL0mnrX0wte5keTVxDZ3Gybmhb9l/709yTMLyksf7U2rH5kME1VSvdHZXWdTu3jh ZhNxA3sx6eodU6ajvWPfXzkiWw5eXY79AbY7m9YWPsLjzIlSuVxpsFpPlMb0/U4sQPDW dsut/ddot6OSXtofgYoIMrWqPOgXLvJ0FQT8bdiQzFFvpnvdXbzVAo4wSHPneBhhvPmt XOjQ==
X-Gm-Message-State: AOPr4FV/YVILFuJoVRyh8qpeYzmHXya4ttNTC3BmWx2XJjT46z7IXfzQoD7kOj1+Fu4y4gK9Upm/sZQ9/3xqq4AB
X-Received: by 10.107.183.139 with SMTP id h133mr9964263iof.97.1463082062511; Thu, 12 May 2016 12:41:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAF8qwaD870fuNuVnhnbKBEk3Vc4G7_AfR+mOAtvLwDYNtNgcwA@mail.gmail.com> <CABcZeBPUmahhCN97wrjUE1iR2f8jT9Sp3D81qQBfM8aMM8EA7Q@mail.gmail.com> <CAF8qwaAqHeyn3O0-n1-EJNiHae8=mE=mM+vDbE8bRbVLqA2D2w@mail.gmail.com> <CABcZeBN-fYXjmOcpZO6Vk-+G6==XJaqfFT=cMJTmYFi=gWA9yQ@mail.gmail.com>
In-Reply-To: <CABcZeBN-fYXjmOcpZO6Vk-+G6==XJaqfFT=cMJTmYFi=gWA9yQ@mail.gmail.com>
From: David Benjamin <davidben@chromium.org>
Date: Thu, 12 May 2016 19:40:52 +0000
Message-ID: <CAF8qwaAaLDqSB=wpmZtZO0P45--dDOMxeg1d5NTV8z77maxXqw@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Content-Type: multipart/alternative; boundary="94eb2c0ba1829d47df0532aa5623"
Archived-At: <http://mailarchive.ietf.org/arch/msg/tls/D5BXO8NOxZ_7v5gSYGuBT2T1c9c>
Cc: "tls@ietf.org" <tls@ietf.org>
Subject: Re: [TLS] In-handshake CertificateRequest and 0-RTT
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 12 May 2016 19:41:06 -0000
Right, I want to forbid it precisely because I don't want to allow post-handshake client auth. :-) Or rather, I expect most TLS applications will not want post-handshake client auth enabled as it significantly changes the authentication picture (TLS-level auth can change mid-stream) and would have it off. I would like disabling post-handshake client auth to, as a result, disable all such TLS-level mid-stream switches. For some legacy uses of HTTP/1.1, sure, post-handshake auth will be enabled and this feature doesn't do much harm. (But it also doesn't help. The server can just as easily send post-handshake CertificateRequest right after the handshake.) For 1-RTT, there's no mid-stream transition problem. Though it is kind of weird for PSK-resumption. PSK-resumption already implicitly carries a set of certificate-based identities from the previous run, but we're saying the server may ask the client to pick a different one (but not vice versa). Is the client still authenticated as the previous one too, or just the new one? David On Thu, May 12, 2016 at 3:26 PM Eric Rescorla <ekr@rtfm.com> wrote: > I agree that the current draft is ambiguous on this point but I think the > question is what the right > thing is. My intuition here is that we should try to make the client's > side and the server's side > more independent so that you can have client auth in either case. Given > that we're going to > allow post-handshake client auth when you resume, it's just not clear to > me why you wouldn't > allow in-handshake client-auth. I'm not sure it's a hill I'm willing to > die on though. > > -Ekr > > > > On Thu, May 12, 2016 at 9:06 PM, David Benjamin <davidben@chromium.org> > wrote: > >> Which PSK/non-PSK symmetry are you referring to? I didn't think 1.3 >> currently allowed CertificateRequest in a PSK handshake either, or are you >> referring to something else? >> >> Actually, looking at the text again, it's a little confusing right now >> where CertificateRequest is and isn't allowed. The message flow in 6.2.2 >> implies a PSK resumption handshake does not send CertificateRequest. The >> flow in 6.2.3 implies a 0-RTT handshake does, but it describes the 0-RTT >> handshake as: >> >> """ >> When resuming via a PSK, clients can also send data on their first flight >> (“early data”). This data is encrypted solely under keys derived using the >> PSK as the static secret. As shown in Figure 4, the Zero-RTT data is just >> added to the 1-RTT handshake in the first flight, the rest of the handshake >> uses the same messages. >> """ >> >> This suggests it should match 6.2.2 in whether CertificateRequest is >> allowed. Arguably the rules should be in text, not diagrams, but the >> text in 6.3.3.2 just says: >> >> """ >> A non-anonymous server can optionally request a certificate from the >> client, if appropriate for the selected cipher suite. This message, if >> sent, will follow EncryptedExtensions. >> """ >> >> (I'm guessing "non-anonymous" is a holdover from TLS 1.2's text.) >> >> In TLS 1.2, I believe CertificateRequest in a PSK-based cipher wasn't >> allowed. RFC 4279 explicitly says it's not allowed in plain PSK. It's not >> clear whether that applies to DHE_PSK, but I think that combined with 1.2's >> "non-anonymous" rule gives client auth => certificate-based cipher as the >> most reasonable interpretation. >> >> David >> >> On Thu, May 12, 2016 at 11:19 AM Eric Rescorla <ekr@rtfm.com> wrote: >> >>> Interesting suggestion. I see what you mean about symmetry with the >>> server >>> >>> The symmetry I was optimizing for is that the PSK and non-PSK handshake, >>> and I think from that perspective the current design is simpler, so I see >>> it both ways. >>> >>> WRT to the 0.5RTT data, Hugo Krawczyk has done some nice work on >>> analyzing this case and I think we're starting to get more comfort with >>> that. >>> >>> So, not sure what I think... >>> >>> -Ekr >>> >>> >>> >>> >>> >>> On Wed, May 11, 2016 at 10:44 PM, David Benjamin <davidben@chromium.org> >>> wrote: >>> >>>> The 0-RTT handshake originally had two places with a client >>>> Certificate + CertificateVerify: in the 0-RTT flow and in the second >>>> Finished block in response to a server CertificateRequest. We've >>>> dropped the first now. I propose we drop the second too. Client auth with >>>> 0-RTT is solely carried over via resumption. (I mentioned this previously, >>>> but with 0-RTT looking closer to resumption and the IETF 95 decision on >>>> 0.5-RTT data, I think the case is clearer.) >>>> >>>> This makes 6.2.3 more consistent with 6.2.2 where neither side >>>> authenticates in a resumption handshake. 0-RTT is much more similar to >>>> resumption with most parameters carrying over anyway. >>>> >>>> 1-RTT client auth in a 0-RTT handshake also invites more of the >>>> retroactive auth confusion as with post-handshake auth. The client stream >>>> switches from unauthenticated to authenticated. I believe this was one >>>> of the reasons we agreed at IETF 95 to discourage/forbid (not sure which) >>>> sending 0.5-RTT data following a CertificateRequest. In-handshake >>>> CertificateRequest either requires this discouraged situation or accepting >>>> 0-RTT data without sending 0.5-RTT data, which is largely pointless. >>>> >>>> We accepted the retroactive auth issue in post-handshake auth, but I >>>> think we should limit it to that. For implementations, BoringSSL made >>>> accepting renego an opt-in feature. I expect we'd do the same for >>>> post-handshake auth. For specs, one might specify that post-handshake >>>> authentication is forbidden. HTTP/2 did this for renegotiation. I >>>> haven't been following the HTTP/2 client cert saga as closely, but >>>> draft-thomson-http2-client-certs-02 is the current plan, right? If so, >>>> HTTP/2 should forbid TLS-level post-handshake auth too. >>>> >>>> In both cases, excluding post-handshake auth should exclude any >>>> transition from unauthenticated to authenticated in the stream. Instead, if >>>> you want to change authentication state, send a post-handshake >>>> CertificateRequest, as you would have normally. >>>> >>>> David >>>> >>>> _______________________________________________ >>>> TLS mailing list >>>> TLS@ietf.org >>>> https://www.ietf.org/mailman/listinfo/tls >>>> >>>> >>> >
- [TLS] In-handshake CertificateRequest and 0-RTT David Benjamin
- Re: [TLS] In-handshake CertificateRequest and 0-R… Martin Thomson
- Re: [TLS] In-handshake CertificateRequest and 0-R… David Benjamin
- Re: [TLS] In-handshake CertificateRequest and 0-R… Martin Thomson
- Re: [TLS] In-handshake CertificateRequest and 0-R… Eric Rescorla
- Re: [TLS] In-handshake CertificateRequest and 0-R… David Benjamin
- Re: [TLS] In-handshake CertificateRequest and 0-R… Eric Rescorla
- Re: [TLS] In-handshake CertificateRequest and 0-R… David Benjamin
- Re: [TLS] In-handshake CertificateRequest and 0-R… Andrei Popov