Re: [netconf] x509c2n:cert-to-name problem

Kent Watsen <kent+ietf@watsen.net> Tue, 05 November 2019 02:30 UTC

Return-Path: <0100016e3966831a-74ad59d8-0ce4-4627-8b3e-6cf4becd76a2-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B24D5120033 for <netconf@ietfa.amsl.com>; Mon, 4 Nov 2019 18:30:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
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 dW1gsclN--wX for <netconf@ietfa.amsl.com>; Mon, 4 Nov 2019 18:30:51 -0800 (PST)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3301012000F for <netconf@ietf.org>; Mon, 4 Nov 2019 18:30:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1572921050; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=iMiUlBg7sAPQgk/SMJ6regrbhcTbqDOJ9p2z6UndjPk=; b=XWgABcnBncZ9yVzx/iBf1vXVW+vITAoisJ2bZfhlSQr0RxWetUhzpv5EVtE0azF9 kZcgZnJ5/my7N+rR9kpBOwIimBmQoy5y0B7Cl2LDb8wvYOSduBoQyz5zsf646Y6mO2K 79Qt5gx2KMwS0wqdn5mWyLCH/l39P9i5CJvFsw2g=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100016e3966831a-74ad59d8-0ce4-4627-8b3e-6cf4becd76a2-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_3A928E5A-ABE8-447E-8BDC-B4438637F310"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 05 Nov 2019 02:30:49 +0000
In-Reply-To: <20191104.091119.1760037446043812190.mbj@tail-f.com>
Cc: "netconf@ietf.org" <netconf@ietf.org>
To: Martin Bjorklund <mbj@tail-f.com>
References: <0100016e1a0d419b-b221bfcc-d3cd-4386-a016-474e2303fba0-000000@email.amazonses.com> <20191030.132839.500650494712032488.mbj@tail-f.com> <0100016e1d98c767-57716d36-7f50-41d9-9641-360626517728-000000@email.amazonses.com> <20191104.091119.1760037446043812190.mbj@tail-f.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2019.11.05-54.240.8.88
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/KcVVXSjsHAXasgqtwG4SOdNU7uA>
Subject: Re: [netconf] x509c2n:cert-to-name problem
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Nov 2019 02:30:53 -0000

Hi Martin,


>>>> The "tls-server-parameters" container defines the certificates used to
>>>> authenticate the client's cert.  In many deployments, regardless how
>>>> the client cert is authenticated, the "client-identification" section only
>>>> needs to explain how to extract the "name" from the cert, a fingerprint
>>>> isn't needed to identify either the client's end-entity or some
>>>> intermediate cert.
>>> 
>>> Ok.  To me this sounds like you need a more complex^wsophisticated
>>> client identification mechansim than what a plain cert-to-name gives
>>> you.  I don't think there is anything wrong with the current
>>> cert-to-name grouping.  So let's continue this discussion in the
>>> netconf ML, where this model is being developed.
>> 
>> In an attempt to resolve this issue, I modified both ietf-netconf-server
>> and ietf-restconf-server as follows:
>> 
>> OLD:
>>        uses x509c2n:cert-to-name;
>> 
>> NEW:
>>        uses x509c2n:cert-to-name {
>>          refine "cert-to-name/fingerprint" {
>>            mandatory false;
>>            description
>>              "A 'fingerprint' value does not need to be specified
>>               when the 'cert-to-name' mapping is independent of
>>               fingerprint matching.  A 'cert-to-name' having no
>>               fingerprint value will match any client certificate
>>               and therefore should only be present at the end of
>>               the user-ordered 'cert-to-name' list.";
>>          }
>>        }
> 
> Did you see my email "client identification in ietf-netconf-server"?
> I don't think this refinement is the correct solution.

Having replied to your other message, I still don't understand this statement.  I understand the fingerprint being useful in some scenarios and unnecessary in others.  When unnecessary, as a user, I'd rather not have to configure it.


Kent // contributor