Re: [certid] Need to define "most specific RDN"

Kaspar Brand <ietf-certid@velox.ch> Sun, 04 July 2010 09:59 UTC

Return-Path: <ietf-certid@velox.ch>
X-Original-To: certid@core3.amsl.com
Delivered-To: certid@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8D9EF3A685B for <certid@core3.amsl.com>; Sun, 4 Jul 2010 02:59:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 lEC5LKxZA34o for <certid@core3.amsl.com>; Sun, 4 Jul 2010 02:59:53 -0700 (PDT)
Received: from appendix.velox.ch (appendix.velox.ch [62.75.148.60]) by core3.amsl.com (Postfix) with ESMTP id 4E7DC3A63EC for <certid@ietf.org>; Sun, 4 Jul 2010 02:59:50 -0700 (PDT)
Received: from cortex.velox.ch (84-75-163-235.dclient.hispeed.ch [84.75.163.235]) (authenticated bits=0) by appendix.velox.ch (8.14.4/8.14.4/2.0) with ESMTP id o649xmHd021623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <certid@ietf.org>; Sun, 4 Jul 2010 11:59:49 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=velox.ch; s=appendix-177f; t=1278237589; bh=7mPCZsfXeos+h3Zj8F/Mrkd7/AQ39qEwZ3sbrRP9taY=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ltC0xvOpvBZDPaRhnofx23AjASiLP7onAt/+GPQ0XZPQUqad3h0qxrfx4QvB/b8MY hkEibYq26pJi2AgDmgyy/iDLhZvY2hQN0Rf8TS+XRxBZuhLo0ovLeiuhLj5FOS3fQs 6J6USTEau71K1mYVk3ebRXnEtLa/q2i/s/au07R6pQTIGGQu+e3HPstrxyyKSHZmLd aMgvGvbU6pkHFyHTUCHMiD/yQWzrUrbbuvx1XZqPq3NrOOUNkvC8OH85jeyY1Jg88y dZigZASvcFP/aK7yZKZoTqsFN2Q670psk6HuyuzIdxeFO996NHgyydoxOtl0YG3v6a Bg5V+3rP75+4Q==
Message-ID: <4C305B93.9090001@velox.ch>
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=velox.ch; s=cortex-8a58; t=1278237588; bh=7mPCZsfXeos+h3Zj8F/Mrkd7/AQ39qEwZ3sbrRP9taY=; h=Date:From:MIME-Version:To:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=Kw+dDlz1qVYZn2dbAcObDOuZJmcTyOR7gWUZ/IeSMfnVIrTdTxRh3xJgut+Y+ADUe pEL1Z6dkhRylKUIbLp3qHWFVDYy66h5ZCN4yG8yD+/N8RKdq6yXArmIzcRp2S6Mu9J DUk9q8TPGOqJ+KkbHKciGy43Wzw5PfXg2k/93ba+DTLUoekYS9ApYnFsGA43dcZU6V 3+7/AOaBBbGVNpiOUUJlm+atKHR4/ie1bCzHHf51TqrHUJV1JiQtLJsSwFkryjpszs VrEb62gYJ8e/Z0UMnKKnb9t0/qwPA6DfIqRDz2g9cys6ETnMCmvzRDhznTBO92J1YY SNcFS0syRA9Fg==
Date: Sun, 04 Jul 2010 11:59:47 +0200
From: Kaspar Brand <ietf-certid@velox.ch>
User-Agent: Thunderbird/3.0
MIME-Version: 1.0
To: certid@ietf.org
References: <201006301746.o5UHkIsE019133@fs4113.wdf.sap.corp> <4C2B843A.5010206@stpeter.im>
In-Reply-To: <4C2B843A.5010206@stpeter.im>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [certid] Need to define "most specific RDN"
X-BeenThere: certid@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Representation and verification of identity in certificates <certid.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/certid>, <mailto:certid-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/certid>
List-Post: <mailto:certid@ietf.org>
List-Help: <mailto:certid-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/certid>, <mailto:certid-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jul 2010 09:59:55 -0000

On 30.06.2010 19:51, Peter Saint-Andre wrote:
> On 6/30/10 11:46 AM, Martin Rex wrote:
>> I'm actually confused by refering to one end with "most significant" and
>> the other with "most specific".  Couldn't we just drop the "most significant"
>> entirely and use "least specific" / "most specific" for the two ends?
> 
> Given that we never use the term "most significant" in this I-D, I'd say
> we can remove any mention of it.

I would definitely recommend that.

It's still present in two places in -07, though:

> 2.2.  Subject Naming in PKIX Certificates
>
>    [...]                                            In the DER encoding
>    of a DN, the RDNs are always in order from most significant to least
>    significant (i.e., the first RDN is most significant and the last RDN
>    is least significant); however, in the string representation of a DN
>    as used in various protocols and data formats, the RDNs might be
>    ordered from most significant to least significant (e.g., this is
>    true of LDAP) or from least significant to most significant.

>    3.1.3.  Server Identity Check
> 
>    [...]                                     For example, some X.500
>    implementations order the RDNs in a DN using a left-to-right (most
>    significant to least significant) convention instead of LDAP's right-
>    to-left convention.

After another look at X.501 and some of the LDAP RFCs (2247 in
particular), I'm getting to the conclusion that the "most specific vs.
most significant" distinction is actually a construct which mainly
originates from / applies to the DNS world - and through various RFCs
(among them 2818) somehow made its way into the PKIX world... but it
doesn't seem that for a "classic" X.500 DN there is really a notion of
"most/least specific". [1]

Section 2.2 in -07 also has

>    Because a DN is an ordered sequence, order is preserved in the string
>    representation of a DN.  However, because an RDN is an unordered
>    group of attribute-type-and-value pairs, the string representation of
>    an RDN can differ from the canonical DER encoding; in the canonical
>    encoding, the RDN that is deepest in the tree (and that therefore
>    distinguishes the relative name) is called the "most specific" RDN.

I don't quite understand what you mean by "in the canonical    encoding,
the RDN that is deepest in the tree" - I think the second sentence is
about the (canonical) encoding of an RDN, and an RDN itself can't have a
"most specific" RDN, obviously...

In any case, using both "specific" and "significant" (and mixing in
"most" and "least") in the text is definitely confusing, as pointed out
by Martin. Let's stick to one, at most.

Kaspar


[1] Re-reading section 3.1 in RFC 2818 can actually confirm this
hypothesis, under the following interpretation: "the (most specific)
Common Name field in the Subject field of the certificate MUST be used"
can be understood to mean the domain name which has the highest number
of DNS labels: if the subject has CN=foo.example.net and CN=example.net,
then the first one must be used for the identity check (it's more
specific than CN=example.net), irrespective of its position in the DER
encoded subject, actually.