
From nobody Mon Jun  1 05:22:24 2015
Return-Path: <simon@josefsson.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D1C21A8979 for <pkix@ietfa.amsl.com>; Mon,  1 Jun 2015 05:22:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, SPF_PASS=-0.001] autolearn=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 CXiM35Ere28o for <pkix@ietfa.amsl.com>; Mon,  1 Jun 2015 05:22:22 -0700 (PDT)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (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 B32C51A8952 for <pkix@ietf.org>; Mon,  1 Jun 2015 05:22:21 -0700 (PDT)
Received: from latte.josefsson.org ([155.4.17.3]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id t51CM8Gi018536 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <pkix@ietf.org>; Mon, 1 Jun 2015 14:22:09 +0200
Date: Mon, 1 Jun 2015 14:22:06 +0200
From: Simon Josefsson <simon@josefsson.org>
To: pkix@ietf.org
Message-ID: <20150601142206.1d7bedc0@latte.josefsson.org>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/wokksTQAWwZNd=vD=2Car6V"; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.98.7 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/XjvsJJgPsIYtqK0AcxzEpw0d38U>
Subject: [pkix] Strawman on EdDSA/Ed25519 for PKIX Certificate/CRLs
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Jun 2015 12:22:23 -0000

--Sig_/wokksTQAWwZNd=vD=2Car6V
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi,

There has been discussion on the TLS list about supporting EdDSA as a
new public-key digital signature algorithm.  To do that you need X.509
certificates with EdDSA public keys in them.  To get the ball rolling on
what it would involve to make this happen, I have started working on a
document on this:

https://tools.ietf.org/html/draft-josefsson-tls-ed25519-00

What I'm looking for here is review from PKIX experts to identify what
is missing from this document to make it implementable.

Please consider this an experiment to see what kind of specification
activity it would require to make EdDSA certs a reality.

If anyone wants to provide feedback in the form of merge requests or
issues in a bug tracker, please see the repository I created around
this document:

https://gitlab.com/jas/ietf-pkix-eddsa

Thanks,
/Simon

--Sig_/wokksTQAWwZNd=vD=2Car6V
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signatur

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVbE5vAAoJEIYLf7sy+BGduOUH/RfXQbbYlvvCVRfDrGHSNehC
ZkvLSJ6HphraToj7qa5SYEzDOiQ5G7YnYm+RASEchcdh94qOlHDpU/1wixddCJDu
NRF9C3tDe36EfEeu6e3zYLIDQoI+kJt8Ua0f8Eu23KgYe6Js4ZsnGopkY9A/C/fS
CnQF22Ut+n8BL5BmNrvEDup2mQl5Vag9zXRP28IiJ8VtGtCNRHvk8W5He3dYAPMp
a1fZ8o5RtJEjnLGiosDOkGAtY1QeuJjK7ac57TTui5Tuagb87O69hxlx+CfRUYp9
b2TCwlPeoGeTw5cANaddtB94dy+szMH9Da/ZaDzC8OazX45MMFMwlBZQ1NRJ2VE=
=AuBf
-----END PGP SIGNATURE-----

--Sig_/wokksTQAWwZNd=vD=2Car6V--


From nobody Mon Jun  1 05:39:37 2015
Return-Path: <mferguson@amsl.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 13B9F1ACD4F for <pkix@ietfa.amsl.com>; Fri, 29 May 2015 09:43:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level: 
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 zsx_ahsLH8JE for <pkix@ietfa.amsl.com>; Fri, 29 May 2015 09:43:15 -0700 (PDT)
Received: from mail.amsl.com (mail.amsl.com [IPv6:2001:1900:3001:11::28]) by ietfa.amsl.com (Postfix) with ESMTP id 4F85C1ACD8F for <pkix@ietf.org>; Fri, 29 May 2015 09:43:15 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by c8a.amsl.com (Postfix) with ESMTP id 376F81E3EBE; Fri, 29 May 2015 09:42:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from c8a.amsl.com ([127.0.0.1]) by localhost (c8a.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dnqJHoQ7Y9Sh; Fri, 29 May 2015 09:42:22 -0700 (PDT)
Received: from [10.0.1.3] (pool-100-36-211-121.washdc.fios.verizon.net [100.36.211.121]) by c8a.amsl.com (Postfix) with ESMTPA id 7C4BE1E12A2; Fri, 29 May 2015 09:42:21 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Megan Ferguson <mferguson@amsl.com>
In-Reply-To: <5568871B.80300@cs.tcd.ie>
Date: Fri, 29 May 2015 12:43:13 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <4A208A4D-1391-4A69-B691-8DF1DAD3B7F9@amsl.com>
References: <20150529110916.D369A180092@rfc-editor.org> <06f501d09a23$e6f47e20$b4dd7a60$@akayla.com> <5568871B.80300@cs.tcd.ie>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/pswyejx0b2tvgZNIyJa5-PNgBOE>
X-Mailman-Approved-At: Mon, 01 Jun 2015 05:39:35 -0700
Cc: Stefan Santesson <stefan@aaa-sec.com>, pkix@ietf.org, RFC System <rfc-editor@rfc-editor.org>
Subject: Re: [pkix] [Technical Errata Reported] RFC6818 (4381)
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 May 2015 16:43:17 -0000

Stephen,

Thank you for reporting this issue.  We have removed this erratum as =
requested.

Thank you.

RFC Editor/mf

On May 29, 2015, at 11:34 AM, Stephen Farrell =
<stephen.farrell@cs.tcd.ie> wrote:

>=20
> Yep, I asked the RFC editor folks to just delete it. Happens
> from time to time.
>=20
> S.
>=20
> On 29/05/15 16:26, Peter Yee wrote:
>> This seems to be junk or a joke.  The term "Void Elements" appears =
nowhere
>> in RFC 6818, and even if it did, the original text and the corrected =
text
>> are the same.  The notes make no sense.
>>=20
>> 			-Peter
>>=20
>> -----Original Message-----
>> From: RFC Errata System [mailto:rfc-editor@rfc-editor.org]=20
>> Sent: Friday, May 29, 2015 4:09 AM
>> To: peter@akayla.com; stephen.farrell@cs.tcd.ie;
>> Kathleen.Moriarty.ietf@gmail.com; kent@bbn.com; stefan@aaa-sec.com
>> Cc: G.F.B.2015@outlook.com; pkix@ietf.org; rfc-editor@rfc-editor.org
>> Subject: [Technical Errata Reported] RFC6818 (4381)
>>=20
>> The following errata report has been submitted for RFC6818, "Updates =
to the
>> Internet X.509 Public Key Infrastructure Certificate and Certificate
>> Revocation List (CRL) Profile".
>>=20
>> --------------------------------------
>> You may review the report below and at:
>> http://www.rfc-editor.org/errata_search.php?rfc=3D6818&eid=3D4381
>>=20
>> --------------------------------------
>> Type: Technical
>> Reported by: Gerard Barlow <G.F.B.2015@outlook.com>
>>=20
>> Section: GLOBAL
>>=20
>> Original Text
>> -------------
>> Void Elements
>>=20
>> Corrected Text
>> --------------
>> Void Elements
>>=20
>> Notes
>> -----
>> Slow the out of control data rate.  slim the file system.  enhance
>> performance
>>=20
>> Instructions:
>> -------------
>> This erratum is currently posted as "Reported". If necessary, please =
use
>> "Reply All" to discuss whether it should be verified or rejected. =
When a
>> decision is reached, the verifying party (IESG) can log in to change =
the
>> status and edit the report, if necessary.=20
>>=20
>> --------------------------------------
>> RFC6818 (draft-ietf-pkix-rfc5280-clarifications-11)
>> --------------------------------------
>> Title               : Updates to the Internet X.509 Public Key
>> Infrastructure Certificate and Certificate Revocation List (CRL) =
Profile
>> Publication Date    : January 2013
>> Author(s)           : P. Yee
>> Category            : PROPOSED STANDARD
>> Source              : Public-Key Infrastructure (X.509)
>> Area                : Security
>> Stream              : IETF
>> Verifying Party     : IESG
>>=20
>>=20
>>=20
>>=20
>=20


From nobody Tue Jun  2 06:42:29 2015
Return-Path: <wwwrun@rfc-editor.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB6CE1AC422 for <pkix@ietfa.amsl.com>; Tue,  2 Jun 2015 04:36:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.912
X-Spam-Level: 
X-Spam-Status: No, score=-106.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 LAaqEZhiqHL9 for <pkix@ietfa.amsl.com>; Tue,  2 Jun 2015 04:36:06 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) by ietfa.amsl.com (Postfix) with ESMTP id 3F1D31AC41A for <pkix@ietf.org>; Tue,  2 Jun 2015 04:36:06 -0700 (PDT)
Received: by rfc-editor.org (Postfix, from userid 30) id 04F62180207; Tue,  2 Jun 2015 04:33:42 -0700 (PDT)
To: pritikin@cisco.com, peter@akayla.com, dharkins@arubanetworks.com, stephen.farrell@cs.tcd.ie, Kathleen.Moriarty.ietf@gmail.com, kent@bbn.com, stefan@aaa-sec.com
X-PHP-Originating-Script: 6000:errata_mail_lib.php
From: RFC Errata System <rfc-editor@rfc-editor.org>
Message-Id: <20150602113342.04F62180207@rfc-editor.org>
Date: Tue,  2 Jun 2015 04:33:42 -0700 (PDT)
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/LIr35lmBH3itFWYwKKxSNA6l_Lo>
X-Mailman-Approved-At: Tue, 02 Jun 2015 06:42:24 -0700
Cc: pkix@ietf.org, pierce.leonberger@baesystems.com, rfc-editor@rfc-editor.org
Subject: [pkix] [Technical Errata Reported] RFC7030 (4384)
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jun 2015 11:36:08 -0000

The following errata report has been submitted for RFC7030,
"Enrollment over Secure Transport".

--------------------------------------
You may review the report below and at:
http://www.rfc-editor.org/errata_search.php?rfc=7030&eid=4384

--------------------------------------
Type: Technical
Reported by: Pierce Leonberger <pierce.leonberger@baesystems.com>

Section: 4.5.2

Original Text
-------------
CsrAttrs ::= SEQUENCE SIZE (0..MAX) OF AttrOrOID

AttrOrOID ::= CHOICE (oid OBJECT IDENTIFIER, attribute Attribute }

Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE {
     type   ATTRIBUTE.&id({IOSet}),
     values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) }

Corrected Text
--------------
AttrOrOID ::= CHOICE {
      oid OBJECT IDENTIFIER, 
      attribute Attribute{YouNeedToDefineOrReferenceAnObjectSet}
}

Notes
-----
1. The AttrOrOID CHOICE was started with a '(' versus a '{'.

2. Attribute{} is a parameterized type and you are missing the parameter reference within the AttrOrOID CHOICE for "attribute".

3. You need to define or reference the object set to be used in #2.

Highly recommend you create an ASN.1 Module as part of this specification.  This will make it clear which specifications (and the versions there of) you are importing types from (i.e. Attribute{}) and the tagging that should be used (module level).  If you need to define a new object set for #3 then this new module would be the perfect home for it.

Instructions:
-------------
This erratum is currently posted as "Reported". If necessary, please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party (IESG)
can log in to change the status and edit the report, if necessary. 

--------------------------------------
RFC7030 (draft-ietf-pkix-est-09)
--------------------------------------
Title               : Enrollment over Secure Transport
Publication Date    : October 2013
Author(s)           : M. Pritikin, Ed., P. Yee, Ed., D. Harkins, Ed.
Category            : PROPOSED STANDARD
Source              : Public-Key Infrastructure (X.509)
Area                : Security
Stream              : IETF
Verifying Party     : IESG


From nobody Thu Jun  4 22:55:16 2015
Return-Path: <noloader@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D9121B2C13 for <pkix@ietfa.amsl.com>; Thu,  4 Jun 2015 22:55:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 gauSEC6ftvwX for <pkix@ietfa.amsl.com>; Thu,  4 Jun 2015 22:55:13 -0700 (PDT)
Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 654931B2C0C for <pkix@ietf.org>; Thu,  4 Jun 2015 22:55:13 -0700 (PDT)
Received: by igblz2 with SMTP id lz2so7597907igb.1 for <pkix@ietf.org>; Thu, 04 Jun 2015 22:55:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:reply-to:date:message-id:subject:from:to:content-type;  bh=okoehx7ifjn9N4qBEaTBN1W8iy4tt3wLefq9HmEmr/A=; b=TnV1BQ4prU3Pe4FOFamaPnkB0wLRMLlue+Lygy48cynOec2hmCXyLw94wa60FqSKFw a7L5mqniUroo+oPnN8Slgr4I8NgBCoS2ChI8sYz77GjVHvM7KVnakgqeZW9BM9j4JJo2 1nk2Fg/8V0POwYaFoSR42Z8otGXU4ogN7nKDc11hLiIMtmptJfrR9HAVENQCXXXNTzmZ 9zKxPydzbfRSczrtUo0WzJK9sDQLp+WCg4aSDntB9XtH6kAmCmKG1awLcJ4b0xzXof7j nAWURqU/xSzN3D1LT8Fw6xoTmc7yTPeFs1iTZNZFtpblcNa+bn6StFAOQNxjmjvsGnbm w2jQ==
MIME-Version: 1.0
X-Received: by 10.50.25.162 with SMTP id d2mr10137396igg.11.1433483712554; Thu, 04 Jun 2015 22:55:12 -0700 (PDT)
Received: by 10.36.77.15 with HTTP; Thu, 4 Jun 2015 22:55:12 -0700 (PDT)
Date: Fri, 5 Jun 2015 01:55:12 -0400
Message-ID: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
To: PKIX <pkix@ietf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/MByG-XZmSMs5tkHaqzvi450CzZ0>
Subject: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: noloader@gmail.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 05:55:15 -0000

This issue came up on the DBOUND list.

Relevant RFCs like 5280 and 6125, allow wildcards and don't restrict
them. Some folks have taken the lack of restriction to allow matching
of *.COM, *.NET and *.ORG. It seems like a logical leap since there is
no restriction placed on them (or even '*' or '*.*').

When questioned, they state the RFCs don't prohibit them. See, for
example, "Overly permissive hostname matching" for Wget and GnuTLS
(https://lists.gnu.org/archive/html/bug-wget/2014-03/msg00093.html and
https://lists.gnupg.org/pipermail/gnutls-devel/2014-March/006833.html).
>From the GnuTLS reply:

    That's a very interesting point, but I am not sure there is an easy
    fix. GnuTLS follows RFC2818 for hostname verification, and that
    document is pretty clear on the scope of the wildcards. It mentions
    for example: "f*.com matches foo.com". Maybe we can forbid a first
    level wildcard, but is that practice documented somewhere? I don't see
    any IETF documents updating RFC2818.

The list is actually larger than those two projects, and includes
others, like Ruby, Java, .Net, Cocoa/CocoaTouch and PERL. Its quite an
impressive list of offenders. Some offenders, like Ruby, have fixed
their validators
(https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/).
Others have not.

In case its not obvious, no one organization or entity controls some
of the gTLDs, like *.COM, *.NET and *.ORG. It makes no sense to allow
a match on them in a CN or SAN.

The CA/Browser Forums, Baseline Requirements document does not allow
them under Section 3.2.2. But the CA/B is a different set of issuing
policies, and IETF conforming implementations don't use the CA/B.

Please address this issue in the RFCs.


From nobody Fri Jun  5 00:45:47 2015
Return-Path: <noloader@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9DD31B2D24 for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 00:45:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 BSmPkVIMcPeh for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 00:45:45 -0700 (PDT)
Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CC03D1A90FD for <pkix@ietf.org>; Fri,  5 Jun 2015 00:45:44 -0700 (PDT)
Received: by ieclw1 with SMTP id lw1so52723213iec.3 for <pkix@ietf.org>; Fri, 05 Jun 2015 00:45:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=XLhvjYKEikQ+IxE3oMCv3nMCj4NtIp1Vsc/VqDlHFM8=; b=FnkUJoPqkDbKvUcZ0t4+KDd+L9F74pDw/6Da2cXymJVljS2pWmNM5vgpjqwSyBEcSX SMIlRNn2nHhPHy14sBExmPJZrTy+8xpUyTJvl3caUt3Y8WnLPR5DQDVFZG7qADlc3qc3 fc6S1oOoyI/aHHRTvaEr4DPj/N1iiS4m2TPbG3gqZCQ715BIM0LVZCsGDlYv3FH+opNt hP8Zb8IoN4q2wNmH6BJdaps3oNSKHwALLPKKknxC/4JF/5yRMk+vQ4QL03T822S/vDgZ pDE0gWxdTAskZI5B3l3kHhpLOnvqMN1mUTrRI+ez1w3qHFLnph9RsIAlUK6ZGBGvvu1q tBqg==
MIME-Version: 1.0
X-Received: by 10.107.159.77 with SMTP id i74mr2720630ioe.9.1433490344257; Fri, 05 Jun 2015 00:45:44 -0700 (PDT)
Received: by 10.36.77.15 with HTTP; Fri, 5 Jun 2015 00:45:44 -0700 (PDT)
In-Reply-To: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com>
Date: Fri, 5 Jun 2015 03:45:44 -0400
Message-ID: <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
To: PKIX <pkix@ietf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/avwvgun4px0ZaBmj8dHzisZGEw0>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: noloader@gmail.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 07:45:47 -0000

Below is the current language (thanks TS). It clearly allows matching
*.COM if the wildcard is in the leftmost label.

And it may allow match just "*", if that is interpreted as the
leftmost label (but not the center label or rightmost label). Stranger
things have happened....

Jeff

(6.4.3. Checking of Wildcard Certificates)

   1.  The client SHOULD NOT attempt to match a presented identifier in
       which the wildcard character comprises a label other than the
       left-most label (e.g., do not match bar.*.example.net).

   2.  If the wildcard character is the only character of the left-most
       label in the presented identifier, the client SHOULD NOT compare
       against anything but the left-most label of the reference
       identifier (e.g., *.example.com would match foo.example.com but
       not bar.foo.example.com or example.com).

   3.  The client MAY match a presented identifier in which the wildcard
       character is not the only character of the label (e.g.,
       baz*.example.net and *baz.example.net and b*z.example.net would
       be taken to match baz1.example.net and foobaz.example.net and
       buzz.example.net, respectively).  However, the client SHOULD NOT
       attempt to match a presented identifier where the wildcard
       character is embedded within an A-label or U-label [IDNA-DEFS] of
       an internationalized domain name [IDNA-PROTO].


On Fri, Jun 5, 2015 at 1:55 AM, Jeffrey Walton <noloader@gmail.com> wrote:
> This issue came up on the DBOUND list.
>
> Relevant RFCs like 5280 and 6125, allow wildcards and don't restrict
> them. Some folks have taken the lack of restriction to allow matching
> of *.COM, *.NET and *.ORG. It seems like a logical leap since there is
> no restriction placed on them (or even '*' or '*.*').
>
> When questioned, they state the RFCs don't prohibit them. See, for
> example, "Overly permissive hostname matching" for Wget and GnuTLS
> (https://lists.gnu.org/archive/html/bug-wget/2014-03/msg00093.html and
> https://lists.gnupg.org/pipermail/gnutls-devel/2014-March/006833.html).
> From the GnuTLS reply:
>
>     That's a very interesting point, but I am not sure there is an easy
>     fix. GnuTLS follows RFC2818 for hostname verification, and that
>     document is pretty clear on the scope of the wildcards. It mentions
>     for example: "f*.com matches foo.com". Maybe we can forbid a first
>     level wildcard, but is that practice documented somewhere? I don't see
>     any IETF documents updating RFC2818.
>
> The list is actually larger than those two projects, and includes
> others, like Ruby, Java, .Net, Cocoa/CocoaTouch and PERL. Its quite an
> impressive list of offenders. Some offenders, like Ruby, have fixed
> their validators
> (https://www.ruby-lang.org/en/news/2015/04/13/ruby-openssl-hostname-matching-vulnerability/).
> Others have not.
>
> In case its not obvious, no one organization or entity controls some
> of the gTLDs, like *.COM, *.NET and *.ORG. It makes no sense to allow
> a match on them in a CN or SAN.
>
> The CA/Browser Forums, Baseline Requirements document does not allow
> them under Section 3.2.2. But the CA/B is a different set of issuing
> policies, and IETF conforming implementations don't use the CA/B.
>
> Please address this issue in the RFCs.


From nobody Fri Jun  5 02:28:48 2015
Return-Path: <tomosann@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3CF1F1ACD5E for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 02:28:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=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 5vKFesT1W7Aw for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 02:28:45 -0700 (PDT)
Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8C19E1AC3CC for <pkix@ietf.org>; Fri,  5 Jun 2015 02:28:45 -0700 (PDT)
Received: by labpy14 with SMTP id py14so50083084lab.0 for <pkix@ietf.org>; Fri, 05 Jun 2015 02:28:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=53iMOKLGEleHf/U6tpqCb4bADKVY3Rq9QUUeff8/U/0=; b=tzmo1k2ZgILgd46TVS7BxJMTjk6ap1aYLfd3s95n1kvGOOJPA8aDOaZ1oxyqfyHOzQ t3rSolhPx661tS2Imr36iKlbcTHOnZ0+UEFrS8J9/LXsbzIfsqMyMirKVX++f7NCpgG8 yPSz1K5tPaMTtoKGHufdHyBWcxcHlvM8nJZnFVKNCE1z8qRlTOPTdmhIHZqkNNz+utyk SyY16pToXIW+wdnRj+UC5+K90zc51VNW4qNav3PwCVo4rIrKYQ3T/Iy2wyMO3ZNxWLHz 5CpmvG/ZT257IhAp7VAMm4inTDutE9Nmlna2RI9BLAA224+HpIzHvzhRznOwM8Jyi0KR m2nA==
MIME-Version: 1.0
X-Received: by 10.152.1.4 with SMTP id 4mr2459693lai.25.1433496524059; Fri, 05 Jun 2015 02:28:44 -0700 (PDT)
Sender: tomosann@gmail.com
Received: by 10.25.143.212 with HTTP; Fri, 5 Jun 2015 02:28:43 -0700 (PDT)
In-Reply-To: <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com>
Date: Fri, 5 Jun 2015 18:28:43 +0900
X-Google-Sender-Auth: bJ8e2oLTga4dFPmDsIDoEbxfg-M
Message-ID: <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com>
From: Tomoyuki Sahara <sahara@surt.net>
To: noloader@gmail.com
Content-Type: multipart/alternative; boundary=089e013c66a81a78b80517c1eb80
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/GFCaTa7rx5ckzuY85wsYj0AGPkM>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 09:28:47 -0000

--089e013c66a81a78b80517c1eb80
Content-Type: text/plain; charset=UTF-8

On Fri, Jun 5, 2015 at 4:45 PM, Jeffrey Walton <noloader@gmail.com> wrote:

> And it may allow match just "*", if that is interpreted as the
> leftmost label (but not the center label or rightmost label). Stranger
> things have happened....
>

A site in Alexa top 10,000 presents such a certificate (but the cerfiticate
is self-singed so it should be site administrator's mistake).

Fortunately, Mozilla and libressl won't match such wildcards to any domain
because they checks if presented identifier in server's certificate has at
least 2 dots (".").

But the "two-dots" check is far from perfect:

- A number of ccTLDs have more levels (e.g. www.example.co.jp)
- It prevents new gTLDs from using wildcard certificates like "*.gtld".

It can be more strict with Public Suffix List in theory but I don't think
it is a good idea in practice.

Any ideas?


Thanks,
Tomoyuki

--089e013c66a81a78b80517c1eb80
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Fri, Jun 5, 2015 at 4:45 PM, Jeffrey Walton <span dir=
=3D"ltr">&lt;<a href=3D"mailto:noloader@gmail.com" target=3D"_blank">noload=
er@gmail.com</a>&gt;</span> wrote:<div class=3D"gmail_extra"><div class=3D"=
gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
And it may allow match just &quot;*&quot;, if that is interpreted as the<br=
>
leftmost label (but not the center label or rightmost label). Stranger<br>
things have happened....<br></blockquote><div><br></div><div>A site in Alex=
a top 10,000 presents such a certificate (but the cerfiticate</div><div>is =
self-singed so it should be site administrator&#39;s mistake).</div><div><b=
r></div><div>Fortunately, Mozilla and libressl won&#39;t match such wildcar=
ds to any domain</div><div>because they checks if presented identifier in s=
erver&#39;s certificate has at</div><div>least 2 dots (&quot;.&quot;).</div=
><div><br></div><div>But the &quot;two-dots&quot; check is far from perfect=
:</div><div><br></div><div>- A number of ccTLDs have more levels (e.g. <a h=
ref=3D"http://www.example.co.jp">www.example.co.jp</a>)</div><div>- It prev=
ents new gTLDs from using wildcard certificates like &quot;*.gtld&quot;.</d=
iv><div><br></div><div>It can be more strict with Public Suffix List in the=
ory but I don&#39;t think</div><div>it is a good idea in practice.</div><di=
v><br></div><div>Any ideas?</div><div><br></div><div><br></div><div>Thanks,=
</div><div>Tomoyuki</div><div><br></div></div></div></div>

--089e013c66a81a78b80517c1eb80--


From nobody Fri Jun  5 03:42:53 2015
Return-Path: <noloader@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6C181A1B1C for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 03:42:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 q2NoXrs3ypZq for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 03:42:50 -0700 (PDT)
Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DB2321A1B00 for <pkix@ietf.org>; Fri,  5 Jun 2015 03:42:49 -0700 (PDT)
Received: by iebmu5 with SMTP id mu5so19967042ieb.1 for <pkix@ietf.org>; Fri, 05 Jun 2015 03:42:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=MMTaHBvkC8D3zL3G2fxgaDMKjHTvbXgkuzckR1SXsaA=; b=0Pkjq9Zr3w26L68tEN7RPvlihSK0KNsFsmxvkzT70tSqEJTM5eUka/cURGr2jTkQpl /4UYL/fXpjVQkMohz3JYsNdkPG0vC/Bgak8Klb4yh6tQ3ZoUbKHYiH0LdR5Pg1HItfGe zRrgEcLp7CgIaqWpkjW/IrCRtSTogJdX9A+zRnF/OQo9Amhyh0TqiEds952EISQn/pjv QJEfWvS69FpaWqywjwQPXHH0oeHdVGcWupYe/5yL9ULinvq7TxmU+lQfExpDyeiIzfEc L4rAXl6AIa+8VR84W4pA/Qr9joOSO5CDRrrQVKF4vszBNBaKJkrwavc8VqPOxTyEscO0 foYg==
MIME-Version: 1.0
X-Received: by 10.50.30.105 with SMTP id r9mr40528944igh.11.1433500969295; Fri, 05 Jun 2015 03:42:49 -0700 (PDT)
Received: by 10.36.77.15 with HTTP; Fri, 5 Jun 2015 03:42:49 -0700 (PDT)
In-Reply-To: <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com>
Date: Fri, 5 Jun 2015 06:42:49 -0400
Message-ID: <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
To: Tomoyuki Sahara <sahara@surt.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/50_myVKqpdkUftlxh04qA4LvjIw>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: noloader@gmail.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 10:42:51 -0000

On Fri, Jun 5, 2015 at 5:28 AM, Tomoyuki Sahara <sahara@surt.net> wrote:
> On Fri, Jun 5, 2015 at 4:45 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>>
>> And it may allow match just "*", if that is interpreted as the
>> leftmost label (but not the center label or rightmost label). Stranger
>> things have happened....
>
>
> A site in Alexa top 10,000 presents such a certificate (but the cerfiticate
> is self-singed so it should be site administrator's mistake).
>
> Fortunately, Mozilla and libressl won't match such wildcards to any domain
> because they checks if presented identifier in server's certificate has at
> least 2 dots (".").
>
> But the "two-dots" check is far from perfect:
>
> - A number of ccTLDs have more levels (e.g. www.example.co.jp)
> - It prevents new gTLDs from using wildcard certificates like "*.gtld".
>
> It can be more strict with Public Suffix List in theory but I don't think
> it is a good idea in practice.
>
> Any ideas?

Tough problem in general.

(1) At the second label (with the leftmost as a wildcard), there are
three top levels to consider.

    (A) Traditional Top Level Domains (call them gTLDs). *.COM, *.NET, *.MIL,etc
    (B) Country Top Level Domains (call them ccTLDs). *.UK, *.CN, etc
    (C) Vanity Top level Domains (call them vTLDS). *.GOOLGE and friends

We can remediate (A) because its an exhaustive list. We just say NO.

We can remediate (B) because its an exhaustive list of about 250, and
we can build a list of the authorities offline. In the absence of a
declared authority or delegate, we just say NO.

I think (A) and (B) could (and should) be called out in PKIX
validation because validation is within purview of PKIX and the rules
are obvious.

I don't know how to remediate (C). How do we say, *.GOOGLE is OK if
its certified by Google but not others? When we encounter *.GOOGLE
that claims to be certified by Google, how do we know its authentic?

For (C), the RFC should document the risk in Security Considerations
(if it has no remediations or rules for validation).

(2) Other labels

DBOUND is trying to work out the details of (2) and (1)(C). They may
be trying to work out the details of (1)(A) and (1)(B), too.

We need the rules now, so there's probably no reason to wait for
DBOUND to deliver something. Plus, there's no guarantees DBOUND will
be delivering anything useful for any of these case (including (1)(A)
and (1)(B)). Finally, we already have some rules in RFC 6125, so
validation is within purview of PKIX.

Jeff


From nobody Fri Jun  5 05:09:51 2015
Return-Path: <tom@ritter.vg>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9B7791A0368 for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 05:09:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level: 
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, SPF_PASS=-0.001] autolearn=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 9N9ywmqOdcGs for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 05:09:48 -0700 (PDT)
Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2ED781A033A for <pkix@ietf.org>; Fri,  5 Jun 2015 05:09:48 -0700 (PDT)
Received: by qgg3 with SMTP id 3so5070355qgg.2 for <pkix@ietf.org>; Fri, 05 Jun 2015 05:09:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ritter.vg; s=vg; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=UC20oTg8xzkafKMTsuJMsYEroDHd03huwbAyKbkiRac=; b=QmTPjf8ZARU6mJQ0ksZXKEcTwjMU6KoCvSdXeaMr2IK1newvGq02NKKTrWFa8xLaDI D5S0HELZegjvKhcJ413y0q8lVxEFXYTg+BqWr5R5ALRQ/0SfRiVMTPzGMqk0L2uCNE7M DcUPnxeynxLFzhjDFvkPKmxb4RzX4rAACQXwk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=UC20oTg8xzkafKMTsuJMsYEroDHd03huwbAyKbkiRac=; b=i0Z5IIkyH144FHK7GWjQxqX5kZ+XK/ynq6rq8DOdms1c5GjRg/6+7VC+TdOFa9u9bj pQiHOIRBEZVMB6HtxwZsyL2aTNxMTg15Gcd7wfBcPrXvFp4loi068FG35PWuDkw8WPYX rybNC6k1X62+J8Qs+OuUgremPZGHkyVQuFjApI7/GX7W8nIoGxH894ieHgqJheJxXVzj pEClm773qtIrLC1zFnWG3+esMhv/qB1rmr1lMzvMkujJBHO1XGFb3fZW08uHOv7jVPYB nU9QbzFbShXZZX0dDxXgJvZuDjgYPb26zB9OpLZr5MTstxeK36PawvFSuk1XqmcqFeAe q8Pw==
X-Gm-Message-State: ALoCoQnMURDrNRD9ro8/A66vicqdeterNykLDmhLI/P2IFN7LtQ2JFGyb5efFeH3XPzDnD3bvVC4
X-Received: by 10.55.41.195 with SMTP id p64mr5958684qkp.40.1433506187441; Fri, 05 Jun 2015 05:09:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.51.103 with HTTP; Fri, 5 Jun 2015 05:09:26 -0700 (PDT)
In-Reply-To: <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
From: Tom Ritter <tom@ritter.vg>
Date: Fri, 5 Jun 2015 05:09:26 -0700
Message-ID: <CA+cU71=RwPrnktLHTXgF-L3GpZX7QQL4mL+Q=ijsweENotkVxw@mail.gmail.com>
To: Jeffrey Walton <noloader@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/wZXne8kPCVXki0FdDDAt2ugGPpI>
Cc: PKIX <pkix@ietf.org>, Tomoyuki Sahara <sahara@surt.net>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 12:09:49 -0000

On 5 June 2015 at 03:42, Jeffrey Walton <noloader@gmail.com> wrote:
> On Fri, Jun 5, 2015 at 5:28 AM, Tomoyuki Sahara <sahara@surt.net> wrote:
>> On Fri, Jun 5, 2015 at 4:45 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>>>
>>> And it may allow match just "*", if that is interpreted as the
>>> leftmost label (but not the center label or rightmost label). Stranger
>>> things have happened....
>>
>>
>> A site in Alexa top 10,000 presents such a certificate (but the cerfiticate
>> is self-singed so it should be site administrator's mistake).
>>
>> Fortunately, Mozilla and libressl won't match such wildcards to any domain
>> because they checks if presented identifier in server's certificate has at
>> least 2 dots (".").
>>
>> But the "two-dots" check is far from perfect:
>>
>> - A number of ccTLDs have more levels (e.g. www.example.co.jp)
>> - It prevents new gTLDs from using wildcard certificates like "*.gtld".
>>
>> It can be more strict with Public Suffix List in theory but I don't think
>> it is a good idea in practice.
>>
>> Any ideas?
>
> Tough problem in general.
>
> (1) At the second label (with the leftmost as a wildcard), there are
> three top levels to consider.
>
>     (A) Traditional Top Level Domains (call them gTLDs). *.COM, *.NET, *.MIL,etc
>     (B) Country Top Level Domains (call them ccTLDs). *.UK, *.CN, etc
>     (C) Vanity Top level Domains (call them vTLDS). *.GOOLGE and friends
>
> We can remediate (A) because its an exhaustive list. We just say NO.
>
> We can remediate (B) because its an exhaustive list of about 250, and
> we can build a list of the authorities offline. In the absence of a
> declared authority or delegate, we just say NO.
>
> I think (A) and (B) could (and should) be called out in PKIX
> validation because validation is within purview of PKIX and the rules
> are obvious.
>
> I don't know how to remediate (C). How do we say, *.GOOGLE is OK if
> its certified by Google but not others? When we encounter *.GOOGLE
> that claims to be certified by Google, how do we know its authentic?

Technically, we don't need to remediate (C), because we're trying to
support a use case no one has asked for. Or at least, not seriously.
No vanity TLD has come to Mozilla or Chrome or Microsoft and said
"Hey, we want to do *.vanity, but it doesn't work!"[0]  Just as
dotless vanity domains (http://vanity) aren't going to work[1], we can
say that TLD wildcards aren't going to work.

-tom

[0] Right?
[1] Right? That's decided, no?


From nobody Fri Jun  5 08:04:09 2015
Return-Path: <prvs=0598c87ef0=carl.mehner@usaa.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A56011B30A9 for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 08:04:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.011
X-Spam-Level: 
X-Spam-Status: No, score=-7.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 lkA9BjZ9CVCv for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 08:04:06 -0700 (PDT)
Received: from prodomx02.usaa.com (prodomx02.usaa.com [167.24.25.92]) (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 805D21B30A4 for <pkix@ietf.org>; Fri,  5 Jun 2015 08:04:05 -0700 (PDT)
Received: from pps.filterd (prodomx02.usaa.com [127.0.0.1]) by prodomx02.usaa.com (8.14.7/8.14.7) with SMTP id t55F3hcZ002585; Fri, 5 Jun 2015 10:04:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=usaa.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=201408; bh=RZ5XaNuaAHZiZSx27+swEdngJjmYxV9fUxIJjfxRIvo=; b=R1d42ZVeCmzINHZo1n8FxpzCRw93YZ74Mo/C+xYzc32BAqRyRMU7CD9E+NyHkWR1qCwL 3rJiISI6yFP0N+/1NWvo82m7/SFbIApbrYXFBNvJm0TQ9exbbg5rbqj/Hcrj8L4+0WHp KF95FHFtuTzIMZyNtqX3moFTC3hixy2ppQNt82t1Zm4iyYdlnOPlfWAsIRkCfFWe05kc k0FNay7xy+c0xAK9NmB8QjDHl9cPFV7AaqRcs3UH/rzRlhwfx/ePv729PBD/Rd7AnngR 0xc1LxiKW5BAZ9BzZsLqqeA9uF3pyJCXZQY/07gDUaXibVdte8qGrvFJgAIy8OnwLX6Y Tw== 
Received: from prodexch04w.eagle.usaa.com (prodexch04w.eagle.usaa.com [10.170.40.30]) by prodomx02.usaa.com with ESMTP id 1ut58men36-1; Fri, 05 Jun 2015 10:04:03 -0500
Received: from PRODEXMB01W.eagle.usaa.com ([169.254.1.224]) by PRODEXCH04W.eagle.usaa.com ([10.170.40.30]) with mapi id 14.03.0210.002; Fri, 5 Jun 2015 10:04:03 -0500
From: "Mehner, Carl" <Carl.Mehner@usaa.com>
To: Tom Ritter <tom@ritter.vg>, Jeffrey Walton <noloader@gmail.com>
Thread-Topic: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
Thread-Index: AQHQn6Dc8IVQrVxRNUK3+mzgsZvl6w==
Date: Fri, 5 Jun 2015 15:04:03 +0000
Message-ID: <19075EB00EA7FE49AFF87E5818D673D41156DCA6@PRODEXMB01W.eagle.usaa.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com> <CA+cU71=RwPrnktLHTXgF-L3GpZX7QQL4mL+Q=ijsweENotkVxw@mail.gmail.com>
In-Reply-To: <CA+cU71=RwPrnktLHTXgF-L3GpZX7QQL4mL+Q=ijsweENotkVxw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.122.15.114]
x-c2processedorg: b8bcc573-fb52-4e08-924e-ca559c360d81
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Direction: FromExch
X-Proofpoint-Direction: Internet
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151, 1.0.33,  0.0.0000 definitions=2015-06-05_13:2015-06-05,2015-06-05,1970-01-01 signatures=0
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/s66woNptZ7nmvv4VfBtDy2qmNys>
Cc: PKIX <pkix@ietf.org>, Tomoyuki Sahara <sahara@surt.net>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 15:04:08 -0000

> No vanity TLD has come to Mozilla or Chrome or Microsoft and said
> "Hey, we want to do *.vanity, but it doesn't work!"[0]  Just as
> dotless vanity domains (http://vanity) aren't going to work[1], we can
> say that TLD wildcards aren't going to work.
>=20
> -tom
>=20
> [0] Right?
Actually, Google has, and it does work (for some domains). However, Firefox=
 broke on any host secured by a cert with a DNSNames that included "*.googl=
e" in the SAN.
https://bugzilla.mozilla.org/show_bug.cgi?id=3D1169149

Another relevant discussion here:
https://bugzilla.mozilla.org/show_bug.cgi?id=3D1128673

> [1] Right? That's decided, no?
Right, ICANN has forbidden A records at the top level


From nobody Fri Jun  5 11:15:51 2015
Return-Path: <ryan-pkix@sleevi.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F39201A1AD9 for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 11:15:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.266
X-Spam-Level: 
X-Spam-Status: No, score=-0.266 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=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 V_fJZUxSdOiv for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 11:15:48 -0700 (PDT)
Received: from homiemail-a104.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id B6AA41A1AF6 for <pkix@ietf.org>; Fri,  5 Jun 2015 11:15:48 -0700 (PDT)
Received: from homiemail-a104.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a104.g.dreamhost.com (Postfix) with ESMTP id 784992004F329; Fri,  5 Jun 2015 11:15:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sleevi.com; h=message-id :in-reply-to:references:date:subject:from:to:cc:reply-to :mime-version:content-type:content-transfer-encoding; s= sleevi.com; bh=LpTJKUkzsO3bbdnK3CY2ig/quCk=; b=SmPCnFXE6o19kzN9R zHiY/aVnDVWwV1p2RG1Kb6IcGByK1DAGbBPIQRroQjctBTsF0i7bfdbJ6DH+lmQL BKnDX7ROyupO9R2idixrq2+M1DiWgfZ+mL65i2Vq5LI/LO8K0wwOHEdkgcg24enr DNfu0DAU1VB2ucsuaIIcfjW+2c=
Received: from webmail.dreamhost.com (caiajhbihbdd.dreamhost.com [208.97.187.133]) (Authenticated sender: ryan@sleevi.com) by homiemail-a104.g.dreamhost.com (Postfix) with ESMTPA id 6F7D52004F328; Fri,  5 Jun 2015 11:15:47 -0700 (PDT)
Received: from 67.161.27.165 (SquirrelMail authenticated user ryan@sleevi.com) by webmail.dreamhost.com with HTTP; Fri, 5 Jun 2015 11:15:48 -0700
Message-ID: <e0782eb5d1e0460add87f1612e09f7e2.squirrel@webmail.dreamhost.com>
In-Reply-To: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com>
Date: Fri, 5 Jun 2015 11:15:48 -0700
From: "Ryan Sleevi" <ryan-pkix@sleevi.com>
To: noloader@gmail.com
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/JRcqs3psZWZQKv8tSQcUVkIV8yw>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: ryan-pkix@sleevi.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 18:15:50 -0000

On Thu, June 4, 2015 10:55 pm, Jeffrey Walton wrote:
>  This issue came up on the DBOUND list.
>
>  Relevant RFCs like 5280 and 6125, allow wildcards and don't restrict
>  them. Some folks have taken the lack of restriction to allow matching
>  of *.COM, *.NET and *.ORG. It seems like a logical leap since there is
>  no restriction placed on them (or even '*' or '*.*').

This is not correct. RFC 5280 does not say anything about name matching
for things like wildcards, other than to explicitly and clearly state tha=
t
it does not say anything about name matching for wildcards.

4.2.1.6.  Subject Alternative Name
    Finally, the semantics of subject alternative names that include
    wildcard characters (e.g., as a placeholder for a set of names) are
    not addressed by this specification.  Applications with specific
    requirements MAY use such names, but they must define the semantics.

That's left up to application-level protocols and follow
application-specific rules. This is why you have different rules - RFC
6125 also makes this abundantly clear in Appendix B. Prior Art.

>  In case its not obvious, no one organization or entity controls some
>  of the gTLDs, like *.COM, *.NET and *.ORG. It makes no sense to allow
>  a match on them in a CN or SAN.

Except for Brand TLDs ( http://icannwiki.com/Brand_TLD , which you call
Vanity TLDs but which actually have a term for them already in extensive
use) or ccTLDs.

>  The CA/Browser Forums, Baseline Requirements document does not allow
>  them under Section 3.2.2. But the CA/B is a different set of issuing
>  policies, and IETF conforming implementations don't use the CA/B.

This is also not correct.

>From 3.2.2.6 of BRs 1.3.0

"If a wildcard would fall within the label immediately to the left of a
registry&#8208;controlled=86 or public suffix, CAs MUST refuse issuance
unless the applicant proves its rightful control of the entire Domain
Namespace."

Note the "unless". It's entirely valid to issue a wildcard, at any label
level, provided the CA establishes the applicant is authorized. For
example, a Brand TLD can demonstrate control over a domain namespace by
1) Establishing they are the applicant to the CA
2) Providing their Registry Agreement with ICANN that details their
registration policies for said brand TLD (such as whether or not they
allow public registration)

As it stands, the Baseline Requirements are a profile of RFC 5280 for CAs
that are publicly trusted. While 5280 describes a kitchen sink of
features, many of which see limited use outside of the US Government's
PKI, the BRs exist to profile that into a set of policies that can be
securely reasoned about.

You're correct that IETF conforming implementations don't refer to the
CA/Browser Forum, but that's because the IETF isn't in the business of
specifying policy, and that's what this is. Policy.

>  Please address this issue in the RFCs.

The encoding of such, and the application matching of such, is already
documented. The policies regarding issuance and client acceptance are
matters of policy (issuance and local, respectively), and have
questionable to negligible value.


From nobody Fri Jun  5 11:28:51 2015
Return-Path: <ryan-pkix@sleevi.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A216D1A1B3D for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 11:28:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=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 n_xTwQ5DunOU for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 11:28:48 -0700 (PDT)
Received: from homiemail-a108.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 4E3981A1B30 for <pkix@ietf.org>; Fri,  5 Jun 2015 11:28:48 -0700 (PDT)
Received: from homiemail-a108.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a108.g.dreamhost.com (Postfix) with ESMTP id 1509C2005D906; Fri,  5 Jun 2015 11:28:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sleevi.com; h=message-id :in-reply-to:references:date:subject:from:to:cc:reply-to :mime-version:content-type:content-transfer-encoding; s= sleevi.com; bh=Bqq6CAUiIelr+hg3ILmIr06iJsc=; b=h4jI9/c+6p2Vq84u3 eDB4wq06kEGQd5yWpuUAFmcWtbADKbKnhpNZZyVQRPcosLeSA1e+DcNkiFBIr6hs K8W8z5EOpZI8QAOCNfe5jok0QUuOFA0b6LlwjPUuL5Y1Txui0jBXJmLQs6yLZkBn ygZXn25NSi8ZippsBhmrLBjbRU=
Received: from webmail.dreamhost.com (caiajhbihbdd.dreamhost.com [208.97.187.133]) (Authenticated sender: ryan@sleevi.com) by homiemail-a108.g.dreamhost.com (Postfix) with ESMTPA id B433F2005D82C; Fri,  5 Jun 2015 11:28:46 -0700 (PDT)
Received: from 67.161.27.165 (SquirrelMail authenticated user ryan@sleevi.com) by webmail.dreamhost.com with HTTP; Fri, 5 Jun 2015 11:28:48 -0700
Message-ID: <9741bf217b3b1a3a60e567fa6886a9ba.squirrel@webmail.dreamhost.com>
In-Reply-To: <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
Date: Fri, 5 Jun 2015 11:28:48 -0700
From: "Ryan Sleevi" <ryan-pkix@sleevi.com>
To: noloader@gmail.com
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/Zt_0fqT3HRKqHVYta9VCGhHDqLw>
Cc: PKIX <pkix@ietf.org>, Tomoyuki Sahara <sahara@surt.net>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: ryan-pkix@sleevi.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 18:28:49 -0000

On Fri, June 5, 2015 3:42 am, Jeffrey Walton wrote:
>  Tough problem in general.
>
>  (1) At the second label (with the leftmost as a wildcard), there are
>  three top levels to consider.
>
>      (A) Traditional Top Level Domains (call them gTLDs). *.COM, *.NET,
>  *.MIL,etc
>      (B) Country Top Level Domains (call them ccTLDs). *.UK, *.CN, etc
>      (C) Vanity Top level Domains (call them vTLDS). *.GOOLGE and frien=
ds

These are called Brand TLDs.

>  We can remediate (A) because its an exhaustive list. We just say NO.

Except it isn't an exhaustive list by any means, it is fluid. And you've
incorrectly lumped ".mil" in here, which is handled by the DoD Network
Information Center. .mil is a sponsored TLD fully operated by DISA/DOD
NIC, and as such, it's entirely reasonable for the DoD root CAs (which ar=
e
trusted as a matter of local policy by DoD machines, although not widely
trusted publicly) to issue *.mil, should they so wish.

>  I think (A) and (B) could (and should) be called out in PKIX
>  validation because validation is within purview of PKIX and the rules
>  are obvious.

The rules aren't obvious for a second. They change and have changed over
time.

>  We need the rules now, so there's probably no reason to wait for
>  DBOUND to deliver something. Plus, there's no guarantees DBOUND will
>  be delivering anything useful for any of these case (including (1)(A)
>  and (1)(B)). Finally, we already have some rules in RFC 6125, so
>  validation is within purview of PKIX.

That's specious logic. What you're describing is application trust policy
- "How do we determine X is authorized to say Y?" - and that's dependent
on local trust policies and configurations.

A locally installed trust anchor (which I know you're on record as being
opposed to) could totally determine that they're duly authorized to issue
for *.whatevertheywant, because that's what local policy means.

This isn't academic or theoretical - this is actively in use by
deployments today. No amount of handwringing here will fundamentally
change that.

If there is going to be something to express policy-by-default, and that
policy-by-default isn't expressed via the present Public Suffix List
(which I wouldn't advocate for a second standardizing upon as a MUST; at
best, a MAY), then it will presumably be through the activities of DBOUND=
.
So yes, waiting for DBOUND, and then waiting to see reception from actual
application software vendors from DBOUND, is an entirely reasonable step.


From nobody Fri Jun  5 12:18:33 2015
Return-Path: <noloader@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B2611A874D for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 12:18:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 bBYluvTOPq-l for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 12:18:31 -0700 (PDT)
Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F23C01A700A for <pkix@ietf.org>; Fri,  5 Jun 2015 12:18:30 -0700 (PDT)
Received: by iebgx4 with SMTP id gx4so64234263ieb.0 for <pkix@ietf.org>; Fri, 05 Jun 2015 12:18:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=eQvfWHlPjm898HKmFEDZSk7y2XI9pNVNfT5ErC43Us0=; b=R0BIn/su0PMdrxTKvFaMYFoSdaDYCtGOVluYWgWpQ90i9Ydcn0LOLDY6Sbdx1aCxeq qt45M2JvKvGjQ0NfEeNXCssaGYJY70fgdPaFUuMROChTXjOiLH8/Ut02I8Hc59VYWO43 ikP5Nk90L1zSgGFx2qHgR8zaFOSpFhbBgINOjEAg9ponbXP4CfoITwF08KW0H2igjSYq wGk8RfuMntJs0qYHE7jjO8gHbwo4Tuo2RA/RYAEg1SCKTl5L6fruRtP60t/NpPDd5V8U 7kTBGn05ZbmnJ5XQ18RNVQr4uYfW7N67iiS51TIYmNNPkJn7igOWSjpuY1xgeEZMxwvK InSA==
MIME-Version: 1.0
X-Received: by 10.50.61.241 with SMTP id t17mr14452452igr.34.1433531910306; Fri, 05 Jun 2015 12:18:30 -0700 (PDT)
Received: by 10.36.77.15 with HTTP; Fri, 5 Jun 2015 12:18:30 -0700 (PDT)
In-Reply-To: <9741bf217b3b1a3a60e567fa6886a9ba.squirrel@webmail.dreamhost.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com> <9741bf217b3b1a3a60e567fa6886a9ba.squirrel@webmail.dreamhost.com>
Date: Fri, 5 Jun 2015 15:18:30 -0400
Message-ID: <CAH8yC8kfwYqDKrkgj1PwY3YdG4aa+aD8kM=DRvSVKsRsfQryCA@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
To: ryan-pkix@sleevi.com
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/62NaGdrFVIvfCBdyg-seXcF0EaE>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: noloader@gmail.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 19:18:32 -0000

On Fri, Jun 5, 2015 at 2:28 PM, Ryan Sleevi <ryan-pkix@sleevi.com> wrote:
> On Fri, June 5, 2015 3:42 am, Jeffrey Walton wrote:
>>  Tough problem in general.
>>
>>  (1) At the second label (with the leftmost as a wildcard), there are
>>  three top levels to consider.
>>
>>      (A) Traditional Top Level Domains (call them gTLDs). *.COM, *.NET,
>>  *.MIL,etc
>>      (B) Country Top Level Domains (call them ccTLDs). *.UK, *.CN, etc
>>      (C) Vanity Top level Domains (call them vTLDS). *.GOOLGE and friends
>
> These are called Brand TLDs.

Thanks Ryan. I was not aware they were already coined with Brand. What
I followed came from some ICANN reading, and they were referred to as
Top Level Domains in those documents.

> This isn't academic or theoretical - this is actively in use by
> deployments today. No amount of handwringing here will fundamentally
> change that.

OK, to be clear... the result of inaction is going to result in more
CVEs, like CVE-2015-1855.

Where the rubber meets the road, we have problems in practice. The
problems in practice point back to lack of clear direction.

Jeff


From nobody Fri Jun  5 14:24:32 2015
Return-Path: <ryan-pkix@sleevi.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 329E71A039A for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 14:24:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.233
X-Spam-Level: 
X-Spam-Status: No, score=0.233 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=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 AJbH0wpBAeG6 for <pkix@ietfa.amsl.com>; Fri,  5 Jun 2015 14:24:29 -0700 (PDT)
Received: from homiemail-a25.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 1CC721A0121 for <pkix@ietf.org>; Fri,  5 Jun 2015 14:24:29 -0700 (PDT)
Received: from homiemail-a25.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTP id BF161678063; Fri,  5 Jun 2015 14:24:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sleevi.com; h=message-id :in-reply-to:references:date:subject:from:to:cc:reply-to :mime-version:content-type:content-transfer-encoding; s= sleevi.com; bh=R9OMkNAx9zZxAvS56HlhxFKHeHs=; b=NdQ4SaNXPCnSskj/n RrChTDM+jFE3F2aWTb3j5SvAbG9XXa57ZRx41O6SJPpmaZUsINI0kexmvbiFJf0M 6+QjU7WD7fy+2zuEj0cizjOwxjJEqP9cmMGPH+tlid8WNIgVuCihPgdMcx0aylnw p6VkdUFbdyC/+hrk+84EbHPvYI=
Received: from webmail.dreamhost.com (caiajhbihbdd.dreamhost.com [208.97.187.133]) (Authenticated sender: ryan@sleevi.com) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPA id 7DA00678057; Fri,  5 Jun 2015 14:24:28 -0700 (PDT)
Received: from 216.239.45.71 (SquirrelMail authenticated user ryan@sleevi.com) by webmail.dreamhost.com with HTTP; Fri, 5 Jun 2015 14:24:27 -0700
Message-ID: <4634fd36f253ee5d1b35966e52088a0b.squirrel@webmail.dreamhost.com>
In-Reply-To: <CAH8yC8kfwYqDKrkgj1PwY3YdG4aa+aD8kM=DRvSVKsRsfQryCA@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com> <9741bf217b3b1a3a60e567fa6886a9ba.squirrel@webmail.dreamhost.com> <CAH8yC8kfwYqDKrkgj1PwY3YdG4aa+aD8kM=DRvSVKsRsfQryCA@mail.gmail.com>
Date: Fri, 5 Jun 2015 14:24:27 -0700
From: "Ryan Sleevi" <ryan-pkix@sleevi.com>
To: noloader@gmail.com
User-Agent: SquirrelMail/1.4.21
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/4Dbroys6h8p3DpXIgSR-TWa57vU>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: ryan-pkix@sleevi.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Jun 2015 21:24:30 -0000

On Fri, June 5, 2015 12:18 pm, Jeffrey Walton wrote:
>  OK, to be clear... the result of inaction is going to result in more
>  CVEs, like CVE-2015-1855.
>
>  Where the rubber meets the road, we have problems in practice. The
>  problems in practice point back to lack of clear direction.

No, this isn't correct.

CVE-2015-1855 has nothing to do with the domain boundary issue. It's all =
t
do with behaviours documented already in 6125.

The handling of domain boundaries is one of those "defense in depth"
things that depends on your application space and your threat model. In
the event it's "publicly trusted CAs" (e.g. the now shuttered WebPKI
group), then adding a check for "not wildcard TLD" is a defense against a
CA improperly implementing the Baseline Requirements. However, it's a
defense with tradeoffs - as noted on the Bugzilla discussions pointed to
elsewhere, we don't even have a solution for browsers yet.

Other elements of CVE-2015-1855 - things like "Don't allow wildcards for
IDNA", are treated by 6125 but weren't treated by 2616 because it wasn't
even a consideration for 2616.

Further still, elements of CVE-2015-1855 such as "Only allow one wildcard
label" are a judgement decision based on what type of certificates such a
client will expect to see. In the Web PKI, you should only ever see one
wildcard, and thus it's a sensible defense in depth check to add. However=
,
for internal CAs, it's not at all uncommon - I know, because I got yelled
at by users when I broke them by ensuring Chrome enforced the
one-wildcard-label rule. Even Google was serving some public
"*.*.domain.com" certificates (prior to the BRs notes about wildcard),
because "it just worked".

So I do want to stress that there's an element of policy in place here.
2616 defined how to match, but not what was acceptable. 5280 didn't
describe what was acceptable, because that's a matter of policy. The CA/B
Forum's Baseline Requirements detail what is acceptable, but _only_ in th=
e
case of publicly trusted CA certificates used for TLS (implicitly and
primarily HTTPS, but not exclusively)

Disconnects like the one in Ruby come from when an implementation deals
with the technical aspect, but without touching upon the policy aspect fo=
r
the problem space. The IETF can't and doesn't know all the potential
policies that deployments may have - but tries to leave the right hooks
for policies to apply. The other thing to note is that policies change
over time, and sometimes rapidly so - for example, the CA/B Forum allowin=
g
wildcards in EV certs iff that cert is for a .onion domain (and, for that
matter, allowing .onion domains as a temporary exception for CAs to
issue).

Finally, things like policy documents are somehow inherently
controversial. See the TLS BIS discussions. Or see the discussions of RFC
4158, which describes common algorithms that many implementations use in
satisfying the RFC 3280/5280 goals (although, notably, not Ruby or OpenSS=
L
:)

I don't think it's inherently wrong to put together something about "How
should publicly trusted certificates used for TLS" be validated by
clients, but I think it'd be a mistake to consider it normative
(implementations will/should do what's right for their users and security=
,
regardless of what a spec says), or permanent (threats change over time).
But sure, it could be helpful.

But I don't think that's what you want.


From nobody Sat Jun  6 16:26:01 2015
Return-Path: <noloader@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F0161A1B27 for <pkix@ietfa.amsl.com>; Sat,  6 Jun 2015 16:25:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.7
X-Spam-Level: 
X-Spam-Status: No, score=0.7 tagged_above=-999 required=5 tests=[BAYES_50=0.8,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 jzufnbyVc_wk for <pkix@ietfa.amsl.com>; Sat,  6 Jun 2015 16:25:58 -0700 (PDT)
Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 199AF1A1B23 for <pkix@ietf.org>; Sat,  6 Jun 2015 16:25:58 -0700 (PDT)
Received: by iebgx4 with SMTP id gx4so78025584ieb.0 for <pkix@ietf.org>; Sat, 06 Jun 2015 16:25:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/tAW7gyuFXmcp7yQ9JfHQi7IbVssFNI12H81HnAI9CA=; b=RYNm7qCEsuyQHIZtx33rAbSHyO/RyogB1rBiqF0CGlbmNsySu0I45qU0O468RDICDz CQdTOixMq/E+V7Y+xYunssRKm5dtAjOBBa30ylYMnFd+lpeMKmbFC/3YE6dok/3xPygA pA223Zyucixgwx2JvNw3dwVemdQC9AW0b1apFKAFzoJiTUdJgxcOm+YQCgD64tYjI8sk T5tICpStouL3pBB9sznyIVRYiUaoQRmfQViQAEcL1rvDPBbyVEUndZ5onIgz05qaHGSE a+uLhkJSGVZyopSqJRjFMCwbEIgBl3b56/W5R9uyYx3D8D9fMYOXDZ9tclhbtA7TSAHT z7mA==
MIME-Version: 1.0
X-Received: by 10.107.159.77 with SMTP id i74mr12645407ioe.9.1433633157636; Sat, 06 Jun 2015 16:25:57 -0700 (PDT)
Received: by 10.36.77.15 with HTTP; Sat, 6 Jun 2015 16:25:57 -0700 (PDT)
In-Reply-To: <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
References: <CAH8yC8=_PypmYYW_0XPUS0xFB6vP4N1=RTmzCjdwVnR-05H=hw@mail.gmail.com> <CAH8yC8kLgbXYZb_-AY3er5EagG5XmUDaQhL7ynRwd+GL2anJeQ@mail.gmail.com> <CAH=tA5tT4VwWQUCcQ+E9BR1+ZVnHHS4HkwGZ3zJT736wZvQk8g@mail.gmail.com> <CAH8yC8mQ8t5Fd7s+yyeL2XoEkXieULN74d23aWX=wqQoqCxagw@mail.gmail.com>
Date: Sat, 6 Jun 2015 19:25:57 -0400
Message-ID: <CAH8yC8kbwz2rsisXD8H+Yxw4NWwfb_8BQXkA-wfB-AZc-4DpDQ@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
To: Tomoyuki Sahara <sahara@surt.net>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/TtZXc9V4OXzZdW2ytbw52c0G_V8>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] Please clarify when and where wildcards should be matched in PKIX certificates
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: noloader@gmail.com
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Jun 2015 23:25:59 -0000

>> On Fri, Jun 5, 2015 at 4:45 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>>>
>>> And it may allow match just "*", if that is interpreted as the
>>> leftmost label (but not the center label or rightmost label). Stranger
>>> things have happened....

The RFCs also appear to allow a match of the empty or null string (in
the absence of wild cards), which does not make a lot of sense to me
either.

The significance here is RFC 1034 defines the null or empty string to
be the top of the tree. I don't know what damage an attacker can cause
in some implementations by exploiting it.

So maybe matching the empty or null string should be addressed too.

I can imagine an implementation finding safe harbor in the same
argument provided GnuTLS: the RFCs don't prohibit it.

Jeff


From nobody Mon Jun 15 13:10:31 2015
Return-Path: <simon@josefsson.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 830881A89F9 for <pkix@ietfa.amsl.com>; Mon, 15 Jun 2015 13:10:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, SPF_PASS=-0.001] autolearn=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 SUonwFSmRm_e for <pkix@ietfa.amsl.com>; Mon, 15 Jun 2015 13:10:24 -0700 (PDT)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (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 009F31A8A08 for <pkix@ietf.org>; Mon, 15 Jun 2015 13:10:22 -0700 (PDT)
Received: from latte.josefsson.org ([155.4.17.3]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id t5FKAAew029553 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <pkix@ietf.org>; Mon, 15 Jun 2015 22:10:11 +0200
From: Simon Josefsson <simon@josefsson.org>
To: pkix@ietf.org
References: <20150601142206.1d7bedc0@latte.josefsson.org>
OpenPGP: id=54265E8C; url=http://josefsson.org/54265e8c.txt
X-Hashcash: 1:22:150615:pkix@ietf.org::3xc77HW+BsSXIesV:jAGM
Date: Mon, 15 Jun 2015 22:10:09 +0200
In-Reply-To: <20150601142206.1d7bedc0@latte.josefsson.org> (Simon Josefsson's message of "Mon, 1 Jun 2015 14:22:06 +0200")
Message-ID: <87pp4wka1q.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.98.7 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/WZ-SwcC26qh0DpioK8-3PsMN_rg>
Subject: Re: [pkix] Strawman on EdDSA/Ed25519 for PKIX Certificate/CRLs
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jun 2015 20:10:25 -0000

--=-=-=
Content-Type: text/plain

Hi,

I have updated the document a bit.  It appears likely that EdDSA will be
usable with other parameters than Ed25519, so I made the EdDSA
parameters an algorithm parameter rather than implied from the OID.

https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-01

An (already outdated) example of an EdDSA X.509 certificate and EdDSA
public-key is also included, so you can throw it at your ASN.1 parsers.

/Simon

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJVfzEhAAoJEIYLf7sy+BGdohwH/2b8pCLdTzsz4lF4ihvEdgh4
8oM9LVOyHbFRzB66JHHfI8LpKsX2qjFJ7WXbYAOl6P1sMixtw8uq241EQtpe7G+V
9MzEatZqah4Lq56pJXKK2DylUBIx8QCiuuBblB+vkbDQZSmUwdByn26Z2G64yhZ+
HRk0pYVqMpH4KesNTvcUJIImgkNR9P8XiqlGEN9RRC9Ug2s+PVDaz57n1rbEPsDH
lOtsCljD3RLmWRtIhRg9tweVWhKs4UlnbkptxmG7Wi8iM2YHhcrqoE7Ma0llYuqU
7+OpnvJEsz/WIK9WukrklV5z3vZM+sjLyVD2YdUmXMwFcQ5DxH2mlkgx8SQEaHE=
=H3fj
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Tue Jun 23 07:38:55 2015
Return-Path: <eabalea@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E4C5B1B2C78 for <pkix@ietfa.amsl.com>; Tue, 23 Jun 2015 07:38:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 fMdLg1MR73e0 for <pkix@ietfa.amsl.com>; Tue, 23 Jun 2015 07:38:44 -0700 (PDT)
Received: from mail-vn0-x234.google.com (mail-vn0-x234.google.com [IPv6:2607:f8b0:400c:c0f::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F51B1B2C87 for <pkix@ietf.org>; Tue, 23 Jun 2015 07:38:44 -0700 (PDT)
Received: by vnbf129 with SMTP id f129so1827799vnb.4 for <pkix@ietf.org>; Tue, 23 Jun 2015 07:38:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TUqfvwvy7yOT4oZb3sqQGCJCjO0VkVx5m7QX4nck0XY=; b=PDUvsNxoHE+NGgCOeblgIcNWyXMt5uZmpBOT+1X6dhbDdBozD7Jo4NYwQ+jDdznf2+ 1iGIw8KCO3HI/LpdwCG9HjB+RviCTRnWITtHsG5RJs/3MfPPgOscYVjHPO3kb5qZ7IBt OXKgNvc9QsBDbP0hn0qdWWR8+mjhv+nk7FtipN1CqChe/BqxtRXtKk+SBdQ6ZOGxgsDe wRyn4egVZuvN6tfbXHQtqPAC7uTSixldoX2599j/5+tM2twigylwChz97XlF6Z3qiHOS 6RV73eCZjupGB3nO3NzFtX60YaFUo4Aw+/v6mu+d340i3HA0BF/tFKLvKam3PbwaFAyX NZtg==
MIME-Version: 1.0
X-Received: by 10.52.35.107 with SMTP id g11mr31910731vdj.37.1435070323732; Tue, 23 Jun 2015 07:38:43 -0700 (PDT)
Received: by 10.52.110.2 with HTTP; Tue, 23 Jun 2015 07:38:43 -0700 (PDT)
In-Reply-To: <87pp4wka1q.fsf@latte.josefsson.org>
References: <20150601142206.1d7bedc0@latte.josefsson.org> <87pp4wka1q.fsf@latte.josefsson.org>
Date: Tue, 23 Jun 2015 16:38:43 +0200
Message-ID: <CA+i=0E6cWgNd7MHsP56LaVkdGaTKW+=VWamENwOrda+oebtfZQ@mail.gmail.com>
From: Erwann Abalea <eabalea@gmail.com>
To: Simon Josefsson <simon@josefsson.org>
Content-Type: multipart/alternative; boundary=20cf3079c0a4dfb73205193058c6
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/2O8Pz5rj6kqnZcrdSfHU1wtQFZQ>
Cc: "<pkix@ietf.org>" <pkix@ietf.org>
Subject: Re: [pkix] Strawman on EdDSA/Ed25519 for PKIX Certificate/CRLs
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jun 2015 14:38:53 -0000

--20cf3079c0a4dfb73205193058c6
Content-Type: text/plain; charset=UTF-8

Bonjour,


Section 5: EdDSAParameters is an ENUMERATED with (for now) only one value:
"ed25519", which designates a signature algorithm and not a set of public
key parameters. I guess one might want to find "curve25519" and "curve448"
here. Since this type is used with a public key algorithm, naming it with a
signature algorithm might not be suited.

Section 5: the subjectPublicKey BIT STRING seems to contain an additional
OCTET STRING, which isn't necessary at this moment (however, since point
encoding hasn't been decided yet at CFRG, it may change).

Section 6: what is the rationale to define keyUsage values here? I'd drop
this section.

Section 7: signature parameters will be necessary and will be declared
either within the algorithm OID (as is done with ECDSA-with-*), within the
parameters data element, or both (as is done with RSASSA-PSS); right now,
Ed25519 is hardcoded to use SHA512, but you'll have to consider EdDSA with
other hash functions, or different curves (it's not yet decided which hash
function to use with curve448).
Section 7: signature encoding itself must also be defined (or referenced);
for ECDSA, it's a SEQUENCE of 2 INTEGERs; here, it seems that r and s are
concatenated, but it's stated nowhere (maybe draft-josefsson-eddsa-ed25519?)

Section 8: the example certificate doesn't use the EdDSAParameters type to
indicate the curve used.
Section 8: the example certificate doesn't follow section 7 (parameters
MUST be absent)


2015-06-15 22:10 GMT+02:00 Simon Josefsson <simon@josefsson.org>:

> Hi,
>
> I have updated the document a bit.  It appears likely that EdDSA will be
> usable with other parameters than Ed25519, so I made the EdDSA
> parameters an algorithm parameter rather than implied from the OID.
>
> https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-01
>
> An (already outdated) example of an EdDSA X.509 certificate and EdDSA
> public-key is also included, so you can throw it at your ASN.1 parsers.
>
> /Simon
>
> _______________________________________________
> pkix mailing list
> pkix@ietf.org
> https://www.ietf.org/mailman/listinfo/pkix
>
>


-- 
Erwann.

--20cf3079c0a4dfb73205193058c6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Bonjour,<div><br></div><div><br></div><div>Section 5: EdDS=
AParameters is an ENUMERATED with (for now) only one value: &quot;ed25519&q=
uot;, which designates a signature algorithm and not a set of public key pa=
rameters. I guess one might want to find &quot;curve25519&quot; and &quot;c=
urve448&quot; here. Since this type is used with a public key algorithm, na=
ming it with a signature algorithm might not be suited.</div><div><br></div=
><div>Section 5: the subjectPublicKey BIT STRING seems to contain an additi=
onal OCTET STRING, which isn&#39;t necessary at this moment (however, since=
 point encoding hasn&#39;t been decided yet at CFRG, it may change).</div><=
div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">Section 6: w=
hat is the rationale to define keyUsage values here? I&#39;d drop this sect=
ion.</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">S=
ection 7: signature parameters will be necessary and will be declared eithe=
r within the algorithm OID (as is done with ECDSA-with-*), within the param=
eters data element, or both (as is done with RSASSA-PSS); right now, Ed2551=
9 is hardcoded to use SHA512, but you&#39;ll have to consider EdDSA with ot=
her hash functions, or different curves (it&#39;s not yet decided which has=
h function to use with curve448).</div><div class=3D"gmail_extra">Section 7=
: signature encoding itself must also be defined (or referenced); for ECDSA=
, it&#39;s a SEQUENCE of 2 INTEGERs; here, it seems that r and s are concat=
enated, but it&#39;s stated nowhere (maybe=C2=A0draft-josefsson-eddsa-ed255=
19?)</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><=
div>Section 8: the example certificate doesn&#39;t use the EdDSAParameters =
type to indicate the curve used.</div><div>Section 8: the example certifica=
te doesn&#39;t follow section 7 (parameters MUST be absent)</div><div><br><=
/div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2015-0=
6-15 22:10 GMT+02:00 Simon Josefsson <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:simon@josefsson.org" target=3D"_blank">simon@josefsson.org</a>&gt;</span>=
:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:so=
lid;padding-left:1ex">Hi,<br>
<br>
I have updated the document a bit.=C2=A0 It appears likely that EdDSA will =
be<br>
usable with other parameters than Ed25519, so I made the EdDSA<br>
parameters an algorithm parameter rather than implied from the OID.<br>
<br>
<a href=3D"https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-01" rel=
=3D"noreferrer" target=3D"_blank">https://tools.ietf.org/html/draft-josefss=
on-pkix-eddsa-01</a><br>
<br>
An (already outdated) example of an EdDSA X.509 certificate and EdDSA<br>
public-key is also included, so you can throw it at your ASN.1 parsers.<br>
<span class=3D""><font color=3D"#888888"><br>
/Simon<br>
</font></span><br>_______________________________________________<br>
pkix mailing list<br>
<a href=3D"mailto:pkix@ietf.org">pkix@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/pkix" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.ietf.org/mailman/listinfo/pkix</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div cla=
ss=3D"gmail_signature">Erwann.</div>
</div></div>

--20cf3079c0a4dfb73205193058c6--


From nobody Mon Jun 29 13:39:20 2015
Return-Path: <simon@josefsson.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 125551B3415 for <pkix@ietfa.amsl.com>; Mon, 29 Jun 2015 13:39:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, SPF_PASS=-0.001] autolearn=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 tGW8O8morFRV for <pkix@ietfa.amsl.com>; Mon, 29 Jun 2015 13:39:14 -0700 (PDT)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (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 0619C1B3410 for <pkix@ietf.org>; Mon, 29 Jun 2015 13:39:13 -0700 (PDT)
Received: from latte.josefsson.org ([155.4.17.3]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id t5TKcuca001209 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 29 Jun 2015 22:38:57 +0200
From: Simon Josefsson <simon@josefsson.org>
To: Erwann Abalea <eabalea@gmail.com>
References: <20150601142206.1d7bedc0@latte.josefsson.org> <87pp4wka1q.fsf@latte.josefsson.org> <CA+i=0E6cWgNd7MHsP56LaVkdGaTKW+=VWamENwOrda+oebtfZQ@mail.gmail.com>
OpenPGP: id=54265E8C; url=http://josefsson.org/54265e8c.txt
X-Hashcash: 1:22:150629:pkix@ietf.org::hXidq0caql1P7HK0:+KA
X-Hashcash: 1:22:150629:eabalea@gmail.com::JvHDjXdNGnIe6Xyj:1GPy
Date: Mon, 29 Jun 2015 22:38:55 +0200
In-Reply-To: <CA+i=0E6cWgNd7MHsP56LaVkdGaTKW+=VWamENwOrda+oebtfZQ@mail.gmail.com> (Erwann Abalea's message of "Tue, 23 Jun 2015 16:38:43 +0200")
Message-ID: <87si9a9rmo.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.98.7 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/vyG3rowkvE5VTE6zWzFZt32i1l0>
Cc: "<pkix@ietf.org>" <pkix@ietf.org>
Subject: Re: [pkix] Strawman on EdDSA/Ed25519 for PKIX Certificate/CRLs
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Jun 2015 20:39:16 -0000

--=-=-=
Content-Type: text/plain

Erwann Abalea <eabalea@gmail.com> writes:

> Bonjour,

Hello.  Thank you for the feedback!

> Section 5: EdDSAParameters is an ENUMERATED with (for now) only one value:
> "ed25519", which designates a signature algorithm and not a set of public
> key parameters. I guess one might want to find "curve25519" and "curve448"
> here. Since this type is used with a public key algorithm, naming it with a
> signature algorithm might not be suited.

Actually "ed25519" designates the EdDSA parameters.  They have an impact
on how the public key looks -- EdDSA public keys are not compatible
across hash functions.  Ed25519 implies SHA-512, which implies how the
public key is derived.  I tried to clarify this point by adding the
following sentence:

      The value "ed25519" means the set of EdDSA parameters
      associated with Ed25519, including hash function and curve.

Saying "curve25519" does not feel right to me since it only describes
the curve.  To know the encoding the public key encoding for EdDSA you
also need to know the hash function.

Do you agree?

> Section 5: the subjectPublicKey BIT STRING seems to contain an additional
> OCTET STRING, which isn't necessary at this moment (however, since point
> encoding hasn't been decided yet at CFRG, it may change).

I don't know if you looked at -00 or -01.  In -00 there was an
additional OCTET STRING step.  People suggested that it just waste
space, so I removed it for -01.  I have now added another sentence
clarifying that it is not there:

      <t>The raw binary EdDSA public key is encoded directly in the
      subjectPublicKey BIT STRING object.  Note that unlike some other
      schemes, there is no additional OCTET STRING encoding step.</t>

> Section 6: what is the rationale to define keyUsage values here? I'd drop
> this section.

I copied this from RFC 5480.  I'm not sure what value there is in having
it, but it looks harmless and potentially useful to me.  I could remove
it too.

> Section 7: signature parameters will be necessary and will be declared
> either within the algorithm OID (as is done with ECDSA-with-*), within the
> parameters data element, or both (as is done with RSASSA-PSS); right now,
> Ed25519 is hardcoded to use SHA512, but you'll have to consider EdDSA with
> other hash functions, or different curves (it's not yet decided which hash
> function to use with curve448).

My intention is that the signature parameters follow from the public key
parameters.  The document says:

      <t>This document identify an AlgorithmIdentifier OID for EdDSA
      signatures.  No parameters are defined.  The EdDSA parameters
      follow from the public-key parameters.</t>

Is there any value in repeating the parameter for the signature?  To
validate the signature, you need the public key anyway.

> Section 7: signature encoding itself must also be defined (or referenced);
> for ECDSA, it's a SEQUENCE of 2 INTEGERs; here, it seems that r and s are
> concatenated, but it's stated nowhere (maybe draft-josefsson-eddsa-ed25519?)

Yes, I'm hoping draft-josefsson-eddsa-ed25519 takes care of that, see
section 4.3 of it.  I added some text pointing this out:

      This value is the opaque value ENC(R) || ENC'(S) described in
      section 4.3 of <xref target="I-D.josefsson-eddsa-ed25519"/>.

> Section 8: the example certificate doesn't use the EdDSAParameters type to
> indicate the curve used.
> Section 8: the example certificate doesn't follow section 7 (parameters
> MUST be absent)

Yep, the test vector needs to be update -- will work on that.

Thanks,
/Simon

>
>
> 2015-06-15 22:10 GMT+02:00 Simon Josefsson <simon@josefsson.org>:
>
>> Hi,
>>
>> I have updated the document a bit.  It appears likely that EdDSA will be
>> usable with other parameters than Ed25519, so I made the EdDSA
>> parameters an algorithm parameter rather than implied from the OID.
>>
>> https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-01
>>
>> An (already outdated) example of an EdDSA X.509 certificate and EdDSA
>> public-key is also included, so you can throw it at your ASN.1 parsers.
>>
>> /Simon
>>
>> _______________________________________________
>> pkix mailing list
>> pkix@ietf.org
>> https://www.ietf.org/mailman/listinfo/pkix
>>
>>

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJVkazfAAoJEIYLf7sy+BGdNfAIAJDGkYgq/thW4lzPjDVkvJOT
9eIggkmtRjeZM3qER2h4w1XKKaByOafqLX/tK89hLkb2vNl9CzgCsbj9rtTNJpp5
8bBqepf+UvcRaLw7uYOEMNiMDOPyQnDvsdBPP7jDHHTCbOBLf29yDBc2MtD6LlKD
HnkikuerIUh5rfH8HRe0BOt6pavcjulQ/c9rJ11VVRchRSM4VK5i+tDdtSROo0Gg
Lxus/184SyNtf3lTP5b8VkPFB9BbZBIJ5UlvpSVqYo+1Kx2liQy66UPl+kyGs9xu
4thW5k8h4qYwu1xoieTnvfLTqrdabSC5sHyL8zwxX28UONI5ZaUAPGcJAwyXNuY=
=NMGi
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Jun 29 15:02:58 2015
Return-Path: <simon@josefsson.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8DB91B3574; Mon, 29 Jun 2015 15:02:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.551
X-Spam-Level: 
X-Spam-Status: No, score=-1.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, SPF_PASS=-0.001] autolearn=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 Ymuup4o2jVLY; Mon, 29 Jun 2015 15:02:55 -0700 (PDT)
Received: from duva.sjd.se (duva.sjd.se [IPv6:2001:9b0:1:1702::100]) (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 ADF411B3573; Mon, 29 Jun 2015 15:02:54 -0700 (PDT)
Received: from latte.josefsson.org ([155.4.17.3]) (authenticated bits=0) by duva.sjd.se (8.14.4/8.14.4/Debian-4) with ESMTP id t5TM2eK6009206 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 30 Jun 2015 00:02:42 +0200
X-Hashcash: 1:22:150629:pkix@ietf.org::q/llBA4qZTh4Wzv7:0aD1
X-Hashcash: 1:22:150629:tls@ietf.org::1B3u8k9trqI8xmhG:8iQH
From: Simon Josefsson <simon@josefsson.org>
To: pkix@ietf.org, tls@ietf.org
OpenPGP: id=54265E8C; url=http://josefsson.org/54265e8c.txt
Date: Tue, 30 Jun 2015 00:02:39 +0200
Message-ID: <87lhf29nr4.fsf@latte.josefsson.org>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.98.7 at duva.sjd.se
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/Lft9WnEkk-pboANTAD5HGcPnXao>
Subject: [pkix] PKIX drafts on EdDSA/Ed25519 and Curve25519/Curve448
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Jun 2015 22:02:56 -0000

--=-=-=
Content-Type: text/plain

Hi all,

(I'm cross-posting pkix@ and tls@ because there is cross-WG coordination
involved here -- please redirect followups appropriately.)

Symantec kindly donated two OIDs for Ed25519 keys/signatures.  I have
updated the EdDSA/Ed25519 draft to use them, together with some other
minor tweaks.  Please find the updated document here:

https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-02

Symantec also offered 1.3.101.102...1.3.101.127 for other curves or
signature schemes, as they are defined, which will shave off a couple of
bytes for us.  Coordination of allocation is handled by Rick Andrews.

A couple of people suggested to define encodings for Curve25519/Curve448
(the CFRG curves) public keys.  I didn't see that this necessarily had
to be in the above document, so I put it in a separate document.  I'm
not entirely sure how useful this is, or if I may have completely
misunderstood what people had in mind.  Please find a new document here:

https://tools.ietf.org/html/draft-josefsson-pkix-newcurves-00

The document is short and a bit rough at the moment; all feedback is
welcome.

Cheers,
/Simon

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJVkcCAAAoJEIYLf7sy+BGd+NcH/A5KhgeEH5dATxOENUuiPYUB
jZvHFwC9CfAjTDJ4Dr13yCQHT5ghspeh8LHHjsiMYqHhujSf5XEiALhCrxNePUSm
kEThL9jo1n+Mrcya7OqYMuDeikj5+YlYIFYzuJlXliKv5GtxUcb//F5JA589QzSk
n2SevxABqFvud9FmhpDGMzee+aqaAQoJK9i18zyEoRhya2OasAQGq1qT4oVBuP0N
SYnsuWm5jRFF+zwByhMTCe4XUp/tNA46PmCzwIcWQQQmpqCbAV6fa1IzQVfAuEzf
zC3txEwfZJlba71NNKKYddmKtJNM1ET8qVs5g1O5aFivmCTJJN4PSewLaQ9cwpE=
=AJas
-----END PGP SIGNATURE-----
--=-=-=--

