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

Michael D'Errico <> Fri, 30 October 2009 18:38 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 776543A68DD for <>; Fri, 30 Oct 2009 11:38:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.569
X-Spam-Status: No, score=-2.569 tagged_above=-999 required=5 tests=[AWL=0.030, BAYES_00=-2.599]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id MmZmnIvJgGF9 for <>; Fri, 30 Oct 2009 11:38:10 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 714643A6767 for <>; Fri, 30 Oct 2009 11:38:09 -0700 (PDT)
Received: from (unknown []) by (Postfix) with ESMTP id 7D00A8CB91 for <>; Fri, 30 Oct 2009 14:38:26 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed;; 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;; 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 (unknown []) by (Postfix) with ESMTP id 756588CB90 for <>; Fri, 30 Oct 2009 14:38:26 -0400 (EDT)
Received: from administrators-macbook-pro.local (unknown []) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPSA id 0E9848CB8F for <>; Fri, 30 Oct 2009 14:38:25 -0400 (EDT)
Message-ID: <>
Date: Fri, 30 Oct 2009 11:39:56 -0700
From: Michael D'Errico <>
User-Agent: Thunderbird (Macintosh/20090812)
MIME-Version: 1.0
References: <>
In-Reply-To: <>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 69381002-C583-11DE-8B18-A67CBBB5EC2E-38729857!
Subject: Re: [TLS] Multiple domain names in SNI (was Questions about TLS
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." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-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.


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 "" into their
>> browser.  The browser may decide to send the two names ""
>> and also "" 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