Re: [TLS] Summarizing identity change discussion so far

Martin Rex <mrex@sap.com> Thu, 17 December 2009 22:18 UTC

Return-Path: <mrex@sap.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 8F9103A6914 for <tls@core3.amsl.com>; Thu, 17 Dec 2009 14:18:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.197
X-Spam-Level:
X-Spam-Status: No, score=-6.197 tagged_above=-999 required=5 tests=[AWL=0.052, BAYES_00=-2.599, HELO_EQ_DE=0.35, 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 crfqso9t8hnC for <tls@core3.amsl.com>; Thu, 17 Dec 2009 14:18:38 -0800 (PST)
Received: from smtpde03.sap-ag.de (smtpde03.sap-ag.de [155.56.68.140]) by core3.amsl.com (Postfix) with ESMTP id 7748B3A6778 for <tls@ietf.org>; Thu, 17 Dec 2009 14:18:38 -0800 (PST)
Received: from mail.sap.corp by smtpde03.sap-ag.de (26) with ESMTP id nBHMIMtr029403 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Dec 2009 23:18:22 +0100 (MET)
From: Martin Rex <mrex@sap.com>
Message-Id: <200912172218.nBHMILwN020589@fs4113.wdf.sap.corp>
To: aerowolf@gmail.com
Date: Thu, 17 Dec 2009 23:18:21 +0100
In-Reply-To: <6b9359640912171337j7ed5be63gf431e0fb12070944@mail.gmail.com> from "Kyle Hamilton" at Dec 17, 9 01:37:15 pm
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Scanner: Virus Scanner virwal05
X-SAP: out
Cc: tls@ietf.org
Subject: Re: [TLS] Summarizing identity change discussion so far
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: mrex@sap.com
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:18:40 -0000

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.


-Martin