Re: [TLS] matching identity, by default

Bill Frantz <frantz@pwpconsult.com> Fri, 04 December 2009 17:30 UTC

Return-Path: <frantz@pwpconsult.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 2CBA23A67EC for <tls@core3.amsl.com>; Fri, 4 Dec 2009 09:30:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.042
X-Spam-Level:
X-Spam-Status: No, score=-2.042 tagged_above=-999 required=5 tests=[AWL=0.557, BAYES_00=-2.599]
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 IwzorRY0OtQz for <tls@core3.amsl.com>; Fri, 4 Dec 2009 09:30:55 -0800 (PST)
Received: from elasmtp-scoter.atl.sa.earthlink.net (elasmtp-scoter.atl.sa.earthlink.net [209.86.89.67]) by core3.amsl.com (Postfix) with ESMTP id E6D2D3A676A for <tls@ietf.org>; Fri, 4 Dec 2009 09:30:54 -0800 (PST)
Received: from [173.75.83.34] (helo=[192.168.1.5]) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <frantz@pwpconsult.com>) id 1NGbzR-00035w-5Q; Fri, 04 Dec 2009 12:30:45 -0500
Date: Fri, 04 Dec 2009 09:31:25 -0800
From: Bill Frantz <frantz@pwpconsult.com>
To: James Manger <james@manger.com.au>
X-Priority: 3
In-Reply-To: <58AAE640-FAE0-493A-A2EF-FCA0EE4E3816@manger.com.au>
Message-ID: <r02010500-1049-D9399226E0FA11DE826D0030658F0F64@[192.168.1.5]>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Mailsmith 2.1.5 (Blindsider)
X-ELNK-Trace: 3a5e54fa03f1b3e21aa676d7e74259b7b3291a7d08dfec798b7889ebd878abccbf82f58b6d314bd2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 173.75.83.34
Cc: "tls@ietf.org Working Group" <tls@ietf.org>
Subject: Re: [TLS] matching identity, by default
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: Fri, 04 Dec 2009 17:30:56 -0000

james@manger.com.au (James Manger) on Friday, December 4, 2009 wrote:

>This suggests another way for a TLS library to ensure it doesn't confuse an application that doesn't explicitly stated it is 
>prepared for renegotiations.
>A library could tell the application only about one peer identity it authenticates (probably the first it authenticates).
>For instance, Java's HttpsURLConnection.getServerCertificates() method could return the same set of certificates for the life of 
>the object (the life of the TLS connection), and simply not tell the application about any different certificates from 
>renegotiations. The TLS library could still renegotiate and switch to new sessions, but the application would be blissfully unaware 
>-- and still secure.

Yet another way would be to have the library return an array of structures,
each member of which has the complete information from the client/server
certificate chain.[1] This array would only grow as new certificates are
received, leaving existing members constant. In Java, the array type would
emphasize to the programmer that there might be more than one structure in
the array. A C programmer would not have that protection, since in C it is
easy to confuse an array reference with a reference to the first element.

Cheers - Bill

[1] The CA chain signing the certificate could be yet another array
reference.

-------------------------------------------------------------------------
Bill Frantz        | When it comes to the world     | Periwinkle
(408)356-8506      | around us, is there any choice | 16345 Englewood Ave
www.pwpconsult.com | but to explore? - Lisa Randall | Los Gatos, CA 95032