Re: [dane] Extending TLSA RFC to operate with TLS's new raw public keys

Viktor Dukhovni <viktor1dane@dukhovni.org> Mon, 02 June 2014 02:27 UTC

Return-Path: <viktor1dane@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 5C6671A0281 for <dane@ietfa.amsl.com>; Sun, 1 Jun 2014 19:27:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.9
X-Spam-Level:
X-Spam-Status: No, score=-101.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, USER_IN_WHITELIST=-100] 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 pvrYYrXhSvao for <dane@ietfa.amsl.com>; Sun, 1 Jun 2014 19:27:39 -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 973F91A0155 for <dane@ietf.org>; Sun, 1 Jun 2014 19:27:39 -0700 (PDT)
Received: by mournblade.imrryr.org (Postfix, from userid 1034) id 16E202AB19D; Mon, 2 Jun 2014 02:27:33 +0000 (UTC)
Date: Mon, 02 Jun 2014 02:27:33 +0000
From: Viktor Dukhovni <viktor1dane@dukhovni.org>
To: dane@ietf.org
Message-ID: <20140602022733.GK27883@mournblade.imrryr.org>
References: <201405290805.s4T85HBT008757@new.toad.com> <76254E90-245A-4502-AFBE-74A3038BB08F@vpnc.org> <OFB1999EAD.836E27A5-ON85257CE8.0067D557-85257CEB.000B5F5E@us.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <OFB1999EAD.836E27A5-ON85257CE8.0067D557-85257CEB.000B5F5E@us.ibm.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/8HSpAdp0Q849X-i-bEpcO_0rIqU
Subject: Re: [dane] Extending TLSA RFC to operate with TLS's new raw public keys
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: Mon, 02 Jun 2014 02:27:41 -0000

On Sun, Jun 01, 2014 at 10:04:13PM -0400, Tom Gindin wrote:

> On a technical, or at least quasi-technical point, doesn't usage 3 say
> that it must match the "end-entity certificate given by the server in 
> TLS"?

Usage DANE-EE(3) with selector SPKI(1) matches the subject public
key info of the peer.  While as specified in 6698 this SPKI is
expected to be adorned in X.509 finery, it is a natural extension
to allow the same association to apply to bare public keys.

There is simply no need for a new certificate usage here (one for
which selector 0 would make no sense).  Indeed it would force
server operators to needlessly publish the SPKI digest twice:

	example. IN TLSA 3 1 1 {blob}
	example. IN TLSA 4 1 1 {blob}

for no good reason.

> Certificate usage 4 is used to specify a certificate, or the 
> public key of such a certificate, that MUST match the public key given by 
> the server in TLS or TLSA.  Unlike  certificate usage 3, this usage 
> implies that the server supplies a key with neither validity dates nor 
> name in the session negotiation.

Those qualifications already apply to usage 3 (ops draft document
which specifies this to be published soon), with SPKI(1), DANE-EE(3)
is already a bare key usage, just sometimes embedded in an X.509
cert.  There is no need for a usage 4 (yet), at least not for this
use-case.

-- 
	Viktor.