Re: [TLS] Multiple domain names in SNI (was Questions about TLS

Michael D'Errico <mike-list@pobox.com> Fri, 30 October 2009 18:38 UTC

Return-Path: <mike-list@pobox.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 776543A68DD for <tls@core3.amsl.com>; Fri, 30 Oct 2009 11:38:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.569
X-Spam-Level:
X-Spam-Status: No, score=-2.569 tagged_above=-999 required=5 tests=[AWL=0.030, 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 MmZmnIvJgGF9 for <tls@core3.amsl.com>; Fri, 30 Oct 2009 11:38:10 -0700 (PDT)
Received: from sasl.smtp.pobox.com (a-pb-sasl-sd.pobox.com [64.74.157.62]) by core3.amsl.com (Postfix) with ESMTP id 714643A6767 for <tls@ietf.org>; Fri, 30 Oct 2009 11:38:09 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 7D00A8CB91 for <tls@ietf.org>; Fri, 30 Oct 2009 14:38:26 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=bGa+UiQ7fr0G pHHPBj9pnAH30/M=; b=aqm/I1VTetID7XHQPV2UtNovs8GqMpTH+pvo8Xf7Ao1x CtkDqfw/6wn20uCrX/zxK2Bm6R/HPoL6cLkjMEu+hvw93cAQ5oXI8mPqP5ftjzHS 5qnFh98y4rM9LkqLN6lnaduJhbVGS/awLP8L9N8oVeGcp1LAABsuPBdUBbld6Vc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=gsdHan bl8bLMGBQTndSFiKnwfuuAcGiEYnIcsklAsye4uSkOJfUpPPvXYRsC6G9kBnCj7D KzmjQ8GDmlBQsp6x2mP73yxHNlViXql8uP9L4l41QOYdZas35gEgOyVbTC52/a66 rSzT+/eB/CHH5wSBSyqAEcrl83HPeAj+MdgnY=
Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 756588CB90 for <tls@ietf.org>; Fri, 30 Oct 2009 14:38:26 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown [24.234.114.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 0E9848CB8F for <tls@ietf.org>; Fri, 30 Oct 2009 14:38:25 -0400 (EDT)
Message-ID: <4AEB32FC.8030100@pobox.com>
Date: Fri, 30 Oct 2009 11:39:56 -0700
From: Michael D'Errico <mike-list@pobox.com>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: tls@ietf.org
References: <200910301817.n9UIHuZX020355@fs4113.wdf.sap.corp>
In-Reply-To: <200910301817.n9UIHuZX020355@fs4113.wdf.sap.corp>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 69381002-C583-11DE-8B18-A67CBBB5EC2E-38729857!a-pb-sasl-sd.pobox.com
Subject: Re: [TLS] Multiple domain names in SNI (was Questions about TLS
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, 30 Oct 2009 18:38:11 -0000

They could share IP addresses.

But the point is that you and I don't know for certain that there is
no possible requirement for a client to send multiple hostnames, so
imposing a limitation of only one hostname could preclude some future
application from being able to use TLS (without modifications or
private agreement).

If it was hard to implement checking for a match in a list, I'd agree
with you, but literally it is a simple while loop that calls your
lookup function for each name in the SNI extension.

Mike



Martin Rex wrote:
> Michael D'Errico wrote:
>> Here's a possible reason for a client to include multiple domain
>> names in the SNI.  Suppose a user enters "foo.edu" into their
>> browser.  The browser may decide to send the two names "foo.edu"
>> and also "www.foo.edu" to the server in an attempt to connect on
>> the first try, rather than get rejected on the first connection
>> and have the overhead of retrying.
> 
> I'm sorry, I don't understand you scenario.
> 
> Current implementations of TCP can have only two communication peers,
> not three and the TLS handshake works also only with two participants,
> server and client.
> 
> The client MUST know which of the hostnames was used to open a particular
> network connection, so there is NO situation where more than one name
> should go into SNI here.
> 
> -Martin