Re: [dane] dual use of TLSA RR

Viktor Dukhovni <ietf-dane@dukhovni.org> Thu, 09 October 2014 16:27 UTC

Return-Path: <ietf-dane@dukhovni.org>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3C1731A8547 for <dane@ietfa.amsl.com>; Thu, 9 Oct 2014 09:27:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KH20EatfYEVu for <dane@ietfa.amsl.com>; Thu, 9 Oct 2014 09:27:54 -0700 (PDT)
Received: from mournblade.imrryr.org (mournblade.imrryr.org [38.117.134.19]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D8C21A6F86 for <dane@ietf.org>; Thu, 9 Oct 2014 09:27:54 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id 8F44D2AAC8A; Thu, 9 Oct 2014 16:27:52 +0000 (UTC)
Date: Thu, 09 Oct 2014 16:27:52 +0000
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20141009162752.GS13254@mournblade.imrryr.org>
References: <5436AB8A.2090202@riseup.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <5436AB8A.2090202@riseup.net>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/RLrwRreFOLatDjDeder17DCQEr8
Subject: Re: [dane] dual use of TLSA RR
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: dane@ietf.org
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Oct 2014 16:27:56 -0000

On Fri, Oct 10, 2014 at 02:36:42AM +1100, shmick@riseup.net wrote:

> is it possible & legal to incorporate 2 TLSA RRs in a zone file the
> following way for the same protocol/port ie. 25:

Yes, absolutely.  Multiple TLSA RRs can and will appear in a TLSA
RRset, either as a result of key rotation in progress, or because
there are multiple keys valid at the same time.

> Assume postfix has setup 2 certs; an RSA and ECDSA
> 
> If it's possible how would a particular TLSA RR be chosen?

Each TLSA RRs is compared against the server's chain until one
matches.

> Is it based upon negotiated cipher?

No, generally the TLSA RR does not signal a particular public key
algorithm.  With matching type Full(0) one could infer the algorithm
from public key, but in practice it is easier to just compare the
bits regardless.

-- 
	Viktor.