Re: [Uta] Adoption of draft-rsalz-use-san

Viktor Dukhovni <ietf-dane@dukhovni.org> Wed, 17 March 2021 16:54 UTC

Return-Path: <ietf-dane@dukhovni.org>
X-Original-To: uta@ietfa.amsl.com
Delivered-To: uta@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 15CBF3A0A3E for <uta@ietfa.amsl.com>; Wed, 17 Mar 2021 09:54:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 W973U96l-o_a for <uta@ietfa.amsl.com>; Wed, 17 Mar 2021 09:54:01 -0700 (PDT)
Received: from straasha.imrryr.org (straasha.imrryr.org [100.2.39.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4F2E13A0A38 for <uta@ietf.org>; Wed, 17 Mar 2021 09:54:01 -0700 (PDT)
Received: from [192.168.1.177] (unknown [192.168.1.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by straasha.imrryr.org (Postfix) with ESMTPSA id 9F205D0313 for <uta@ietf.org>; Wed, 17 Mar 2021 12:53:59 -0400 (EDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\))
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
In-Reply-To: <E4D5BAE4-6BCA-4405-B9AA-D83F0F784A81@cisco.com>
Date: Wed, 17 Mar 2021 12:53:59 -0400
Content-Transfer-Encoding: quoted-printable
Reply-To: uta@ietf.org
Message-Id: <585AA601-168F-4D72-9265-FC3FFFBAC1AA@dukhovni.org>
References: <004201d718e1$007959a0$016c0ce0$@gmail.com> <E4D5BAE4-6BCA-4405-B9AA-D83F0F784A81@cisco.com>
To: uta@ietf.org
X-Mailer: Apple Mail (2.3654.60.0.2.21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/uta/sHs6r_LXptBoB64TMPWxT8v6NFQ>
Subject: Re: [Uta] Adoption of draft-rsalz-use-san
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: UTA working group mailing list <uta.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uta>, <mailto:uta-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uta/>
List-Post: <mailto:uta@ietf.org>
List-Help: <mailto:uta-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uta>, <mailto:uta-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Mar 2021 16:54:03 -0000


> On Mar 15, 2021, at 5:58 AM, Eliot Lear <lear=40cisco.com@dmarc.ietf.org> wrote:
> 
> For libraries like OpenSSL I wouldn’t mind throwing in a new flag, for instance, that would be required to validate a cert based on the subject.  That would help these other uses get over the hump over time; perhaps even with a warning of some form emitted.

See X509_check_host(3).  It's behaviour is customisable via the
below flags:

    X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT,
    X509_CHECK_FLAG_NEVER_CHECK_SUBJECT,
    X509_CHECK_FLAG_NO_WILDCARDS,
    X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS,
    X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS.
    X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS.

So what Rich is proposing amounts to changing the default flag
setting from zero to X509_CHECK_FLAG_NEVER_CHECK_SUBJECT, and
then applications that want the legacy behaviour can just clear
that flag bit if they so desire.

-- 
	Viktor.