Re: [Spasm] Last Call: <draft-ietf-lamps-eai-addresses-05.txt> (Internationalized Email Addresses in X.509 certificates) to Proposed Standard

tom p. <daedulus@btconnect.com> Thu, 09 March 2017 09:36 UTC

Return-Path: <daedulus@btconnect.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D6772129438 for <ietf@ietfa.amsl.com>; Thu, 9 Mar 2017 01:36:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 msiSOrqTRejJ for <ietf@ietfa.amsl.com>; Thu, 9 Mar 2017 01:36:02 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0094.outbound.protection.outlook.com [104.47.2.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1A111293EE for <ietf@ietf.org>; Thu, 9 Mar 2017 01:36:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RiRjRhhMnFASaxv3nk3jK+8zL9vQCgo3A6L67bUcUnY=; b=Uf5rzA56/ZFnU+UJ5XEnjVyPJZop1YqsgXiPoDNVi7KTeqXrr//dEtpMNIk8k/H4pTrjF7OyORsot34xBBTUIHoho29Rz40dxZCvV3L9UbOj0Pq4Cjk7tPykTBsLbdfGUVcdojOp3SJp5lUjQiJ9zlPpuXJ9ukTiZlSQLx3dhqU=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=btconnect.com;
Received: from pc6 (86.185.203.75) by DB5PR07MB1558.eurprd07.prod.outlook.com (2a01:111:e400:5bc7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.8; Thu, 9 Mar 2017 09:35:58 +0000
Message-ID: <00c401d298b8$616fffa0$4001a8c0@gateway.2wire.net>
From: tom p. <daedulus@btconnect.com>
To: IETF general list <ietf@ietf.org>
References: <alpine.OSX.2.20.1702111606270.2386@ary.qy> <CAAFsWK0KoeeHeKxay=j=NR8AqbzaHXtjNoQNQqRHwUNT3-Pe_Q@mail.gmail.com> <D237E866-CEC3-4A3C-9D5E-0D1B48F1799B@dukhovni.org> <841bb724-7403-4682-3d50-f878f63b0346@cs.tcd.ie> <6d114340-c9a7-e311-e6f9-0614600cafd2@cs.tcd.ie> <CAAFsWK2RMGp0jqesx3cTbN=S7p0WuhH+0AbeJuuiZPF6WCbQOQ@mail.gmail.com> <BCEFAA3C-B711-4269-81C8-4DA0E1AA7AD0@dukhovni.org> <CAAFsWK3yJ9r+6abTXZQsNsey+VcRpdtVv=Hku_54_LZ9y1T2xQ@mail.gmail.com> <B8A5967B-9C19-4167-8A20-B82DFD46A924@dukhovni.org>
Subject: Re: [Spasm] Last Call: <draft-ietf-lamps-eai-addresses-05.txt> (Internationalized Email Addresses in X.509 certificates) to Proposed Standard
Date: Thu, 9 Mar 2017 09:34:35 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [86.185.203.75]
X-ClientProxiedBy: DB6PR0202CA0039.eurprd02.prod.outlook.com (2603:10a6:4:a5::25) To DB5PR07MB1558.eurprd07.prod.outlook.com (2a01:111:e400:5bc7::8)
X-MS-Office365-Filtering-Correlation-Id: 117042ff-b545-4820-0a31-08d466cfb1a1
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB5PR07MB1558;
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1558; 3:/9ImxB9mmd52uHPWrrPdUERm3VEEVUdhKlYEcLMJeVUjqzcCwzkjH+lkx9sYmM6BeHOPnV/RLY6Ph8REcpXSTAh1VRc5s0lKx9tvlTcYTkbXyLDxn0+Qeoh5mvusMgpCoCQMEbbItkYfpgwew2ZyiSOY0c+cFmO9u9FCboefgtrAuVY630YcOYnHoO6dE37UNvXotNkI5d2ivZzuQ93ju4LVMgi05RiZNaLxkMYx01EyZkEKhDiEyNmfVLav/gVbK+ZXi9aP/ff1dtY+zYtgpw==; 25:3H7pvwGdRUzZrCyZeWcTe1NfY7tSDkL1vQP7zhIB7lZIdtBUPkF7AnJOsBGXhoqrue09oMGpAWFiCVuNPJdz2L5ySQFkxRi7ETN5/sYozMtVtQI3qE8fh42D5Bjxd6Bu5KhMZQy6/xpM8A626Plp/N9e3Rr3vrkpMTtHuWjrDINTbw/yRILR5mcmcuXyLqBqJCGtV6dkSNYOT3NpF/6zxe3aP0wdAUHmwMm3fvw7xY4e0Yv17N132DZkoHBbsCi6BBMzUcMkmhNFtKV8Fl6sMkWNzQdwNoDwq1jiKwMmmCP5IFl+Ip/qzwmXOEHzIvnK/+ZpNzeq8FPZrAt2/NzKh4VqJAgk0DNW5ZT+wCWZNdCbsl0AIFpdYZD/EvIbVWc2wdgEFXdnYZ9PQ9K0ZTIsG7A4x2JqibvTSJK7gbBsVvlB3swpG2J0yL/PM86IQN0gSDiiZfL692vpdaJ3nWZQDA==
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1558; 31:sOngp8N3PH+QY6fbD4UpfLGRu+xnDYFx313B06QWUjAQ2YwoNH7g3JLWBQjzFZsm6ID6RN4ye/wdsuKJHgr2/I2Jp9WantCMak0aPMZLNnzgbzS9hruUNa8zmT6pl+iUEoyyH6QR/aZEeaEUM882z+kxHTy2gIsNZlYyOe8jKj/yszSPEsLwsU0Q0vgSNmiYbJL9+HcjcjwXHZPw06b1FJkIxXMxybKuKRZW2qWncpTM4DFNNOPShoj7oMJYl+c+aY89S0FDJPynnVw6/iVOXQ==
X-Microsoft-Antispam-PRVS: <DB5PR07MB155865CD7380FFC1B07258BAC6210@DB5PR07MB1558.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(131327999870524)(211936372134217);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:DB5PR07MB1558; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB1558;
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1558; 4:1VXRuvhzbehdmcKMVkfMkjcbbu65yIEeHVaMg0Mv2ZT8zoWukJ0XlgbJ++esR9IeDe+RR7bvH1msC+H0inSMEjRdILusqOdjNY6XjHz2PjfBc0PE+exCSZqWbWbM415x0A5kPpQl1+xo/ysnGNsO4Qa6Hzw0zj+JyeClhp3PWAqp6zGJGx3/Bh5E2TlWi9xQ3oRpKv4yRluJYlM0tFbaSXv9GsbSynTNVm7T+r7W4v3heMFh+d5yb7kyYYxNJ9CkZ1rGz9kjRrJVJELmJmuzZXQwzCa+f0HiziGni2NTnO4Y26BllScf8ZqnbfY+KuV886DhsIe0gdZocA1snUHfqjUMyGFUVLLcbHxcQ29bpaEqYDUcS8m12UGSECZg6KXLRJikWC93Fgf+cR6yDIAotnrl/ZVSWln8llh4B92EZtyvpDWU1kp4FGOJzTiIdyqDCjeFjW1X6OtezlLFlsrH3XgUNkBiotI1Ezbb4cGx8R0jHby/POZ6Lwjt8reAMvvhDE5FV14qYBdtlFv8we/T0GJErND7JFXTA3rKCbLW3alU34ZFNj0YpN+xRntuuIbQuKkPSWTfwnc6Y3yrFIyMxocY5pizfJDBwMDnqZG7XAibwbTkrSM6Z4h0NjWOLayDMorNioltDck30pfQzlx5GJa+YosfCvnRO3v/Hn+b+SyGOF1o059fXeEGfAnD5uUGWI1/G5w+zKF4uvtujIgqqsAtbW0dUCATpFnSkLXhAmU=
X-Forefront-PRVS: 0241D5F98C
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39450400003)(13464003)(24454002)(377454003)(305945005)(86362001)(7736002)(62236002)(44716002)(81166006)(44736005)(561944003)(2906002)(66066001)(5820100001)(84392002)(9686003)(189998001)(1556002)(47776003)(8676002)(33646002)(93886004)(4720700003)(6916009)(2870700001)(6246003)(81686999)(76176999)(38730400002)(110136004)(116806002)(3846002)(6666003)(50986999)(6496005)(81816999)(5660300001)(53936002)(6116002)(230783001)(61296003)(42186005)(23676002)(6486002)(1456003)(50226002)(50466002)(229853002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB1558; H:pc6; FPR:; SPF:None; MLV:sfv; LANG:en;
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjVQUjA3TUIxNTU4OzIzOmNPSTJqb09zWmt5emw2UXV2bDE1YmI1bzRv?= =?utf-8?B?M3puYnNmRkV2bGdDV1hGT2twYnA3czBxMVZEeHFkMnR1NDNLN2NvM3d5OUt4?= =?utf-8?B?bmZnUVJVYlN5Lzljc1EyRU9mbnlNOFpnSUdrVFg2ZjFDNkNTREZ1elhiaWRJ?= =?utf-8?B?UTJEU2dPK21jdDNSU0tQKzF3RkJ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yIJ4NoOgsK9gtCc8gDjBEJ64AME4vbFEDWcZK0uh1YEY/4T8C2U/mCXyPX6rOk0V6jYSL1v5r934/GqUQPmHpbyQ==; 5:P2+0KKiMbx3auA9Vk6vZflkQAcPkQXDT5lZDokDbqf56oO7WkRVw1HaaflHhQAyq0xxJk0dFFEPlVAhdKrIaR+dzVVvGhjygeG7DonvhNAWhgMSgxgS3MNpaq8ngd0f1/0Yds9Xc07bbg90mZtDRwJqK6j9eIpFZiu/B4TXdQG0=; 24:fgbdk6mCYqWiXPJGnHdVfxs1WZCsmX4w2QzY8hVsixS+9El96J15HPCrwmQlCUxhH288ND+s0U8gmoj6GPfSztw/KstmjU1vYlVdJEBy6zk=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB1558; 7:/cu/s5eEhSDjZ5ELOMpSo4eBJCovKZitwiFsuf91q1nqfvBrtbMGSnP41pdPo34LgXFcaV7qW6FqXIxuJDWiRo3l4mc9XuAMuO6YNgMgj2BTaDF9lw0KoQPqPlr/cpic4rwXkN2tXzOd3zUwl7ZW65ZQZazLa3pkEiXR6QqLaHnpAm+E1YwM5ecra2NgIf5RJF4SwJINWch8IuuFLBsHbBF/Smt7sPX92IE4RGV+FIwbbUTVOguvHSxAtXd8z5ygTW1M/wIu320szyU3eO3tn177kIU8dZ+WwlHnoH1jo1YQdxuCNiB4lFUOAJxZi74obIVgrqHQVtb+1PwZE45fcA==
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2017 09:35:58.8279 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB1558
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/5oqJJY1leIZvHoUTGwttaWIZ-NE>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Mar 2017 09:36:05 -0000

----- Original Message -----
From: "Viktor Dukhovni" <ietf-dane@dukhovni.org>
To: <spasm@ietf.org>rg>; "IETF general list" <ietf@ietf.org>
Sent: Thursday, March 09, 2017 3:19 AM
> On Mar 8, 2017, at 8:17 PM, Wei Chuang <weihaw@google.com> wrote:
>
> Okay.  I think the direction then is to have SmtpUTF8Name respect
rfc822Name name constraints and vice versa.

Well, no, the simplest proposal on the table is for SmtpUTF8Name to
be *prohibited* when rfc822Name constraints are present and SmtpUTF8Name
constraints are not.  When both present, they can operate independently.

<tp>

Getting security right can be tricky as the legion of failed attempts
that make it to RFC testify but what you are proposing here seems so
simple, so obviously the right thing to do that I am puzzled, bewildered
even, that anyone can disagree with you.

Tom Petch

The verifier logic is then:

1. If neither rfc822Name constraints nor SmtpUTF8Name constraints
           are present in any CA certificate in the chain, any mixture
of
           rfc822Name and SmtpUTF8Name SAN elements is valid.

2. If some certificate in the chain contains *only* rfc822Name
   constraints, then these apply to rfc822Name SAN elements, but
   all SmtpUTF8Names are prohibited.

3. When both types of constraints are present in all CA certificates
           that have either type, then constraints for each SAN type are
   exclusively based on just the corresponding constraint type.

4. If some certificate in the chain contains only SmtpUTF8Name
     constraints then those are unavoidably at risk of bypass via
           rfc822Name SAN elements when processed by legacy verifiers.
   Therefore, this should be avoided, and the CA needs to
     publish rfc822Name constraints that prevent bypass.  Such
   constraints *need not* be equivalent (not always possible)
   to the desired SmtpUTF8Name constraints.  Rather, it suffices
   to not permit rfc822Name elements that would be prohibited
   if they were simply cut/pasted (with no A-label to U-label
           conversions) as SmtpUTF8Name elements.  It is not necessary
   for these to permit everything that SmtpUTF8Name permits.

Thus for example, if SmtpUtf8Name only permits addresses in the non
NR-LDH
domain "духовный.org" (or a specific set of addresses in such a domain),
then the corresponding rfc822Name constraint could just permit "." (or
the
reserved "invalid" TLD if that's preferable) which is not a usable email
domain.  This ensures that only the permitted SmtpUTF8Name SANs are used
and no rfc822Name SANs are used.

If, instead the Smtp8Name constraints are excluded non-ASCII address
forms,
then since these have no literal rfc822Name equivalents, the rfc822Name
constraints can be omitted with the same effect.

Only when the intention is to permit NR-LDH domains with either ASCII or
UTF-8 localparts (or an all-ASCII full address) do the rfc822Name and
SmtpUTF8Name constraints need to be fully equivalent.  This is of course
trivial to do.  Just cut/paste the same string into both types of
constraint.

--
Viktor.