Re: [TLS] Summarizing identity change discussion so far

Michael Gray <mickgray@au1.ibm.com> Thu, 17 December 2009 22:40 UTC

Return-Path: <mickgray@au1.ibm.com>
X-Original-To: tls@core3.amsl.com
Delivered-To: tls@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C58703A69C1 for <tls@core3.amsl.com>; Thu, 17 Dec 2009 14:40:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.596
X-Spam-Level:
X-Spam-Status: No, score=-6.596 tagged_above=-999 required=5 tests=[AWL=0.003, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43MpJ8akZMBR for <tls@core3.amsl.com>; Thu, 17 Dec 2009 14:40:03 -0800 (PST)
Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144]) by core3.amsl.com (Postfix) with ESMTP id A44333A68C1 for <tls@ietf.org>; Thu, 17 Dec 2009 14:40:02 -0800 (PST)
Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id nBHMb1Ku024796 for <tls@ietf.org>; Fri, 18 Dec 2009 09:37:01 +1100
Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nBHMZkL21503388 for <tls@ietf.org>; Fri, 18 Dec 2009 09:35:47 +1100
Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nBHMdjdG004725 for <tls@ietf.org>; Fri, 18 Dec 2009 09:39:46 +1100
Received: from d23ml003.au.ibm.com (d23ml003.au.ibm.com [9.190.250.22]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nBHMdjmp004722 for <tls@ietf.org>; Fri, 18 Dec 2009 09:39:45 +1100
In-Reply-To: <200912172218.nBHMILwN020589@fs4113.wdf.sap.corp>
To: mrex@sap.com
X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006
Message-ID: <OF8FF151E8.A53BE95F-ON4A25768F.007B3729-4A25768F.007C7597@au1.ibm.com>
From: Michael Gray <mickgray@au1.ibm.com>
Date: Fri, 18 Dec 2009 08:39:25 +1000
X-MIMETrack: Serialize by Router on d23ml003/23/M/IBM(Release 7.0.2FP3HF80 | July 14, 2008) at 18/12/2009 09:46:50
MIME-Version: 1.0
Content-type: text/plain; charset="US-ASCII"
Cc: tls@ietf.org, Kyle Hamilton <aerowolf@gmail.com>
Subject: Re: [TLS] Summarizing identity change discussion so far
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
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/listinfo/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 17 Dec 2009 22:40:03 -0000

mrex@sap.com wrote:

> Kyle Hamilton wrote:
> >
> > On Tue, Dec 8, 2009 at 1:13 AM,  <Pasi.Eronen@nokia.com> wrote:
> > > (wearing Area Director hat)
> > >
> > > - We recommend that TLS libraries SHOULD provide identity matching
> > > (with memcmp, abort handshake if changed) functionality to
> > > applications, and SHOULD allow applications to enable/disable this
> > > functionality.
> >
> > No, identity matching SHOULD be done in accordance with PKIX.  memcmp
> > is not at all sufficient.
> >
> > However, I would support the following:
> >
> > - TLS libraries SHOULD provide identity matching services between and
> > throughout renegotiation handshakes.  Libraries SHOULD implement this
> > in accordance with PKIX [PKIX], but MAY do so with a direct memory
> > comparison.  Implementors are cautioned that this latter approach does
> > not provide for changing the cipher parameters -- such as a
> > renegotiation with an EC or DH certificate after identification with
> > an RSA certificate.  If the identity matching service fails to match
> > the identity, implementations MUST abort the handshake with a fatal
> > bad_certificate alert.
>
> The way the TLS specifications are currently archtected, this is
> a service that is _not_ available from TLS.
>
> Although there is likely some PKI(X)-Software available to the
> TLS implementation for the X.509 stuff and certificate path validation
> processing, but it can easily be that it is a completely different
> module.
>
> If an application currently wants to look at the contents of
> the certificates exchanged and authenticated during the TLS handshake,
> then this is explicitly declared out-of-scope for TLS in the base spec
> (RFC-5246, section 1. last paragraph).  I would strongly recommend
> to leave the code slicing (modularization) between application,
> PKI-Software and TLS-implementation outside the scope of this spec.

Yes the problem is defining what an identity change is precisely.  We know
that CA's load all sorts of stuff in to certificates as part of the DN etc
and the same identify could have multiple certificates, and could be
identified by multiple CAs.  If we say that in TLS we are going to check
identity then it has to be very precisely defined, or extremely vaguely
defined so that the implementation can not be accused of non compliance or
invalid/suspect identity matching.  Perhaps it needs to be a vague as
possible so that TLS implementation can simply push it back to the
application layer in practice

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