
From nobody Mon Aug  4 10:24:58 2014
Return-Path: <bcampbell@pingidentity.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F3E8B1A0066 for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:24:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.578
X-Spam-Level: 
X-Spam-Status: No, score=-3.578 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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 hLQ_LgZdEDkx for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:24:53 -0700 (PDT)
Received: from na6sys009bog034.obsmtp.com (na6sys009bog034.obsmtp.com [74.125.150.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D6851A0060 for <jose@ietf.org>; Mon,  4 Aug 2014 10:24:52 -0700 (PDT)
Received: from mail-ie0-f180.google.com ([209.85.223.180]) (using TLSv1) by na6sys009bob034.postini.com ([74.125.148.12]) with SMTP ID DSNKU9/B483hJqjaY/dIzsjyAmgZbVgfa2iP@postini.com; Mon, 04 Aug 2014 10:24:52 PDT
Received: by mail-ie0-f180.google.com with SMTP id at20so10182244iec.39 for <jose@ietf.org>; Mon, 04 Aug 2014 10:24:51 -0700 (PDT)
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=tJh8QJ7BmtayMJNDBPIT1b6KL9yk1gjzvxEtG/rNK7c=; b=lO8k9N0BExLFeBp1aDomu0FQuJJ6GQzC2zUBQgi339pm8EOI1UTx5xC14sY/9uygW/ bkV8NBVhilmFNMvAINePvF0lQZtSHs612RHFTmulv4Off7EQKd7YNpKrCaFlTna5LlXU eu/pGd3Xdoi5WoMhmWT2hGZ1HGK9+7fpATnYbQjk20zRCEsBfty465zO/qvdmX2+PRvp i4xkcK7VLvA2BoWo2wwP8e7h9l2mQG3huM5Ue3hLXmfrNUbaNxX8iEAqWCh0tpO1I5uT V/Lj5UbNEsPo1ohnFZ2TD2SGX7daIagNxRWVZYaxDWipbLVgQqfxjWVp95ogLNsfisXj 36ww==
X-Gm-Message-State: ALoCoQlRd+IOfDMIy4R2Re8FmfPnkBKqAhfVDXtHwQyh7cULYs7r05THAbYZB8H5IMRJecWCZRw5VdeQgs1J+/Hl/5Fzm6roydL7rAM/629b8ILQse2hrSgb8n4Fqm0BhqdS1aVuFr9q
X-Received: by 10.42.82.6 with SMTP id b6mr32701672icl.51.1407173091401; Mon, 04 Aug 2014 10:24:51 -0700 (PDT)
X-Received: by 10.42.82.6 with SMTP id b6mr32701660icl.51.1407173091269; Mon, 04 Aug 2014 10:24:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.150.162 with HTTP; Mon, 4 Aug 2014 10:24:21 -0700 (PDT)
In-Reply-To: <53CFC9A4.3000500@isoc.org>
References: <53CFC9A4.3000500@isoc.org>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Mon, 4 Aug 2014 11:24:21 -0600
Message-ID: <CA+k3eCRMu_+UqvJ00dzN2jr4X4+0s4-YANwjOwpObigB_KPU-g@mail.gmail.com>
To: Karen ODonoghue <odonoghue@isoc.org>
Content-Type: multipart/alternative; boundary=485b397dd7013e330304ffd104cb
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/qLrnHd9wtFSOrS1FhpnGplpqTis
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Aug 2014 17:24:57 -0000

--485b397dd7013e330304ffd104cb
Content-Type: text/plain; charset=UTF-8

I have read this document generally believe it is close to being ready for
publication.

I have previously verified all the compact serialization examples in the
document and worked with Matt to work through and address discrepancies I
encountered. The verification was done using my open source JOSE
implementation, https://bitbucket.org/b_c/jose4j/wiki/Home, and is captured
in a series of unit tests, which can be seen here:
https://bitbucket.org/b_c/jose4j/src/869c51ac08cfc84c6cd8fa89fe9e271b332b01cd/src/test/java/org/jose4j/cookbook/JoseCookbookTest.java?at=master

My JOSE implementation only works with compact serialization and, as such,
I've not verified any of the JSON serializations in the cookbook. Although
the two serialization have a lot of commonality, It would probably be a
good idea to get an independent verification of the JSON serializations in
the document, if that hasn't happened already. And, of course, additional
verifications of all the examples wouldn't hurt either.

Lastly, I also had a couple of minor comments that I think would be good to
address prior to publication:
http://www.ietf.org/mail-archive/web/jose/current/msg04253.html
http://www.ietf.org/mail-archive/web/jose/current/msg04251.html



On Wed, Jul 23, 2014 at 8:41 AM, Karen ODonoghue <odonoghue@isoc.org> wrote:

> Folks,
>
> This message starts a two week working group last call for the jose
> cookbook document "Examples of Protecting Content using JavaScript
> Object Signing and Encryption (JOSE)"
> (https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)
>
> Please review the document and send comments, questions to the Working
> Group mailing list < jose at ietf.org > or the co-chairs <jose-chairs at
> tools.ietf.org > before the end of the WGLC.
>
> Please note that suggested changes which include proposed text will be
> more strongly considered than those without. Additionally, even if you
> have no comments, statements to the effect that "I have read this
> document and believe it is ready for publication" are helpful.
>
> Regards,
> Karen and Jim
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

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

<div dir=3D"ltr"><div><div>I have read this document generally believe it i=
s close to being ready for publication. <br><br></div><div>I have previousl=
y verified all the compact serialization examples in the document and worke=
d with Matt to work through and address discrepancies I encountered. The ve=
rification was done using my open source JOSE implementation, <a href=3D"ht=
tps://bitbucket.org/b_c/jose4j/wiki/Home">https://bitbucket.org/b_c/jose4j/=
wiki/Home</a>, and is captured in a series of unit tests, which can be seen=
 here: <a href=3D"https://bitbucket.org/b_c/jose4j/src/869c51ac08cfc84c6cd8=
fa89fe9e271b332b01cd/src/test/java/org/jose4j/cookbook/JoseCookbookTest.jav=
a?at=3Dmaster">https://bitbucket.org/b_c/jose4j/src/869c51ac08cfc84c6cd8fa8=
9fe9e271b332b01cd/src/test/java/org/jose4j/cookbook/JoseCookbookTest.java?a=
t=3Dmaster</a><br>

<br></div><div>My JOSE implementation only works with compact serialization=
 and, as such, I&#39;ve not verified any of the JSON serializations in the =
cookbook. Although the two serialization have a lot of commonality, It woul=
d probably be a good idea to get an independent verification of the JSON se=
rializations in the document, if that hasn&#39;t happened already. And, of =
course, additional verifications of all the examples wouldn&#39;t hurt eith=
er. <br>

</div><div><br>Lastly, I also had a couple of minor comments that I think w=
ould be good to address prior to publication:<br><a href=3D"http://www.ietf=
.org/mail-archive/web/jose/current/msg04253.html">http://www.ietf.org/mail-=
archive/web/jose/current/msg04253.html</a><br>

</div><a href=3D"http://www.ietf.org/mail-archive/web/jose/current/msg04251=
.html">http://www.ietf.org/mail-archive/web/jose/current/msg04251.html</a><=
br><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_q=
uote">

On Wed, Jul 23, 2014 at 8:41 AM, Karen ODonoghue <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:odonoghue@isoc.org" target=3D"_blank">odonoghue@isoc.org</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Folks,<br>
<br>
This message starts a two week working group last call for the jose<br>
cookbook document &quot;Examples of Protecting Content using JavaScript<br>
Object Signing and Encryption (JOSE)&quot;<br>
(<a href=3D"https://tools.ietf.org/html/draft-ietf-jose-cookbook-03" target=
=3D"_blank">https://tools.ietf.org/html/draft-ietf-jose-cookbook-03</a>)<br=
>
<br>
Please review the document and send comments, questions to the Working<br>
Group mailing list &lt; jose at <a href=3D"http://ietf.org" target=3D"_blan=
k">ietf.org</a> &gt; or the co-chairs &lt;jose-chairs at<br>
<a href=3D"http://tools.ietf.org" target=3D"_blank">tools.ietf.org</a> &gt;=
 before the end of the WGLC.<br>
<br>
Please note that suggested changes which include proposed text will be<br>
more strongly considered than those without. Additionally, even if you<br>
have no comments, statements to the effect that &quot;I have read this<br>
document and believe it is ready for publication&quot; are helpful.<br>
<br>
Regards,<br>
Karen and Jim<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</blockquote></div><br></div>

--485b397dd7013e330304ffd104cb--


From nobody Mon Aug  4 10:27:39 2014
Return-Path: <mamille2@cisco.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E1381A005C for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:27:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.508
X-Spam-Level: 
X-Spam-Status: No, score=-13.508 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FS_REPLICA=0.994, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 qqQ_rec7FudN for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:27:36 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C1CC51A0019 for <jose@ietf.org>; Mon,  4 Aug 2014 10:27:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1442; q=dns/txt; s=iport; t=1407173255; x=1408382855; h=message-id:date:from:mime-version:to:subject:references: in-reply-to:content-transfer-encoding; bh=Y+p8iy9JI4IFEWKFIoO0s8sdkhHZEqBaTBKirSKw/20=; b=Qf5UgiIDcjk9QFFk9uVxrbvTgcDrRKvOXJmSFT9A4CSGr/iPwrswHB7G tdXM1Tpel3CKBSD4SSpdYZnSlgyoU0f7W7pcfRlpOH6mgFwzh8zATbSkE f0IBkfndVIE6tbLBCD35kNcGKdgCPfwnvph2wmHp3Zw9uNmVPr/OUAmCc M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AoEFAIDB31OtJA2H/2dsb2JhbABagw1SVwSCdKt6AwMFAW4BnEmHTgGBERZ3hAQBAQQjDwFFEQsOCgICBRYLAgIJAwIBAgFFBgEMBgIBAYg+rjGXBxeBLIRQiR06gnmBUgEEiw+Qd4cjjTyCB4FlTYFG
X-IronPort-AV: E=Sophos;i="5.01,799,1400025600"; d="scan'208";a="345001453"
Received: from alln-core-2.cisco.com ([173.36.13.135]) by rcdn-iport-6.cisco.com with ESMTP; 04 Aug 2014 17:27:35 +0000
Received: from xhc-rcd-x05.cisco.com (xhc-rcd-x05.cisco.com [173.37.183.79]) by alln-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id s74HRZA7032605 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 4 Aug 2014 17:27:35 GMT
Received: from [10.129.24.46] (10.129.24.46) by xhc-rcd-x05.cisco.com (173.37.183.79) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 4 Aug 2014 12:27:34 -0500
Message-ID: <53DFC288.9000502@cisco.com>
Date: Mon, 4 Aug 2014 11:27:36 -0600
From: Matt Miller <mamille2@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Brian Campbell <bcampbell@pingidentity.com>, "jose@ietf.org" <jose@ietf.org>
References: <CA+k3eCTL4Q=W5BC+FPRrzek1eH6icgf7j3rj=7jNyuO0GbPJXw@mail.gmail.com>
In-Reply-To: <CA+k3eCTL4Q=W5BC+FPRrzek1eH6icgf7j3rj=7jNyuO0GbPJXw@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Originating-IP: [10.129.24.46]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/YJBPcajNMx3EBeGc2HXD2uUoMuo
Subject: Re: [jose] Shouldn't Cookbook 4.1 have the "might not be possible to exactly replicate..." text?
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Aug 2014 17:27:37 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 7/30/14, 2:21 PM, Brian Campbell wrote:
> My understanding is that RSAES-PKCS1-v1_5 pads with random bytes
> so shouldn't Â§4.1 "Key Encryption using RSA v1.5 and AES-HMAC-SHA2"
> have a note similar to what's been added in other sections that
> states that it "might not be possible to exactly replicate the
> results in this section..."? My experience with RSA v1.5 has been
> that each invocation of it will produce a different the encrypted
> key value even for the same CEK (short of doing something funky
> with the source of randomness but even then there's not enough info
> in the draft to recreate the exact same results).
> 

Good catch; I'll add it to my working copy.


- -- 
- - m&m

Matt Miller < mamille2@cisco.com >
Cisco Systems, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJT38KIAAoJEDWi+S0W7cO1A/cIALNboGQDsposQ0dpiG6oM/rA
ZUJRYZsYx23nFT+sFVduAeU8r0G2XGjRCz7oJ7XVRALoOV97IKoY2LldkF3x6Yzd
rGB7u/QnGT0DS2DkWYbttm9HSOeGZaSFNkvFjrnanHfHaofUNygjnz3GkP7zv8Iv
JE9ObW3CfyOhp1Q4CCjeDyaVyFwktzIyJ7kGhbL8gYy/63IgAsLrUE20FuMx+GiL
ZxE8gFIuKz6nj3woPsGtKZoozMkY92He+iUjQ45SkOfbXpNNNHXQBu3duvuZyojC
qS6EtA1zdAXQjmW0PA48LOvjjYcjn7VyOTkxs/n9AoRlxxLM6cG7SUQXA7yodqg=
=Co2x
-----END PGP SIGNATURE-----


From nobody Mon Aug  4 10:28:37 2014
Return-Path: <mamille2@cisco.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 781981A007D for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:28:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level: 
X-Spam-Status: No, score=-14.502 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, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 FXYMtvBzqB4H for <jose@ietfa.amsl.com>; Mon,  4 Aug 2014 10:28:25 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 767041A0061 for <jose@ietf.org>; Mon,  4 Aug 2014 10:28:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2812; q=dns/txt; s=iport; t=1407173305; x=1408382905; h=message-id:date:from:mime-version:to:subject:references: in-reply-to:content-transfer-encoding; bh=4QmsOU37NVH2Cd7bfcltTQqt8oiD6h9ME42+SF8vt0o=; b=d+zY2VHbjOzeIdrw9u1tLe0FG4zag7zTpObCWMfPiRUpLHeAzrIGuiC2 4I5gOPanJB03xUAyzAahYyq4Nr5qlqv5KNIui+6ZmBm+hzN9Y5rqS8KTh Bijkm7JGb2Qb3h43dlJ//VObqacvUsQO/2XdHezH6Do+tpe8+jBVo37Ee I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AoIFAPfB31OtJA2F/2dsb2JhbABagw1SUwQErm4DAwUBbgGcQwqHSgGBERZ3hAQBAQQBAQEkRwoRCw4KCRYIBwkDAgECARUfEQYBDAYCAQEFiDkIBcUsF4V8iR06hEsFilU6kHeBVIVPjTyDbE0BgQUkHA
X-IronPort-AV: E=Sophos;i="5.01,799,1400025600"; d="scan'208";a="66412694"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-5.cisco.com with ESMTP; 04 Aug 2014 17:28:24 +0000
Received: from xhc-rcd-x05.cisco.com (xhc-rcd-x05.cisco.com [173.37.183.79]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id s74HSOuU015242 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 4 Aug 2014 17:28:24 GMT
Received: from [10.129.24.46] (10.129.24.46) by xhc-rcd-x05.cisco.com (173.37.183.79) with Microsoft SMTP Server (TLS) id 14.3.123.3; Mon, 4 Aug 2014 12:28:24 -0500
Message-ID: <53DFC2B9.2040000@cisco.com>
Date: Mon, 4 Aug 2014 11:28:25 -0600
From: Matt Miller <mamille2@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Brian Campbell <bcampbell@pingidentity.com>, "jose@ietf.org" <jose@ietf.org>
References: <20140722152441.4937.83383.idtracker@ietfa.amsl.com> <CA+k3eCSTq+69C1hSRdVSUJR3PNQA_KnZdZnQJzhskxV=MXa5tg@mail.gmail.com>
In-Reply-To: <CA+k3eCSTq+69C1hSRdVSUJR3PNQA_KnZdZnQJzhskxV=MXa5tg@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.129.24.46]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/5eqGakgXf4DIVvVz-b7FzcM0rnA
Subject: Re: [jose] I-D Action: draft-ietf-jose-cookbook-03.txt
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Aug 2014 17:28:29 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Thanks for the catch.  I've fixed this in my working copy.


- -- 
- - m&m

Matt Miller < mamille2@cisco.com >
Cisco Systems, Inc.

On 7/26/14, 11:29 AM, Brian Campbell wrote:
> Little typo in 
> http://tools.ietf.org/html/draft-ietf-jose-cookbook-03#section-1.1
> -> "or to validate or to validate" should just have "or to
> validate" once.
> 
> 
> On Tue, Jul 22, 2014 at 9:24 AM, <internet-drafts@ietf.org 
> <mailto:internet-drafts@ietf.org>> wrote:
> 
> 
> A New Internet-Draft is available from the on-line Internet-Drafts 
> directories. This draft is a work item of the Javascript Object
> Signing and Encryption Working Group of the IETF.
> 
> Title           : Examples of Protecting Content using JavaScript
> Object Signing and Encryption (JOSE) Author          : Matthew
> Miller Filename        : draft-ietf-jose-cookbook-03.txt Pages
> : 96 Date            : 2014-07-22
> 
> Abstract: A set of examples of using JavaScript Object Signing and
> Encryption (JOSE) to protect data.  This document illustrates a
> representative sampling of various JSON Web Signature (JWS) and
> JSON Web Encryption (JWE) results given similar inputs.
> 
> 
> The IETF datatracker status page for this draft is: 
> https://datatracker.ietf.org/doc/draft-ietf-jose-cookbook/
> 
> There's also a htmlized version available at: 
> http://tools.ietf.org/html/draft-ietf-jose-cookbook-03
> 
> A diff from the previous version is available at: 
> http://www.ietf.org/rfcdiff?url2=draft-ietf-jose-cookbook-03
> 
> 
> Please note that it may take a couple of minutes from the time of 
> submission until the htmlized version and diff are available at
> tools.ietf.org <http://tools.ietf.org>.
> 
> Internet-Drafts are also available by anonymous FTP at: 
> ftp://ftp.ietf.org/internet-drafts/
> 
> _______________________________________________ jose mailing list 
> jose@ietf.org <mailto:jose@ietf.org> 
> https://www.ietf.org/mailman/listinfo/jose
> 
> 
> 
> 
> _______________________________________________ jose mailing list 
> jose@ietf.org https://www.ietf.org/mailman/listinfo/jose
> 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJT38K5AAoJEDWi+S0W7cO15SgH/2SLTkMSZs7oJEAr6OZYnkDM
okJc8NNOmgvb1thu9wtu1TJdIFfqLHRJk4fBXGDcv2Y0UwwFATjUNlh++5QVyrBA
1CRCKq5+hewvo+1VLzOiJtNmBit8AhnT13bqlFaiEmNLEaLknMTJQrPILnXVJ2oI
USigpeEcQW/iH6odaz0zGgViaOFdhpDQusL+iv6MyvMsK0mhDspcYTd78it7WxQ5
9xE5/XrlF/8Rc8kKWdGA9ozXqh5g6Em+NAQZlyJBalqXcSAHt1b+ZJgoLV75cIiS
EJdoJGqXWK4nFpi8qc3KsubyGURWOOMw5zbmCwB7ZuvonwMR/BsibkenEDUXBps=
=jv2Z
-----END PGP SIGNATURE-----


From nobody Tue Aug  5 18:22:16 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 405FF1A063D for <jose@ietfa.amsl.com>; Tue,  5 Aug 2014 18:22:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 gyulUEbfooVh for <jose@ietfa.amsl.com>; Tue,  5 Aug 2014 18:22:07 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0209.outbound.protection.outlook.com [207.46.163.209]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6A561A0535 for <jose@ietf.org>; Tue,  5 Aug 2014 18:22:06 -0700 (PDT)
Received: from BY2PR03CA059.namprd03.prod.outlook.com (10.141.249.32) by DM2PR03MB590.namprd03.prod.outlook.com (10.141.85.153) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 01:22:04 +0000
Received: from BL2FFO11FD045.protection.gbl (2a01:111:f400:7c09::157) by BY2PR03CA059.outlook.office365.com (2a01:111:e400:2c5d::32) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Wed, 6 Aug 2014 01:22:03 +0000
Received: from mail.microsoft.com (131.107.125.37) by BL2FFO11FD045.mail.protection.outlook.com (10.173.161.207) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Wed, 6 Aug 2014 01:22:03 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.03.0195.002; Wed, 6 Aug 2014 01:21:49 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
Thread-Index: AQHPpoRHRKZBW+ii8EKi8/agbGA8cJvCtYzA
Date: Wed, 6 Aug 2014 01:21:48 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <53CFC9A4.3000500@isoc.org>
In-Reply-To: <53CFC9A4.3000500@isoc.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.72]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE06688TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(189002)(199002)(13464003)(377454003)(77096002)(99396002)(50986999)(76176999)(54356999)(92566001)(92726001)(104016003)(19617315012)(110136001)(2351001)(107046002)(106116001)(74502001)(81156004)(74662001)(106466001)(15202345003)(95666004)(85306004)(15975445006)(68736004)(79102001)(77982001)(69596002)(76482001)(84676001)(55846006)(84326002)(81542001)(81342001)(20776003)(64706001)(66066001)(80022001)(71186001)(33656002)(97736001)(86362001)(26826002)(19625215002)(86612001)(6806004)(44976005)(19580395003)(83322001)(19580405001)(2656002)(87936001)(4396001)(85852003)(83072002)(512954002)(46102001)(31966008)(21056001)(19300405004)(16236675004); DIR:OUT; SFP:; SCL:1; SRVR:DM2PR03MB590; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 02951C14DC
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/g3zuqsxw5tBrY2a2hHOV738-IIs
Cc: Karen O'Donoghue <odonoghue@isoc.org>, Matt Miller <mamille2@cisco.com>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Aug 2014 01:22:14 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE06688TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

COMMENTS ON NORMATIVE CONTENT



1.  This document contains a wealth of useful JWS and JWE examples using a =
broad selection of algorithms.  My review primary review comment is that it=
 should also contain a section with illustrative JWK examples.  These examp=
les should intentionally illustrate corner cases that will actually occur t=
hat developers might get wrong.  I would suggest adding these JWK examples:



1a.  JWK with "kty": "RSA", e=3D65537, and 2048 bit "n".  I would point out=
 that neither can legally be prefixed by with extra zero bytes.  (Examples =
have been found in the wild in which developers mistakenly represent "n" va=
lues by encoding an extra leading byte - the extra byte being zero - rather=
 than encoding the specified number of bytes - the highest-order bit of whi=
ch is always 1 for a correctly generated key.  For instance, such mis-repre=
sentations encode 257 bytes for a 2048 bit key, rather than 256 bytes.)



1b.  JWK with "kty": "EC", "crv": "P-256", and for which the high-order byt=
e of one of "x" or "y" are zero.  I would point out that the high-order byt=
es are required to be represented, even if zero.  I would also point out th=
at extra zero bytes are not permitted.



1c.  JWK with "kty": "EC", "crv": "P-521", and for which the high-order (52=
1st) bit of one of "x" or "y" are zero (and because only one significant bi=
t is used to represent the 521st bit in the high-order byte, consequently t=
he corresponding high-order byte is zero).    I would point out that the hi=
gh-order bytes are required to be represented, even if zero.  I would also =
point out that extra zero bytes are not permitted.



1d.  JWK with "kty": "oct" and 128 bit "k" value in which the high-order by=
te is zero.  I would point out that the high-order bytes are required to be=
 represented, even if zero.  I would also point out that extra zero bytes a=
re not permitted.



This will also necessitate revising some descriptive text at various locati=
ons in the specification.  For instance, a new sentence at the end of the A=
bstract should added "This document also illustrates a sampling of JSON Web=
 Key (JWK) representations".



2.  Terminology usage throughout the document:  You should replace uses of =
the term "Protected JWS Header" with "JWS Protected Header", to match the J=
WS spec.  Likewise, you should replace "Protected JWE Header" with "JWE Pro=
tected Header", "Unprotected JW* Header" with "JW* Unprotected Header", etc=
.



The terms "JWS Header" and "JWE Header" were replaced with the term "JOSE H=
eader" in the -29 versions.  You need to apply this change as well.



I'd likewise check other terms to make sure the ones you're using match the=
 other JOSE specs.



3.  Section 3.1.2 (Signing Operation):  You show the JOSE header value as c=
ontaining line breaks and whitespace, but the base64url encoded version of =
it does not contain these characters.  You need to say that the unencoded f=
orm is shown with extra whitespace for readability but that, for brevity, t=
he cookbook omits these formatting characters that don't change the meaning=
 of the JSON in the base64url encoded versions.  You should also say that t=
hey need not have been omitted, as they would have been legal in the base64=
url encoded JSON object.



I first noticed this inconsistency in Section 3, but it happens everywhere =
you display a JOSE Header value.  You probably need to say something genera=
l about this, as well as say something specific about it the first time it =
occurs in an example.



4.  Section 3.1.2 (Signing Operation):  You refer to the "combined projecte=
d JWS header and payload content".  It might be useful to readers to elabor=
ate more on the combination.  You could, for instance, say that they are "c=
ombined ... into the JWS Signing Input value, as described in Section 5.1 o=
f [JWS]".  I might do this for at least the first signing example.  At the =
very least, the term "JWS Signing Input" describing this intermediate resul=
t should probably appear somewhere.



5.  Section 3.1.3 (Output Results):  You show a result using the JWS Compac=
t Serialization but with line breaks in it.  You need to say that the line =
breaks within the output value are for display purposes only.  For what it'=
s worth, the JWS spec does this by including the phrases "(with line breaks=
 for display purposes only)" or "(with line breaks within values for displa=
y purposes only)", where appropriate, in the description of the value.  Thi=
s situation occurs throughout the specification.



6.  Section 3.1.3 (Output Results):  You show a result using the JWS JSON S=
erialization with line breaks within some values.  This would be an appropr=
iate place to use the "(with line breaks within values for display purposes=
 only)" language.  This situation occurs throughout the specification.





EDITORIAL COMMENTS



E0.  I would suggest taking the HTML output and running it through a gramma=
r checker, such as the one in Microsoft Word.  This will catch a number of =
simple phrasing problems, omitted words, and repeated words.  Some specific=
 editorial comments follow.



E1.  In the Abstract, the first "sentence" is missing a verb, and so is act=
ually a fragment.  I'd change it to "This specification contains set of exa=
mples using JavaScript Object Signing and Encryption (JOSE) functionality t=
o protect data".



E2.  In the Introduction, I would change the document order to JWS, JWE, JW=
K, JWA - as that is the standard order we usually talk about them in - in p=
art, because if a developer uses only one of (JWS, JWE, and JWK), it tends =
to be JWS - so it makes sense to start with it.  JWA is last because it's u=
sed by all the others.  JWE follows JWS because it makes sense to group enc=
ryption with signing.  Which leaves JWK in the third spot.



E3.  In the Introduction, this sentence seems overly negative:  "The full s=
et of permutations is extremely large, and might be daunting to some".  I'd=
 reword it to: "While the full set of permutations is large, and might be d=
aunting to some, it is expected that most applications will choose a relati=
vely constrained set of algorithms and combinations that meet their needs".



E4.  Introduction: "compile together" -> "compile"



E5.  Section 1.1:  "enough factors" -> "enough information"



E6.  Section 1.1:  "or to validate or to validate" -> "or to validate"



E7.  Section 1.1: "some algorithms inherently use random data and cannot be=
 exactly replicated" -> "some algorithms inherently use random data and the=
refore computations employing them cannot be exactly replicated"



E8.  In the Terminology section, use the document order JWS, JWE, JWK, JWA.



E9.  Section 3: "the sequence "\xe2\x80\x99" substituted" -> "the sequence =
"\xe2\x80\x99" is substituted"



E10.  Section 3: "line breaks (U+000A LINE FEED) replacing some " " (U+0020=
 SPACE)" -> "line breaks (U+000A LINE FEED) replace some instances of " " (=
U+0020 SPACE)"



E11.  Section 4:  Apply the same editorial corrections to the second paragr=
aph as E9 and E10 above.



E12.  Acknowledgments: "quotes" -> "quotations"



E13.  Acknowledgments: Uses of ";" should be changed to ",".





-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue
Sent: Wednesday, July 23, 2014 7:42 AM
To: jose@ietf.org
Subject: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook=
-03



Folks,



This message starts a two week working group last call for the jose cookboo=
k document "Examples of Protecting Content using JavaScript Object Signing =
and Encryption (JOSE)"

(https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)



Please review the document and send comments, questions to the Working Grou=
p mailing list < jose at ietf.org > or the co-chairs <jose-chairs at tools.=
ietf.org > before the end of the WGLC.



Please note that suggested changes which include proposed text will be more=
 strongly considered than those without. Additionally, even if you have no =
comments, statements to the effect that "I have read this document and beli=
eve it is ready for publication" are helpful.



Regards,

Karen and Jim



_______________________________________________

jose mailing list

jose@ietf.org<mailto:jose@ietf.org>

https://www.ietf.org/mailman/listinfo/jose

--_000_4E1F6AAD24975D4BA5B16804296739439AE06688TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText">COMMENTS ON NORMATIVE CONTENT<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">1.&nbsp; This document contains a wealth of usefu=
l JWS and JWE examples using a broad selection of algorithms.&nbsp; My revi=
ew primary review comment is that it should also contain a section with ill=
ustrative JWK examples.&nbsp; These examples should
 intentionally illustrate corner cases that will actually occur that develo=
pers might get wrong.&nbsp; I would suggest adding these JWK examples:<o:p>=
</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">1a.&nbsp; JWK with &#8220;kty&#8221;: &#8220;RSA&=
#8221;, e=3D65537, and 2048 bit &#8220;n&#8221;.&nbsp; I would point out th=
at neither can legally be prefixed by with extra zero bytes.&nbsp; (Example=
s have been found in the wild in which developers mistakenly represent &#82=
20;n&#8221; values by encoding
 an extra leading byte &#8211; the extra byte being zero &#8211; rather tha=
n encoding the specified number of bytes &#8211; the highest-order bit of w=
hich is always 1 for a correctly generated key.&nbsp; For instance, such mi=
s-representations encode 257 bytes for a 2048 bit key,
 rather than 256 bytes.)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">1b.&nbsp; JWK with &#8220;kty&#8221;: &#8220;EC&#=
8221;, &#8220;crv&#8221;: &#8220;P-256&#8221;, and for which the high-order=
 byte of one of &#8220;x&#8221; or &#8220;y&#8221; are zero.&nbsp; I would =
point out that the high-order bytes are required to be represented, even if=
 zero.&nbsp; I would also point out that extra
 zero bytes are not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">1c.&nbsp; JWK with &#8220;kty&#8221;: &#8220;EC&#=
8221;, &#8220;crv&#8221;: &#8220;P-521&#8221;, and for which the high-order=
 (521<sup>st</sup>) bit of one of &#8220;x&#8221; or &#8220;y&#8221; are ze=
ro (and because only one significant bit is used to represent the 521<sup>s=
t</sup> bit in the high-order byte,
 consequently the corresponding high-order byte is zero).&nbsp; &nbsp;&nbsp=
;I would point out that the high-order bytes are required to be represented=
, even if zero.&nbsp; I would also point out that extra zero bytes are not =
permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">1d.&nbsp; JWK with &#8220;kty&#8221;: &#8220;oct&=
#8221; and 128 bit &#8220;k&#8221; value in which the high-order byte is ze=
ro.&nbsp; I would point out that the high-order bytes are required to be re=
presented, even if zero.&nbsp; I would also point out that extra zero bytes=
 are not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">This will also necessitate revising some descript=
ive text at various locations in the specification.&nbsp; For instance, a n=
ew sentence at the end of the Abstract should added &#8220;This document al=
so illustrates a sampling of JSON Web Key (JWK)
 representations&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">2.&nbsp; Terminology usage throughout the documen=
t:&nbsp; You should replace uses of the term &#8220;Protected JWS Header&#8=
221; with &#8220;JWS Protected Header&#8221;, to match the JWS spec.&nbsp; =
Likewise, you should replace &#8220;Protected JWE Header&#8221; with &#8220=
;JWE Protected Header&#8221;,
 &#8220;Unprotected JW* Header&#8221; with &#8220;JW* Unprotected Header&#8=
221;, etc.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The terms &#8220;JWS Header&#8221; and &#8220;JWE=
 Header&#8221; were replaced with the term &#8220;JOSE Header&#8221; in the=
 -29 versions.&nbsp; You need to apply this change as well.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I&#8217;d likewise check other terms to make sure=
 the ones you&#8217;re using match the other JOSE specs.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">3.&nbsp; Section 3.1.2 (Signing Operation):&nbsp;=
 You show the JOSE header value as containing line breaks and whitespace, b=
ut the base64url encoded version of it does not contain these characters. &=
nbsp;You need to say that the unencoded form is shown
 with extra whitespace for readability but that, for brevity, the cookbook =
omits these formatting characters that don&#8217;t change the meaning of th=
e JSON in the base64url encoded versions.&nbsp; You should also say that th=
ey need not have been omitted, as they would
 have been legal in the base64url encoded JSON object.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I first noticed this inconsistency in Section 3, =
but it happens everywhere you display a JOSE Header value.&nbsp; You probab=
ly need to say something general about this, as well as say something speci=
fic about it the first time it occurs in
 an example.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">4.&nbsp; Section 3.1.2 (Signing Operation):&nbsp;=
 You refer to the &#8220;combined projected JWS header and payload content&=
#8221;.&nbsp; It might be useful to readers to elaborate more on the combin=
ation.&nbsp; You could, for instance, say that they are &#8220;combined
 &#8230; into the JWS Signing Input value, as described in Section 5.1 of [=
JWS]&#8221;.&nbsp; I might do this for at least the first signing example.&=
nbsp; At the very least, the term &#8220;JWS Signing Input&#8221; describin=
g this intermediate result should probably appear somewhere.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">5.&nbsp; Section 3.1.3 (Output Results):&nbsp; Yo=
u show a result using the JWS Compact Serialization but with line breaks in=
 it.&nbsp; You need to say that the line breaks within the output value are=
 for display purposes only.&nbsp; For what it&#8217;s worth,
 the JWS spec does this by including the phrases &#8220;(with line breaks f=
or display purposes only)&#8221; or &#8220;(with line breaks within values =
for display purposes only)&#8221;, where appropriate, in the description of=
 the value.&nbsp; This situation occurs throughout the specification.<o:p><=
/o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">6.&nbsp; Section 3.1.3 (Output Results):&nbsp; Yo=
u show a result using the JWS JSON Serialization with line breaks within so=
me values.&nbsp; This would be an appropriate place to use the &#8220;(with=
 line breaks within values for display purposes only)&#8221;
 language. &nbsp;This situation occurs throughout the specification.<o:p></=
o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">EDITORIAL COMMENTS<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E0.&nbsp; I would suggest taking the HTML output =
and running it through a grammar checker, such as the one in Microsoft Word=
.&nbsp; This will catch a number of simple phrasing problems, omitted words=
, and repeated words.&nbsp; Some specific editorial
 comments follow.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E1.&nbsp; In the Abstract, the first &#8220;sente=
nce&#8221; is missing a verb, and so is actually a fragment.&nbsp; I&#8217;=
d change it to &#8220;This specification contains set of examples using Jav=
aScript Object Signing and Encryption (JOSE) functionality to protect
 data&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E2.&nbsp; In the Introduction, I would change the=
 document order to JWS, JWE, JWK, JWA &#8211; as that is the standard order=
 we usually talk about them in &#8211; in part, because if a developer uses=
 only one of (JWS, JWE, and JWK), it tends to be JWS
 &#8211; so it makes sense to start with it.&nbsp; JWA is last because it&#=
8217;s used by all the others.&nbsp; JWE follows JWS because it makes sense=
 to group encryption with signing.&nbsp; Which leaves JWK in the third spot=
.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E3.&nbsp; In the Introduction, this sentence seem=
s overly negative:&nbsp; &#8220;The full set of permutations is extremely l=
arge, and might be daunting to some&#8221;.&nbsp; I&#8217;d reword it to: &=
#8220;While the full set of permutations is large, and might be daunting
 to some, it is expected that most applications will choose a relatively co=
nstrained set of algorithms and combinations that meet their needs&#8221;.<=
o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E4.&nbsp; Introduction: &#8220;compile together&#=
8221; -&gt; &#8220;compile&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E5.&nbsp; Section 1.1:&nbsp; &#8220;enough factor=
s&#8221; -&gt; &#8220;enough information&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E6.&nbsp; Section 1.1:&nbsp; &#8220;or to validat=
e or to validate&#8221; -&gt; &#8220;or to validate&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E7.&nbsp; Section 1.1: &#8220;some algorithms inh=
erently use random data and cannot be exactly replicated&#8221; -&gt; &#822=
0;some algorithms inherently use random data and therefore computations emp=
loying them cannot be exactly replicated&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E8.&nbsp; In the Terminology section, use the doc=
ument order JWS, JWE, JWK, JWA.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E9.&nbsp; Section 3: &#8220;the sequence &#8220;\=
xe2\x80\x99&#8221; substituted&#8221; -&gt; &#8220;the sequence &#8220;\xe2=
\x80\x99&#8221; is substituted&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E10.&nbsp; Section 3: &#8220;line breaks (U&#43;0=
00A LINE FEED) replacing some &#8220; &#8220; (U&#43;0020 SPACE)&#8221; -&g=
t; &#8220;line breaks (U&#43;000A LINE FEED) replace some instances of &#82=
20; &#8220; (U&#43;0020 SPACE)&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E11.&nbsp; Section 4:&nbsp; Apply the same editor=
ial corrections to the second paragraph as E9 and E10 above.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E12. &nbsp;Acknowledgments: &#8220;quotes&#8221; =
-&gt; &#8220;quotations&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">E13.&nbsp; Acknowledgments: Uses of &#8220;;&#822=
1; should be changed to &#8220;,&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue<br>
Sent: Wednesday, July 23, 2014 7:42 AM<br>
To: jose@ietf.org<br>
Subject: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook=
-03</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Folks,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">This message starts a two week working group last=
 call for the jose cookbook document &quot;Examples of Protecting Content u=
sing JavaScript Object Signing and Encryption (JOSE)&quot;<o:p></o:p></p>
<p class=3D"MsoPlainText">(<a href=3D"https://tools.ietf.org/html/draft-iet=
f-jose-cookbook-03"><span style=3D"color:windowtext;text-decoration:none">h=
ttps://tools.ietf.org/html/draft-ietf-jose-cookbook-03</span></a>)<o:p></o:=
p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Please review the document and send comments, que=
stions to the Working Group mailing list &lt; jose at ietf.org &gt; or the =
co-chairs &lt;jose-chairs at tools.ietf.org &gt; before the end of the WGLC=
.
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Please note that suggested changes which include =
proposed text will be more strongly considered than those without. Addition=
ally, even if you have no comments, statements to the effect that &quot;I h=
ave read this document and believe it is
 ready for publication&quot; are helpful.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Regards,<o:p></o:p></p>
<p class=3D"MsoPlainText">Karen and Jim<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">_______________________________________________<o=
:p></o:p></p>
<p class=3D"MsoPlainText">jose mailing list<o:p></o:p></p>
<p class=3D"MsoPlainText"><a href=3D"mailto:jose@ietf.org"><span style=3D"c=
olor:windowtext;text-decoration:none">jose@ietf.org</span></a><o:p></o:p></=
p>
<p class=3D"MsoPlainText"><a href=3D"https://www.ietf.org/mailman/listinfo/=
jose"><span style=3D"color:windowtext;text-decoration:none">https://www.iet=
f.org/mailman/listinfo/jose</span></a><o:p></o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE06688TK5EX14MBXC293r_--


From nobody Wed Aug  6 07:45:47 2014
Return-Path: <mamille2@cisco.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AAA691B27F8 for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 07:45:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level: 
X-Spam-Status: No, score=-14.502 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, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 u1EDmh2tnGc4 for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 07:45:39 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D488B1A063E for <jose@ietf.org>; Wed,  6 Aug 2014 07:45:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11011; q=dns/txt; s=iport; t=1407336338; x=1408545938; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=Yspm2W91Xf5q5muVZ/PWjeFBtLHhXG4wirpQr5xLC00=; b=ajbwKEekHuYIyv6kgAwmG2jrpzS5lEpO8GjZYD6+0Rs/zPM1Iypn6Mgp HAAhvFWGGGv3CLI2EyuvvOgHX0ycem4djPkv8FhKZp5waLPi7Wc/TlOeh NBjxiZhC9A66/YZ4+fs7iaSof4LZoKaXdg+7k5mA6ArrSYJBuop+v3Jb7 w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjkHAAA/4lOtJV2T/2dsb2JhbABagw1SVwSuGAEBAQEBAQUBbp0JCoYAgUgBgRIWd4QDAQEBAwEBAQEJEQoLATsKAQwECw4DBAEBAQkWCAcJAwIBAgEVHwkIBgEMAQUCAQGINggNw2cXhXyJHTMHBoRFAQSFAIYTg2mGL4I5hC6BVIVQjUGBXQIZgXtNgQYkHA
X-IronPort-AV: E=Sophos;i="5.01,812,1400025600"; d="scan'208";a="66999654"
Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by alln-iport-2.cisco.com with ESMTP; 06 Aug 2014 14:45:36 +0000
Received: from xhc-rcd-x05.cisco.com (xhc-rcd-x05.cisco.com [173.37.183.79]) by rcdn-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id s76EjaVB004847 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 6 Aug 2014 14:45:36 GMT
Received: from [10.129.24.46] (10.129.24.46) by xhc-rcd-x05.cisco.com (173.37.183.79) with Microsoft SMTP Server (TLS) id 14.3.123.3; Wed, 6 Aug 2014 09:45:36 -0500
Message-ID: <53E23F93.1060901@cisco.com>
Date: Wed, 6 Aug 2014 08:45:39 -0600
From: Matt Miller <mamille2@cisco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>
References: <53CFC9A4.3000500@isoc.org> <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 8bit
X-Originating-IP: [10.129.24.46]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/9-UCd5WbK7pCLrZzh6Id-Qcmew4
Cc: Karen O'Donoghue <odonoghue@isoc.org>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Aug 2014 14:45:42 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Thank you for your feedback, Mike.

More comments inline.

On 8/5/14, 7:21 PM, Mike Jones wrote:
> COMMENTS ON NORMATIVE CONTENT
> 
> 
> 
> 1.  This document contains a wealth of useful JWS and JWE examples
> using a broad selection of algorithms.  My review primary review
> comment is that it should also contain a section with illustrative
> JWK examples. These examples should intentionally illustrate corner
> cases that will actually occur that developers might get wrong.  I
> would suggest adding these JWK examples:
> 
> 
> 
> 1a.  JWK with “kty”: “RSA”, e=65537, and 2048 bit “n”.  I would
> point out that neither can legally be prefixed by with extra zero
> bytes. (Examples have been found in the wild in which developers
> mistakenly represent “n” values by encoding an extra leading byte –
> the extra byte being zero – rather than encoding the specified
> number of bytes – the highest-order bit of which is always 1 for a
> correctly generated key. For instance, such mis-representations
> encode 257 bytes for a 2048 bit key, rather than 256 bytes.)
> 
> 
> 
> 1b.  JWK with “kty”: “EC”, “crv”: “P-256”, and for which the
> high-order byte of one of “x” or “y” are zero.  I would point out
> that the high-order bytes are required to be represented, even if
> zero.  I would also point out that extra zero bytes are not
> permitted.
> 
> 
> 
> 1c.  JWK with “kty”: “EC”, “crv”: “P-521”, and for which the
> high-order (521^st ) bit of one of “x” or “y” are zero (and because
> only one significant bit is used to represent the 521^st bit in the
> high-order byte, consequently the corresponding high-order byte is
> zero).    I would point out that the high-order bytes are required
> to be represented, even if zero.  I would also point out that extra
> zero bytes are not permitted.
> 
> 
> 
> 1d.  JWK with “kty”: “oct” and 128 bit “k” value in which the
> high-order byte is zero.  I would point out that the high-order
> bytes are required to be represented, even if zero.  I would also
> point out that extra zero bytes are not permitted.
> 
> 
> 
> This will also necessitate revising some descriptive text at
> various locations in the specification.  For instance, a new
> sentence at the end of the Abstract should added “This document
> also illustrates a sampling of JSON Web Key (JWK)
> representations”.
> 
> 

The document includes all of the above, but does not call them out
specifically.  I can add a section that copies a representative sample
of JWKs from elsewhere in the document.

> 
> 2.  Terminology usage throughout the document:  You should replace
> uses of the term “Protected JWS Header” with “JWS Protected
> Header”, to match the JWS spec.  Likewise, you should replace
> “Protected JWE Header” with “JWE Protected Header”, “Unprotected
> JW* Header” with “JW* Unprotected Header”, etc.
> 
> 
> 
> The terms “JWS Header” and “JWE Header” were replaced with the
> term “JOSE Header” in the -29 versions.  You need to apply this
> change as well.
> 
> 
> 
> I’d likewise check other terms to make sure the ones you’re using
> match the other JOSE specs.
> 
> 

I'll make the appropriate changes.  We better be done changing our
dictionary (-:

> 
> 3.  Section 3.1.2 (Signing Operation):  You show the JOSE header
> value as containing line breaks and whitespace, but the base64url
> encoded version of it does not contain these characters.  You need
> to say that the unencoded form is shown with extra whitespace for
> readability but that, for brevity, the cookbook omits these
> formatting characters that don’t change the meaning of the JSON in
> the base64url encoded versions. You should also say that they need
> not have been omitted, as they would have been legal in the
> base64url encoded JSON object.
> 
> 
> 
> I first noticed this inconsistency in Section 3, but it happens 
> everywhere you display a JOSE Header value.  You probably need to
> say something general about this, as well as say something specific
> about it the first time it occurs in an example.

Section 1.1 already contains the following paragraph:

All of the examples in this document have whitespace added to improve
formatting and readability. Except for JWE plaintext or JWS payload
content, whitespace is not part of the cryptographic operations.
Unless otherwise noted, the JWE plaintext or JWS payload content does
include “ “ (U+0020 SPACE) characters; line breaks (U+000A LINE FEED)
are added to improve readability but are not present in the JWE
plaintext or JWS payload.

Do you have a suggestion for better wording?  Does the working group
believe this needs to be repeated in very section?

> 
> 
> 
> 4.  Section 3.1.2 (Signing Operation):  You refer to the “combined 
> projected JWS header and payload content”.  It might be useful to 
> readers to elaborate more on the combination.  You could, for
> instance, say that they are “combined … into the JWS Signing Input
> value, as described in Section 5.1 of [JWS]”.  I might do this for
> at least the first signing example.  At the very least, the term
> “JWS Signing Input” describing this intermediate result should
> probably appear somewhere.
> 
> 

I can add the intermediate examples.

> 
> 5.  Section 3.1.3 (Output Results):  You show a result using the
> JWS Compact Serialization but with line breaks in it.  You need to
> say that the line breaks within the output value are for display
> purposes only. For what it’s worth, the JWS spec does this by
> including the phrases “(with line breaks for display purposes
> only)” or “(with line breaks within values for display purposes
> only)”, where appropriate, in the description of the value.  This
> situation occurs throughout the specification.
> 
> 

See above regarding Section 1.1.

> 
> 6.  Section 3.1.3 (Output Results):  You show a result using the
> JWS JSON Serialization with line breaks within some values.  This
> would be an appropriate place to use the “(with line breaks within
> values for display purposes only)” language.  This situation occurs
> throughout the specification.
> 

See above regarding Section 1.1.

> 
> 
> 
> 
> EDITORIAL COMMENTS
> 
> 
> 
> E0.  I would suggest taking the HTML output and running it through
> a grammar checker, such as the one in Microsoft Word.  This will
> catch a number of simple phrasing problems, omitted words, and
> repeated words. Some specific editorial comments follow.
> 
> 

I admittedly turned off my spell checkers once most of the examples
were in place due to the rather high signal-to-noise ratio.

> 
> E1.  In the Abstract, the first “sentence” is missing a verb, and
> so is actually a fragment.  I’d change it to “This specification
> contains set of examples using JavaScript Object Signing and
> Encryption (JOSE) functionality to protect data”.
> 
> 
> 
> E2.  In the Introduction, I would change the document order to JWS,
> JWE, JWK, JWA – as that is the standard order we usually talk about
> them in – in part, because if a developer uses only one of (JWS,
> JWE, and JWK), it tends to be JWS – so it makes sense to start with
> it.  JWA is last because it’s used by all the others.  JWE follows
> JWS because it makes sense to group encryption with signing.  Which
> leaves JWK in the third spot.
> 
> 
> 
> E3.  In the Introduction, this sentence seems overly negative:
> “The full set of permutations is extremely large, and might be
> daunting to some”.  I’d reword it to: “While the full set of
> permutations is large, and might be daunting to some, it is
> expected that most applications will choose a relatively
> constrained set of algorithms and combinations that meet their
> needs”.
> 
> 
> 
> E4.  Introduction: “compile together” -> “compile”
> 
> 
> 
> E5.  Section 1.1:  “enough factors” -> “enough information”
> 
> 
> 
> E6.  Section 1.1:  “or to validate or to validate” -> “or to
> validate”
> 
> 
> 
> E7.  Section 1.1: “some algorithms inherently use random data and
> cannot be exactly replicated” -> “some algorithms inherently use
> random data and therefore computations employing them cannot be
> exactly replicated”
> 
> 
> 
> E8.  In the Terminology section, use the document order JWS, JWE,
> JWK, JWA.
> 
> 
> 
> E9.  Section 3: “the sequence “\xe2\x80\x99” substituted” -> “the 
> sequence “\xe2\x80\x99” is substituted”
> 
> 
> 
> E10.  Section 3: “line breaks (U+000A LINE FEED) replacing some “
> “ (U+0020 SPACE)” -> “line breaks (U+000A LINE FEED) replace some 
> instances of “ “ (U+0020 SPACE)”
> 
> 
> 
> E11.  Section 4:  Apply the same editorial corrections to the
> second paragraph as E9 and E10 above.
> 
> 
> 
> E12.  Acknowledgments: “quotes” -> “quotations”
> 
> 
> 
> E13.  Acknowledgments: Uses of “;” should be changed to “,”.
> 
> 
> 
> 
> 
> -----Original Message----- From: jose
> [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue Sent:
> Wednesday, July 23, 2014 7:42 AM To: jose@ietf.org Subject: [jose]
> Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
> 
> 
> 
> Folks,
> 
> 
> 
> This message starts a two week working group last call for the
> jose cookbook document "Examples of Protecting Content using
> JavaScript Object Signing and Encryption (JOSE)"
> 
> (https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)
> 
> 
> 
> Please review the document and send comments, questions to the
> Working Group mailing list < jose at ietf.org > or the co-chairs
> <jose-chairs at tools.ietf.org > before the end of the WGLC.
> 
> 
> 
> Please note that suggested changes which include proposed text will
> be more strongly considered than those without. Additionally, even
> if you have no comments, statements to the effect that "I have read
> this document and believe it is ready for publication" are
> helpful.
> 
> 
> 
> Regards,
> 
> Karen and Jim
> 
> 
> 
> _______________________________________________
> 
> jose mailing list
> 
> jose@ietf.org <mailto:jose@ietf.org>
> 
> https://www.ietf.org/mailman/listinfo/jose
> 


- -- 
- - m&m

Matt Miller < mamille2@cisco.com >
Cisco Systems, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJT4j+SAAoJEDWi+S0W7cO1Iy4H/Rt6W6n4abVcEbyIMrFe/zZP
QkJNe1bFBFFmytTz+Djp+gfEsd3ZhseaS8EiwozOWdrlkvcAUR3lIvOgt4LU4tTf
oVV94W41T5azuXavXNjVSgXR7vLtYkOpt991d5oqqU7VRPnA58EsJbCOaUkmrieA
Fi4MLqYKAq4qIHBZvGqRELFhqYhTG4yT9ueoCwpcsN2iEveEU0kjlF+eyEVFS8dn
7IF4kSy6HYyhWzFVfrQ0996Y/hv/50cpJEnGy4Mhlem41Gv3KhsqCV+EexNVrS46
NO1P0UzM/Hv6uYElAucvx6E249n2tQlFkQ+ZJqWJu1qhfsVGmrfQ0rZTwVZ8CXk=
=Km7Y
-----END PGP SIGNATURE-----


From nobody Wed Aug  6 10:54:32 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2C27D1A0401 for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 10:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.295
X-Spam-Level: 
X-Spam-Status: No, score=-1.295 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TRACKER_ID=1.306] 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 biY1-V8YJ55H for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 10:54:18 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0208.outbound.protection.outlook.com [207.46.163.208]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F249B1A03CF for <jose@ietf.org>; Wed,  6 Aug 2014 10:54:17 -0700 (PDT)
Received: from BN3PR0301CA0018.namprd03.prod.outlook.com (25.160.180.156) by CY1PR0301MB0762.namprd03.prod.outlook.com (25.160.159.156) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 17:54:09 +0000
Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::187) by BN3PR0301CA0018.outlook.office365.com (2a01:111:e400:4000::28) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Wed, 6 Aug 2014 17:54:09 +0000
Received: from mail.microsoft.com (131.107.125.37) by BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with Microsoft SMTP Server (TLS) id 15.0.990.10 via Frontend Transport; Wed, 6 Aug 2014 17:54:08 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.03.0195.002; Wed, 6 Aug 2014 17:53:56 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Matt Miller <mamille2@cisco.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
Thread-Index: AQHPsYUY9zRm5DEi1UqeRHDT4ZIM8ZvD1vRg
Date: Wed, 6 Aug 2014 17:53:55 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE07537@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <53CFC9A4.3000500@isoc.org> <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com> <53E23F93.1060901@cisco.com>
In-Reply-To: <53E23F93.1060901@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.32]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE07537TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(54524002)(199002)(189002)(24454002)(13464003)(479174003)(377454003)(51704005)(66066001)(64706001)(2656002)(80022001)(20776003)(31966008)(46102001)(87936001)(15202345003)(97736001)(76176999)(6806004)(33656002)(92566001)(85852003)(92726001)(19300405004)(50986999)(99396002)(54356999)(83072002)(26826002)(74502001)(74662001)(21056001)(19625215002)(83322001)(19580395003)(19580405001)(44976005)(16236675004)(106116001)(106466001)(81156004)(95666004)(85306004)(86612001)(104016003)(19617315012)(107046002)(4396001)(77096002)(81542001)(69596002)(84326002)(55846006)(77982001)(68736004)(15975445006)(84676001)(76482001)(71186001)(86362001)(512954002)(81342001)(79102001)(575784001)(2501001)(579004); DIR:OUT; SFP:; SCL:1; SRVR:CY1PR0301MB0762; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 02951C14DC
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/Gor6wRAczVTQmPj9tHVmvV1E0S4
Cc: Karen O'Donoghue <odonoghue@isoc.org>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Aug 2014 17:54:26 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE07537TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Responses inline...



-----Original Message-----
From: Matt Miller [mailto:mamille2@cisco.com]
Sent: Wednesday, August 06, 2014 7:46 AM
To: Mike Jones; jose@ietf.org
Cc: Karen O'Donoghue
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cook=
book-03



-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA512



Thank you for your feedback, Mike.



More comments inline.



On 8/5/14, 7:21 PM, Mike Jones wrote:

> COMMENTS ON NORMATIVE CONTENT

>

>

>

> 1.  This document contains a wealth of useful JWS and JWE examples

> using a broad selection of algorithms.  My review primary review

> comment is that it should also contain a section with illustrative JWK

> examples. These examples should intentionally illustrate corner cases

> that will actually occur that developers might get wrong.  I would

> suggest adding these JWK examples:

>

>

>

> 1a.  JWK with "kty": "RSA", e=3D65537, and 2048 bit "n".  I would point

> out that neither can legally be prefixed by with extra zero bytes.

> (Examples have been found in the wild in which developers mistakenly

> represent "n" values by encoding an extra leading byte - the extra

> byte being zero - rather than encoding the specified number of bytes -

> the highest-order bit of which is always 1 for a correctly generated

> key. For instance, such mis-representations encode 257 bytes for a

> 2048 bit key, rather than 256 bytes.)

>

>

>

> 1b.  JWK with "kty": "EC", "crv": "P-256", and for which the

> high-order byte of one of "x" or "y" are zero.  I would point out that

> the high-order bytes are required to be represented, even if zero.  I

> would also point out that extra zero bytes are not permitted.

>

>

>

> 1c.  JWK with "kty": "EC", "crv": "P-521", and for which the

> high-order (521^st ) bit of one of "x" or "y" are zero (and because

> only one significant bit is used to represent the 521^st bit in the

> high-order byte, consequently the corresponding high-order byte is

> zero).    I would point out that the high-order bytes are required

> to be represented, even if zero.  I would also point out that extra

> zero bytes are not permitted.

>

>

>

> 1d.  JWK with "kty": "oct" and 128 bit "k" value in which the

> high-order byte is zero.  I would point out that the high-order bytes

> are required to be represented, even if zero.  I would also point out

> that extra zero bytes are not permitted.

>

>

>

> This will also necessitate revising some descriptive text at various

> locations in the specification.  For instance, a new sentence at the

> end of the Abstract should added "This document also illustrates a

> sampling of JSON Web Key (JWK) representations".

>

>



The document includes all of the above, but does not call them out specific=
ally.  I can add a section that copies a representative sample of JWKs from=
 elsewhere in the document.



That would be good - thanks.  I would specifically call out the particulars=
 like the high-order bit of one of the 521-bit values being zero, the high-=
order byte of one of the 256-bit values being zero, no extra leading zeroes=
 being included for RSA "n" values, etc.  Particularly in the base64url enc=
oding, most people won't know that AAAA represents a zero byte.



>

> 2.  Terminology usage throughout the document:  You should replace

> uses of the term "Protected JWS Header" with "JWS Protected Header",

> to match the JWS spec.  Likewise, you should replace "Protected JWE

> Header" with "JWE Protected Header", "Unprotected

> JW* Header" with "JW* Unprotected Header", etc.

>

>

>

> The terms "JWS Header" and "JWE Header" were replaced with the term

> "JOSE Header" in the -29 versions.  You need to apply this change as

> well.

>

>

>

> I'd likewise check other terms to make sure the ones you're using

> match the other JOSE specs.

>

>



I'll make the appropriate changes.  We better be done changing our dictiona=
ry (-:



I sure hope so too! :)



>

> 3.  Section 3.1.2 (Signing Operation):  You show the JOSE header value

> as containing line breaks and whitespace, but the base64url encoded

> version of it does not contain these characters.  You need to say that

> the unencoded form is shown with extra whitespace for readability but

> that, for brevity, the cookbook omits these formatting characters that

> don't change the meaning of the JSON in the base64url encoded

> versions. You should also say that they need not have been omitted, as

> they would have been legal in the base64url encoded JSON object.

>

>

>

> I first noticed this inconsistency in Section 3, but it happens

> everywhere you display a JOSE Header value.  You probably need to say

> something general about this, as well as say something specific about

> it the first time it occurs in an example.



Section 1.1 already contains the following paragraph:



All of the examples in this document have whitespace added to improve forma=
tting and readability. Except for JWE plaintext or JWS payload content, whi=
tespace is not part of the cryptographic operations.

Unless otherwise noted, the JWE plaintext or JWS payload content does inclu=
de " " (U+0020 SPACE) characters; line breaks (U+000A LINE FEED) are added =
to improve readability but are not present in the JWE plaintext or JWS payl=
oad.



Do you have a suggestion for better wording?  Does the working group believ=
e this needs to be repeated in very section?



I realized that the text in 1.1 was there but the problem is that many peop=
le use specs as a reference, rather than reading them cover-to-cover.  They=
'll skip what they consider to be boilerplate and go straight to the meat -=
 the examples.



I don't know that people need to reminded in every example, but at a minimu=
m, I'd remind them in the first example that the encoded JSON omits the whi=
tespace shown in the displayed JSON.  And I'd remind them in the first exam=
ple that the actual Compact Serialization doesn't include the whitespace sh=
own.  You can do this with language like "As described in Section 1.1, ..."=
.



>

>

>

> 4.  Section 3.1.2 (Signing Operation):  You refer to the "combined

> projected JWS header and payload content".  It might be useful to

> readers to elaborate more on the combination.  You could, for

> instance, say that they are "combined ... into the JWS Signing Input

> value, as described in Section 5.1 of [JWS]".  I might do this for at

> least the first signing example.  At the very least, the term "JWS

> Signing Input" describing this intermediate result should probably

> appear somewhere.

>

>



I can add the intermediate examples.



>

> 5.  Section 3.1.3 (Output Results):  You show a result using the JWS

> Compact Serialization but with line breaks in it.  You need to say

> that the line breaks within the output value are for display purposes

> only. For what it's worth, the JWS spec does this by including the

> phrases "(with line breaks for display purposes only)" or "(with line

> breaks within values for display purposes only)", where appropriate,

> in the description of the value.  This situation occurs throughout the

> specification.

>

>



See above regarding Section 1.1.



>

> 6.  Section 3.1.3 (Output Results):  You show a result using the JWS

> JSON Serialization with line breaks within some values.  This would be

> an appropriate place to use the "(with line breaks within values for

> display purposes only)" language.  This situation occurs throughout

> the specification.

>



See above regarding Section 1.1.



>

>

>

>

> EDITORIAL COMMENTS

>

>

>

> E0.  I would suggest taking the HTML output and running it through a

> grammar checker, such as the one in Microsoft Word.  This will catch a

> number of simple phrasing problems, omitted words, and repeated words.

> Some specific editorial comments follow.

>

>



I admittedly turned off my spell checkers once most of the examples were in=
 place due to the rather high signal-to-noise ratio.



I know - it's moderately painful.  It takes me about 20 minutes to do the f=
ull spelling and grammar check of the concatenated JWS, JWE, JWK, JWA, and =
JWT specs when I do a release.  Use the keyboard shortcuts Alt-i for ignore=
 a single instance of a grammar problem and Alt-g to ignore all instances o=
f a word that's legal in the document but not legal English - like "alg", e=
tc.  That will speed things up.



I'd do all your other edits, then do this at least once.  I think you'll be=
 surprised how much you find.  In my experience, the grammar checking is of=
ten even more important than the spelling checking.



>

> E1.  In the Abstract, the first "sentence" is missing a verb, and so

> is actually a fragment.  I'd change it to "This specification contains

> set of examples using JavaScript Object Signing and Encryption (JOSE)

> functionality to protect data".

>

>

>

> E2.  In the Introduction, I would change the document order to JWS,

> JWE, JWK, JWA - as that is the standard order we usually talk about

> them in - in part, because if a developer uses only one of (JWS, JWE,

> and JWK), it tends to be JWS - so it makes sense to start with it.

> JWA is last because it's used by all the others.  JWE follows JWS

> because it makes sense to group encryption with signing.  Which leaves

> JWK in the third spot.

>

>

>

> E3.  In the Introduction, this sentence seems overly negative:

> "The full set of permutations is extremely large, and might be

> daunting to some".  I'd reword it to: "While the full set of

> permutations is large, and might be daunting to some, it is expected

> that most applications will choose a relatively constrained set of

> algorithms and combinations that meet their needs".

>

>

>

> E4.  Introduction: "compile together" -> "compile"

>

>

>

> E5.  Section 1.1:  "enough factors" -> "enough information"

>

>

>

> E6.  Section 1.1:  "or to validate or to validate" -> "or to validate"

>

>

>

> E7.  Section 1.1: "some algorithms inherently use random data and

> cannot be exactly replicated" -> "some algorithms inherently use

> random data and therefore computations employing them cannot be

> exactly replicated"

>

>

>

> E8.  In the Terminology section, use the document order JWS, JWE, JWK,

> JWA.

>

>

>

> E9.  Section 3: "the sequence "\xe2\x80\x99" substituted" -> "the

> sequence "\xe2\x80\x99" is substituted"

>

>

>

> E10.  Section 3: "line breaks (U+000A LINE FEED) replacing some " "

> (U+0020 SPACE)" -> "line breaks (U+000A LINE FEED) replace some

> instances of " " (U+0020 SPACE)"

>

>

>

> E11.  Section 4:  Apply the same editorial corrections to the second

> paragraph as E9 and E10 above.

>

>

>

> E12.  Acknowledgments: "quotes" -> "quotations"

>

>

>

> E13.  Acknowledgments: Uses of ";" should be changed to ",".

>

>

>

>

>

> -----Original Message----- From: jose

> [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue Sent:

> Wednesday, July 23, 2014 7:42 AM To: jose@ietf.org<mailto:jose@ietf.org> =
Subject: [jose]

> Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03

>

>

>

> Folks,

>

>

>

> This message starts a two week working group last call for the jose

> cookbook document "Examples of Protecting Content using JavaScript

> Object Signing and Encryption (JOSE)"

>

> (https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)

>

>

>

> Please review the document and send comments, questions to the Working

> Group mailing list < jose at ietf.org > or the co-chairs <jose-chairs

> at tools.ietf.org > before the end of the WGLC.

>

>

>

> Please note that suggested changes which include proposed text will be

> more strongly considered than those without. Additionally, even if you

> have no comments, statements to the effect that "I have read this

> document and believe it is ready for publication" are helpful.

>

>

>

> Regards,

>

> Karen and Jim

>

>

>

> _______________________________________________

>

> jose mailing list

>

> jose@ietf.org<mailto:jose@ietf.org> <mailto:jose@ietf.org>

>

> https://www.ietf.org/mailman/listinfo/jose

>





- --

- - m&m



Matt Miller < mamille2@cisco.com<mailto:mamille2@cisco.com> >

Cisco Systems, Inc.

-----BEGIN PGP SIGNATURE-----

Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

Comment: GPGTools - https://gpgtools.org

Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/



iQEcBAEBCgAGBQJT4j+SAAoJEDWi+S0W7cO1Iy4H/Rt6W6n4abVcEbyIMrFe/zZP

QkJNe1bFBFFmytTz+Djp+gfEsd3ZhseaS8EiwozOWdrlkvcAUR3lIvOgt4LU4tTf

oVV94W41T5azuXavXNjVSgXR7vLtYkOpt991d5oqqU7VRPnA58EsJbCOaUkmrieA

Fi4MLqYKAq4qIHBZvGqRELFhqYhTG4yT9ueoCwpcsN2iEveEU0kjlF+eyEVFS8dn

7IF4kSy6HYyhWzFVfrQ0996Y/hv/50cpJEnGy4Mhlem41Gv3KhsqCV+EexNVrS46

NO1P0UzM/Hv6uYElAucvx6E249n2tQlFkQ+ZJqWJu1qhfsVGmrfQ0rZTwVZ8CXk=3D

=3DKm7Y

-----END PGP SIGNATURE-----

--_000_4E1F6AAD24975D4BA5B16804296739439AE07537TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">Responses inline...=
<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: Matt Miller [mailto:mamille2@cisco.com] <br>
Sent: Wednesday, August 06, 2014 7:46 AM<br>
To: Mike Jones; jose@ietf.org<br>
Cc: Karen O'Donoghue<br>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cook=
book-03</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----BEGIN PGP SIGNED MESSAGE-----<o:p></o:p></p>
<p class=3D"MsoPlainText">Hash: SHA512<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Thank you for your feedback, Mike.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">More comments inline.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">On 8/5/14, 7:21 PM, Mike Jones wrote:<o:p></o:p><=
/p>
<p class=3D"MsoPlainText">&gt; COMMENTS ON NORMATIVE CONTENT<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1.&nbsp; This document contains a wealth of =
useful JWS and JWE examples
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; using a broad selection of algorithms.&nbsp;=
 My review primary review
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; comment is that it should also contain a sec=
tion with illustrative JWK
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; examples. These examples should intentionall=
y illustrate corner cases
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that will actually occur that developers mig=
ht get wrong.&nbsp; I would
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; suggest adding these JWK examples:<o:p></o:p=
></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1a.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;RSA&#8221;, e=3D65537, and 2048 bit &#8220;n&#8221;.&nbsp; I would point
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; out that neither can legally be prefixed by =
with extra zero bytes.
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (Examples have been found in the wild in whi=
ch developers mistakenly
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; represent &#8220;n&#8221; values by encoding=
 an extra leading byte &#8211; the extra
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; byte being zero &#8211; rather than encoding=
 the specified number of bytes &#8211;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the highest-order bit of which is always 1 f=
or a correctly generated
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; key. For instance, such mis-representations =
encode 257 bytes for a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 2048 bit key, rather than 256 bytes.)<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1b.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;EC&#8221;, &#8220;crv&#8221;: &#8220;P-256&#8221;, and for which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte of one of &#8220;x&#8221; or=
 &#8220;y&#8221; are zero.&nbsp; I would point out that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the high-order bytes are required to be repr=
esented, even if zero.&nbsp; I
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; would also point out that extra zero bytes a=
re not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1c.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;EC&#8221;, &#8220;crv&#8221;: &#8220;P-521&#8221;, and for which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order (521^st ) bit of one of &#8220;x&=
#8221; or &#8220;y&#8221; are zero (and because
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; only one significant bit is used to represen=
t the 521^st bit in the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte, consequently the correspond=
ing high-order byte is<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; zero).&nbsp;&nbsp;&nbsp; I would point out t=
hat the high-order bytes are required<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; to be represented, even if zero.&nbsp; I wou=
ld also point out that extra
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; zero bytes are not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1d.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;oct&#8221; and 128 bit &#8220;k&#8221; value in which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte is zero. &nbsp;I would point=
 out that the high-order bytes
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; are required to be represented, even if zero=
.&nbsp; I would also point out
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that extra zero bytes are not permitted.<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; This will also necessitate revising some des=
criptive text at various
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; locations in the specification.&nbsp; For in=
stance, a new sentence at the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; end of the Abstract should added &#8220;This=
 document also illustrates a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; sampling of JSON Web Key (JWK) representatio=
ns&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The document includes all of the above, but does =
not call them out specifically.&nbsp; I can add a section that copies a rep=
resentative sample of JWKs from elsewhere in the document.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">That would be good =
&#8211; thanks.&nbsp; I would specifically call out the particulars like th=
e high-order bit of one of the 521-bit values being zero, the high-order by=
te of one of the 256-bit values being zero, no
 extra leading zeroes being included for RSA &#8220;n&#8221; values, etc.&n=
bsp; Particularly in the base64url encoding, most people won&#8217;t know t=
hat AAAA represents a zero byte.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 2.&nbsp; Terminology usage throughout the do=
cument:&nbsp; You should replace
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; uses of the term &#8220;Protected JWS Header=
&#8221; with &#8220;JWS Protected Header&#8221;,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; to match the JWS spec.&nbsp; Likewise, you s=
hould replace &#8220;Protected JWE
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Header&#8221; with &#8220;JWE Protected Head=
er&#8221;, &#8220;Unprotected<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JW* Header&#8221; with &#8220;JW* Unprotecte=
d Header&#8221;, etc.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; The terms &#8220;JWS Header&#8221; and &#822=
0;JWE Header&#8221; were replaced with the term
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; &#8220;JOSE Header&#8221; in the -29 version=
s.&nbsp; You need to apply this change as
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; well.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; I&#8217;d likewise check other terms to make=
 sure the ones you&#8217;re using
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; match the other JOSE specs.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I'll make the appropriate changes.&nbsp; We bette=
r be done changing our dictionary (-:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I sure hope so too!=
 </span><span style=3D"font-family:Wingdings;color:#00B050">J</span><span s=
tyle=3D"color:#00B050"><o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 3.&nbsp; Section 3.1.2 (Signing Operation):&=
nbsp; You show the JOSE header value
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; as containing line breaks and whitespace, bu=
t the base64url encoded
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; version of it does not contain these charact=
ers.&nbsp; You need to say that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the unencoded form is shown with extra white=
space for readability but
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that, for brevity, the cookbook omits these =
formatting characters that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; don&#8217;t change the meaning of the JSON i=
n the base64url encoded
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; versions. You should also say that they need=
 not have been omitted, as
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; they would have been legal in the base64url =
encoded JSON object.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; I first noticed this inconsistency in Sectio=
n 3, but it happens
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; everywhere you display a JOSE Header value.&=
nbsp; You probably need to say
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; something general about this, as well as say=
 something specific about
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; it the first time it occurs in an example.<o=
:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Section 1.1 already contains the following paragr=
aph:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">All of the examples in this document have whitesp=
ace added to improve formatting and readability. Except for JWE plaintext o=
r JWS payload content, whitespace is not part of the cryptographic operatio=
ns.<o:p></o:p></p>
<p class=3D"MsoPlainText">Unless otherwise noted, the JWE plaintext or JWS =
payload content does include &#8220; &#8220; (U&#43;0020 SPACE) characters;=
 line breaks (U&#43;000A LINE FEED) are added to improve readability but ar=
e not present in the JWE plaintext or JWS payload.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Do you have a suggestion for better wording?&nbsp=
; Does the working group believe this needs to be repeated in very section?=
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I realized that the=
 text in 1.1 was there but the problem is that many people use specs as a r=
eference, rather than reading them cover-to-cover.&nbsp; They&#8217;ll skip=
 what they consider to be boilerplate and go straight
 to the meat &#8211; the examples.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I don&#8217;t know =
that people need to reminded in every example, but at a minimum, I&#8217;d =
remind them in the first example that the encoded JSON omits the whitespace=
 shown in the displayed JSON.&nbsp; And I&#8217;d remind them
 in the first example that the actual Compact Serialization doesn&#8217;t i=
nclude the whitespace shown.&nbsp; You can do this with language like &#822=
0;As described in Section 1.1, &#8230;&#8221;.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 4.&nbsp; Section 3.1.2 (Signing Operation):&=
nbsp; You refer to the &#8220;combined
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; projected JWS header and payload content&#82=
21;.&nbsp; It might be useful to
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; readers to elaborate more on the combination=
.&nbsp; You could, for
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; instance, say that they are &#8220;combined =
&#8230; into the JWS Signing Input
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; value, as described in Section 5.1 of [JWS]&=
#8221;.&nbsp; I might do this for at
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; least the first signing example.&nbsp; At th=
e very least, the term &#8220;JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Signing Input&#8221; describing this interme=
diate result should probably
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; appear somewhere.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I can add the intermediate examples.<o:p></o:p></=
p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 5.&nbsp; Section 3.1.3 (Output Results):&nbs=
p; You show a result using the JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Compact Serialization but with line breaks i=
n it.&nbsp; You need to say
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that the line breaks within the output value=
 are for display purposes
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; only. For what it&#8217;s worth, the JWS spe=
c does this by including the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; phrases &#8220;(with line breaks for display=
 purposes only)&#8221; or &#8220;(with line
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; breaks within values for display purposes on=
ly)&#8221;, where appropriate,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; in the description of the value.&nbsp; This =
situation occurs throughout the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; specification.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">See above regarding Section 1.1.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 6.&nbsp; Section 3.1.3 (Output Results):&nbs=
p; You show a result using the JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JSON Serialization with line breaks within s=
ome values.&nbsp; This would be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; an appropriate place to use the &#8220;(with=
 line breaks within values for
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; display purposes only)&#8221; language.&nbsp=
; This situation occurs throughout
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the specification.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">See above regarding Section 1.1.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; EDITORIAL COMMENTS<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E0.&nbsp; I would suggest taking the HTML ou=
tput and running it through a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; grammar checker, such as the one in Microsof=
t Word.&nbsp; This will catch a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; number of simple phrasing problems, omitted =
words, and repeated words.
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Some specific editorial comments follow.<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I admittedly turned off my spell checkers once mo=
st of the examples were in place due to the rather high signal-to-noise rat=
io.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I know &#8211; it&#=
8217;s moderately painful.&nbsp; It takes me about 20 minutes to do the ful=
l spelling and grammar check of the concatenated JWS, JWE, JWK, JWA, and JW=
T specs when I do a release.&nbsp; Use the keyboard shortcuts
 Alt-i for ignore a single instance of a grammar problem and Alt-g to ignor=
e all instances of a word that&#8217;s legal in the document but not legal =
English &#8211; like &#8220;alg&#8221;, etc.&nbsp; That will speed things u=
p.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I&#8217;d do all yo=
ur other edits, then do this at least once.&nbsp; I think you&#8217;ll be s=
urprised how much you find.&nbsp; In my experience, the grammar checking is=
 often even more important than the spelling checking.<o:p></o:p></span></p=
>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E1.&nbsp; In the Abstract, the first &#8220;=
sentence&#8221; is missing a verb, and so
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; is actually a fragment.&nbsp; I&#8217;d chan=
ge it to &#8220;This specification contains
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; set of examples using JavaScript Object Sign=
ing and Encryption (JOSE)
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; functionality to protect data&#8221;.<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E2.&nbsp; In the Introduction, I would chang=
e the document order to JWS,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWE, JWK, JWA &#8211; as that is the standar=
d order we usually talk about
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; them in &#8211; in part, because if a develo=
per uses only one of (JWS, JWE,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; and JWK), it tends to be JWS &#8211; so it m=
akes sense to start with it.&nbsp;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWA is last because it&#8217;s used by all t=
he others.&nbsp; JWE follows JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; because it makes sense to group encryption w=
ith signing.&nbsp; Which leaves
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWK in the third spot.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E3.&nbsp; In the Introduction, this sentence=
 seems overly negative:<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; &#8220;The full set of permutations is extre=
mely large, and might be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; daunting to some&#8221;.&nbsp; I&#8217;d rew=
ord it to: &#8220;While the full set of
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; permutations is large, and might be daunting=
 to some, it is expected
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that most applications will choose a relativ=
ely constrained set of
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; algorithms and combinations that meet their =
needs&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E4.&nbsp; Introduction: &#8220;compile toget=
her&#8221; -&gt; &#8220;compile&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E5.&nbsp; Section 1.1:&nbsp; &#8220;enough f=
actors&#8221; -&gt; &#8220;enough information&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E6.&nbsp; Section 1.1:&nbsp; &#8220;or to va=
lidate or to validate&#8221; -&gt; &#8220;or to validate&#8221;<o:p></o:p><=
/p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E7.&nbsp; Section 1.1: &#8220;some algorithm=
s inherently use random data and
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; cannot be exactly replicated&#8221; -&gt; &#=
8220;some algorithms inherently use
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; random data and therefore computations emplo=
ying them cannot be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; exactly replicated&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E8.&nbsp; In the Terminology section, use th=
e document order JWS, JWE, JWK,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWA.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E9.&nbsp; Section 3: &#8220;the sequence &#8=
220;\xe2\x80\x99&#8221; substituted&#8221; -&gt; &#8220;the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; sequence &#8220;\xe2\x80\x99&#8221; is subst=
ituted&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E10.&nbsp; Section 3: &#8220;line breaks (U&=
#43;000A LINE FEED) replacing some &#8220; &#8220;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (U&#43;0020 SPACE)&#8221; -&gt; &#8220;line =
breaks (U&#43;000A LINE FEED) replace some
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; instances of &#8220; &#8220; (U&#43;0020 SPA=
CE)&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E11.&nbsp; Section 4:&nbsp; Apply the same e=
ditorial corrections to the second
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; paragraph as E9 and E10 above.<o:p></o:p></p=
>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E12.&nbsp; Acknowledgments: &#8220;quotes&#8=
221; -&gt; &#8220;quotations&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E13.&nbsp; Acknowledgments: Uses of &#8220;;=
&#8221; should be changed to &#8220;,&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; -----Original Message----- From: jose<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; [<a href=3D"mailto:jose-bounces@ietf.org"><s=
pan style=3D"color:windowtext;text-decoration:none">mailto:jose-bounces@iet=
f.org</span></a>] On Behalf Of Karen ODonoghue Sent:<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Wednesday, July 23, 2014 7:42 AM To: <a href=
=3D"mailto:jose@ietf.org">
<span style=3D"color:windowtext;text-decoration:none">jose@ietf.org</span><=
/a> Subject: [jose]
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Working Group Last Call (WGLC) for draft-iet=
f-jose-cookbook-03<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Folks,<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; This message starts a two week working group=
 last call for the jose
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; cookbook document &quot;Examples of Protecti=
ng Content using JavaScript
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Object Signing and Encryption (JOSE)&quot;<o=
:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (<a href=3D"https://tools.ietf.org/html/draf=
t-ietf-jose-cookbook-03"><span style=3D"color:windowtext;text-decoration:no=
ne">https://tools.ietf.org/html/draft-ietf-jose-cookbook-03</span></a>)<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Please review the document and send comments=
, questions to the Working
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Group mailing list &lt; jose at ietf.org &gt=
; or the co-chairs &lt;jose-chairs
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; at tools.ietf.org &gt; before the end of the=
 WGLC.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Please note that suggested changes which inc=
lude proposed text will be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; more strongly considered than those without.=
 Additionally, even if you
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; have no comments, statements to the effect t=
hat &quot;I have read this
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; document and believe it is ready for publica=
tion&quot; are helpful.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Regards,<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Karen and Jim<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; ____________________________________________=
___<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; jose mailing list<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <a href=3D"mailto:jose@ietf.org"><span style=
=3D"color:windowtext;text-decoration:none">jose@ietf.org</span></a> &lt;<a =
href=3D"mailto:jose@ietf.org"><span style=3D"color:windowtext;text-decorati=
on:none">mailto:jose@ietf.org</span></a>&gt;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <a href=3D"https://www.ietf.org/mailman/list=
info/jose"><span style=3D"color:windowtext;text-decoration:none">https://ww=
w.ietf.org/mailman/listinfo/jose</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- --<o:p></o:p></p>
<p class=3D"MsoPlainText">- - m&amp;m<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Matt Miller &lt; <a href=3D"mailto:mamille2@cisco=
.com"><span style=3D"color:windowtext;text-decoration:none">mamille2@cisco.=
com</span></a> &gt;<o:p></o:p></p>
<p class=3D"MsoPlainText">Cisco Systems, Inc.<o:p></o:p></p>
<p class=3D"MsoPlainText">-----BEGIN PGP SIGNATURE-----<o:p></o:p></p>
<p class=3D"MsoPlainText">Version: GnuPG/MacGPG2 v2.0.22 (Darwin)<o:p></o:p=
></p>
<p class=3D"MsoPlainText">Comment: GPGTools - <a href=3D"https://gpgtools.o=
rg"><span style=3D"color:windowtext;text-decoration:none">https://gpgtools.=
org</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText">Comment: Using GnuPG with Thunderbird - <a href=
=3D"http://www.enigmail.net/">
<span style=3D"color:windowtext;text-decoration:none">http://www.enigmail.n=
et/</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">iQEcBAEBCgAGBQJT4j&#43;SAAoJEDWi&#43;S0W7cO1Iy4H/=
Rt6W6n4abVcEbyIMrFe/zZP<o:p></o:p></p>
<p class=3D"MsoPlainText">QkJNe1bFBFFmytTz&#43;Djp&#43;gfEsd3ZhseaS8EiwozOW=
drlkvcAUR3lIvOgt4LU4tTf<o:p></o:p></p>
<p class=3D"MsoPlainText">oVV94W41T5azuXavXNjVSgXR7vLtYkOpt991d5oqqU7VRPnA5=
8EsJbCOaUkmrieA<o:p></o:p></p>
<p class=3D"MsoPlainText">Fi4MLqYKAq4qIHBZvGqRELFhqYhTG4yT9ueoCwpcsN2iEveEU=
0kjlF&#43;eyEVFS8dn<o:p></o:p></p>
<p class=3D"MsoPlainText">7IF4kSy6HYyhWzFVfrQ0996Y/hv/50cpJEnGy4Mhlem41Gv3K=
hsqCV&#43;EexNVrS46<o:p></o:p></p>
<p class=3D"MsoPlainText">NO1P0UzM/Hv6uYElAucvx6E249n2tQlFkQ&#43;ZJqWJu1qhf=
sVGmrfQ0rZTwVZ8CXk=3D<o:p></o:p></p>
<p class=3D"MsoPlainText">=3DKm7Y<o:p></o:p></p>
<p class=3D"MsoPlainText">-----END PGP SIGNATURE-----<o:p></o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE07537TK5EX14MBXC293r_--


From nobody Wed Aug  6 11:10:37 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 364051ABB1D for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 11:10:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.595
X-Spam-Level: 
X-Spam-Status: No, score=-0.595 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TRACKER_ID=1.306] 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 sp3USIh0GOdu for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 11:10:25 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0188.outbound.protection.outlook.com [207.46.163.188]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2EF6A1A0495 for <jose@ietf.org>; Wed,  6 Aug 2014 11:10:25 -0700 (PDT)
Received: from BN3PR0301CA0035.namprd03.prod.outlook.com (25.160.180.173) by BN1PR03MB188.namprd03.prod.outlook.com (10.255.200.151) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 18:10:21 +0000
Received: from BL2FFO11FD058.protection.gbl (2a01:111:f400:7c09::118) by BN3PR0301CA0035.outlook.office365.com (2a01:111:e400:4000::45) with Microsoft SMTP Server (TLS) id 15.0.1005.10 via Frontend Transport; Wed, 6 Aug 2014 18:10:21 +0000
Received: from mail.microsoft.com (131.107.125.37) by BL2FFO11FD058.mail.protection.outlook.com (10.173.161.186) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Wed, 6 Aug 2014 18:10:21 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC104.redmond.corp.microsoft.com ([157.54.80.25]) with mapi id 14.03.0195.002; Wed, 6 Aug 2014 18:09:39 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Matt Miller <mamille2@cisco.com>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
Thread-Index: AQHPsYUY9zRm5DEi1UqeRHDT4ZIM8ZvD1vRggAAIp6A=
Date: Wed, 6 Aug 2014 18:09:38 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE07633@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <53CFC9A4.3000500@isoc.org> <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com> <53E23F93.1060901@cisco.com> <4E1F6AAD24975D4BA5B16804296739439AE07537@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE07537@TK5EX14MBXC293.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.32]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE07633TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(54524002)(377454003)(479174003)(13464003)(24454002)(199002)(189002)(51704005)(107046002)(6806004)(15202345003)(4396001)(95666004)(77982001)(19617315012)(44976005)(77096002)(97736001)(104016003)(106466001)(81156004)(106116001)(86612001)(74502001)(19625215002)(512954002)(26826002)(76482001)(99396002)(74662001)(55846006)(54356999)(19300405004)(46102001)(76176999)(50986999)(33656002)(21056001)(31966008)(575784001)(86362001)(19580395003)(19580405001)(83322001)(83072002)(85852003)(2656002)(81342001)(68736004)(81542001)(64706001)(20776003)(71186001)(79102001)(93886004)(66066001)(85306004)(80022001)(69596002)(92566001)(87936001)(84326002)(16236675004)(92726001)(84676001)(15975445006)(2501001)(579004); DIR:OUT; SFP:; SCL:1; SRVR:BN1PR03MB188; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 02951C14DC
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/hgn1zKFhCBwhZsvqENBFTZ5MahY
Cc: Karen O'Donoghue <odonoghue@isoc.org>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Aug 2014 18:10:34 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE07633TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Minor correction to what I wrote below...  I wrote "most people won't know =
that AAAA represents a zero byte".  That's actually three zero bytes.  What=
 I should have written was "most people won't know that AA through AP all r=
epresent a leading zero byte".

From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Mike Jones
Sent: Wednesday, August 06, 2014 10:54 AM
To: Matt Miller; jose@ietf.org
Cc: Karen O'Donoghue
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cook=
book-03


Responses inline...



-----Original Message-----
From: Matt Miller [mailto:mamille2@cisco.com]
Sent: Wednesday, August 06, 2014 7:46 AM
To: Mike Jones; jose@ietf.org<mailto:jose@ietf.org>
Cc: Karen O'Donoghue
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cook=
book-03



-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA512



Thank you for your feedback, Mike.



More comments inline.



On 8/5/14, 7:21 PM, Mike Jones wrote:

> COMMENTS ON NORMATIVE CONTENT

>

>

>

> 1.  This document contains a wealth of useful JWS and JWE examples

> using a broad selection of algorithms.  My review primary review

> comment is that it should also contain a section with illustrative JWK

> examples. These examples should intentionally illustrate corner cases

> that will actually occur that developers might get wrong.  I would

> suggest adding these JWK examples:

>

>

>

> 1a.  JWK with "kty": "RSA", e=3D65537, and 2048 bit "n".  I would point

> out that neither can legally be prefixed by with extra zero bytes.

> (Examples have been found in the wild in which developers mistakenly

> represent "n" values by encoding an extra leading byte - the extra

> byte being zero - rather than encoding the specified number of bytes -

> the highest-order bit of which is always 1 for a correctly generated

> key. For instance, such mis-representations encode 257 bytes for a

> 2048 bit key, rather than 256 bytes.)

>

>

>

> 1b.  JWK with "kty": "EC", "crv": "P-256", and for which the

> high-order byte of one of "x" or "y" are zero.  I would point out that

> the high-order bytes are required to be represented, even if zero.  I

> would also point out that extra zero bytes are not permitted.

>

>

>

> 1c.  JWK with "kty": "EC", "crv": "P-521", and for which the

> high-order (521^st ) bit of one of "x" or "y" are zero (and because

> only one significant bit is used to represent the 521^st bit in the

> high-order byte, consequently the corresponding high-order byte is

> zero).    I would point out that the high-order bytes are required

> to be represented, even if zero.  I would also point out that extra

> zero bytes are not permitted.

>

>

>

> 1d.  JWK with "kty": "oct" and 128 bit "k" value in which the

> high-order byte is zero.  I would point out that the high-order bytes

> are required to be represented, even if zero.  I would also point out

> that extra zero bytes are not permitted.

>

>

>

> This will also necessitate revising some descriptive text at various

> locations in the specification.  For instance, a new sentence at the

> end of the Abstract should added "This document also illustrates a

> sampling of JSON Web Key (JWK) representations".

>

>



The document includes all of the above, but does not call them out specific=
ally.  I can add a section that copies a representative sample of JWKs from=
 elsewhere in the document.



That would be good - thanks.  I would specifically call out the particulars=
 like the high-order bit of one of the 521-bit values being zero, the high-=
order byte of one of the 256-bit values being zero, no extra leading zeroes=
 being included for RSA "n" values, etc.  Particularly in the base64url enc=
oding, most people won't know that AAAA represents a zero byte.



>

> 2.  Terminology usage throughout the document:  You should replace

> uses of the term "Protected JWS Header" with "JWS Protected Header",

> to match the JWS spec.  Likewise, you should replace "Protected JWE

> Header" with "JWE Protected Header", "Unprotected

> JW* Header" with "JW* Unprotected Header", etc.

>

>

>

> The terms "JWS Header" and "JWE Header" were replaced with the term

> "JOSE Header" in the -29 versions.  You need to apply this change as

> well.

>

>

>

> I'd likewise check other terms to make sure the ones you're using

> match the other JOSE specs.

>

>



I'll make the appropriate changes.  We better be done changing our dictiona=
ry (-:



I sure hope so too! :)



>

> 3.  Section 3.1.2 (Signing Operation):  You show the JOSE header value

> as containing line breaks and whitespace, but the base64url encoded

> version of it does not contain these characters.  You need to say that

> the unencoded form is shown with extra whitespace for readability but

> that, for brevity, the cookbook omits these formatting characters that

> don't change the meaning of the JSON in the base64url encoded

> versions. You should also say that they need not have been omitted, as

> they would have been legal in the base64url encoded JSON object.

>

>

>

> I first noticed this inconsistency in Section 3, but it happens

> everywhere you display a JOSE Header value.  You probably need to say

> something general about this, as well as say something specific about

> it the first time it occurs in an example.



Section 1.1 already contains the following paragraph:



All of the examples in this document have whitespace added to improve forma=
tting and readability. Except for JWE plaintext or JWS payload content, whi=
tespace is not part of the cryptographic operations.

Unless otherwise noted, the JWE plaintext or JWS payload content does inclu=
de " " (U+0020 SPACE) characters; line breaks (U+000A LINE FEED) are added =
to improve readability but are not present in the JWE plaintext or JWS payl=
oad.



Do you have a suggestion for better wording?  Does the working group believ=
e this needs to be repeated in very section?



I realized that the text in 1.1 was there but the problem is that many peop=
le use specs as a reference, rather than reading them cover-to-cover.  They=
'll skip what they consider to be boilerplate and go straight to the meat -=
 the examples.



I don't know that people need to reminded in every example, but at a minimu=
m, I'd remind them in the first example that the encoded JSON omits the whi=
tespace shown in the displayed JSON.  And I'd remind them in the first exam=
ple that the actual Compact Serialization doesn't include the whitespace sh=
own.  You can do this with language like "As described in Section 1.1, ..."=
.



>

>

>

> 4.  Section 3.1.2 (Signing Operation):  You refer to the "combined

> projected JWS header and payload content".  It might be useful to

> readers to elaborate more on the combination.  You could, for

> instance, say that they are "combined ... into the JWS Signing Input

> value, as described in Section 5.1 of [JWS]".  I might do this for at

> least the first signing example.  At the very least, the term "JWS

> Signing Input" describing this intermediate result should probably

> appear somewhere.

>

>



I can add the intermediate examples.



>

> 5.  Section 3.1.3 (Output Results):  You show a result using the JWS

> Compact Serialization but with line breaks in it.  You need to say

> that the line breaks within the output value are for display purposes

> only. For what it's worth, the JWS spec does this by including the

> phrases "(with line breaks for display purposes only)" or "(with line

> breaks within values for display purposes only)", where appropriate,

> in the description of the value.  This situation occurs throughout the

> specification.

>

>



See above regarding Section 1.1.



>

> 6.  Section 3.1.3 (Output Results):  You show a result using the JWS

> JSON Serialization with line breaks within some values.  This would be

> an appropriate place to use the "(with line breaks within values for

> display purposes only)" language.  This situation occurs throughout

> the specification.

>



See above regarding Section 1.1.



>

>

>

>

> EDITORIAL COMMENTS

>

>

>

> E0.  I would suggest taking the HTML output and running it through a

> grammar checker, such as the one in Microsoft Word.  This will catch a

> number of simple phrasing problems, omitted words, and repeated words.

> Some specific editorial comments follow.

>

>



I admittedly turned off my spell checkers once most of the examples were in=
 place due to the rather high signal-to-noise ratio.



I know - it's moderately painful.  It takes me about 20 minutes to do the f=
ull spelling and grammar check of the concatenated JWS, JWE, JWK, JWA, and =
JWT specs when I do a release.  Use the keyboard shortcuts Alt-i for ignore=
 a single instance of a grammar problem and Alt-g to ignore all instances o=
f a word that's legal in the document but not legal English - like "alg", e=
tc.  That will speed things up.



I'd do all your other edits, then do this at least once.  I think you'll be=
 surprised how much you find.  In my experience, the grammar checking is of=
ten even more important than the spelling checking.



>

> E1.  In the Abstract, the first "sentence" is missing a verb, and so

> is actually a fragment.  I'd change it to "This specification contains

> set of examples using JavaScript Object Signing and Encryption (JOSE)

> functionality to protect data".

>

>

>

> E2.  In the Introduction, I would change the document order to JWS,

> JWE, JWK, JWA - as that is the standard order we usually talk about

> them in - in part, because if a developer uses only one of (JWS, JWE,

> and JWK), it tends to be JWS - so it makes sense to start with it.

> JWA is last because it's used by all the others.  JWE follows JWS

> because it makes sense to group encryption with signing.  Which leaves

> JWK in the third spot.

>

>

>

> E3.  In the Introduction, this sentence seems overly negative:

> "The full set of permutations is extremely large, and might be

> daunting to some".  I'd reword it to: "While the full set of

> permutations is large, and might be daunting to some, it is expected

> that most applications will choose a relatively constrained set of

> algorithms and combinations that meet their needs".

>

>

>

> E4.  Introduction: "compile together" -> "compile"

>

>

>

> E5.  Section 1.1:  "enough factors" -> "enough information"

>

>

>

> E6.  Section 1.1:  "or to validate or to validate" -> "or to validate"

>

>

>

> E7.  Section 1.1: "some algorithms inherently use random data and

> cannot be exactly replicated" -> "some algorithms inherently use

> random data and therefore computations employing them cannot be

> exactly replicated"

>

>

>

> E8.  In the Terminology section, use the document order JWS, JWE, JWK,

> JWA.

>

>

>

> E9.  Section 3: "the sequence "\xe2\x80\x99" substituted" -> "the

> sequence "\xe2\x80\x99" is substituted"

>

>

>

> E10.  Section 3: "line breaks (U+000A LINE FEED) replacing some " "

> (U+0020 SPACE)" -> "line breaks (U+000A LINE FEED) replace some

> instances of " " (U+0020 SPACE)"

>

>

>

> E11.  Section 4:  Apply the same editorial corrections to the second

> paragraph as E9 and E10 above.

>

>

>

> E12.  Acknowledgments: "quotes" -> "quotations"

>

>

>

> E13.  Acknowledgments: Uses of ";" should be changed to ",".

>

>

>

>

>

> -----Original Message----- From: jose

> [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue Sent:

> Wednesday, July 23, 2014 7:42 AM To: jose@ietf.org<mailto:jose@ietf.org> =
Subject: [jose]

> Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03

>

>

>

> Folks,

>

>

>

> This message starts a two week working group last call for the jose

> cookbook document "Examples of Protecting Content using JavaScript

> Object Signing and Encryption (JOSE)"

>

> (https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)

>

>

>

> Please review the document and send comments, questions to the Working

> Group mailing list < jose at ietf.org > or the co-chairs <jose-chairs

> at tools.ietf.org > before the end of the WGLC.

>

>

>

> Please note that suggested changes which include proposed text will be

> more strongly considered than those without. Additionally, even if you

> have no comments, statements to the effect that "I have read this

> document and believe it is ready for publication" are helpful.

>

>

>

> Regards,

>

> Karen and Jim

>

>

>

> _______________________________________________

>

> jose mailing list

>

> jose@ietf.org<mailto:jose@ietf.org> <mailto:jose@ietf.org>

>

> https://www.ietf.org/mailman/listinfo/jose

>





- --

- - m&m



Matt Miller < mamille2@cisco.com<mailto:mamille2@cisco.com> >

Cisco Systems, Inc.

-----BEGIN PGP SIGNATURE-----

Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

Comment: GPGTools - https://gpgtools.org

Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/



iQEcBAEBCgAGBQJT4j+SAAoJEDWi+S0W7cO1Iy4H/Rt6W6n4abVcEbyIMrFe/zZP

QkJNe1bFBFFmytTz+Djp+gfEsd3ZhseaS8EiwozOWdrlkvcAUR3lIvOgt4LU4tTf

oVV94W41T5azuXavXNjVSgXR7vLtYkOpt991d5oqqU7VRPnA58EsJbCOaUkmrieA

Fi4MLqYKAq4qIHBZvGqRELFhqYhTG4yT9ueoCwpcsN2iEveEU0kjlF+eyEVFS8dn

7IF4kSy6HYyhWzFVfrQ0996Y/hv/50cpJEnGy4Mhlem41Gv3KhsqCV+EexNVrS46

NO1P0UzM/Hv6uYElAucvx6E249n2tQlFkQ+ZJqWJu1qhfsVGmrfQ0rZTwVZ8CXk=3D

=3DKm7Y

-----END PGP SIGNATURE-----

--_000_4E1F6AAD24975D4BA5B16804296739439AE07633TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#1F497D">Minor correction to wh=
at I wrote below&#8230;&nbsp; I wrote &#8220;</span><span style=3D"color:#0=
0B050">most people won&#8217;t know that AAAA represents a zero byte</span>=
<span style=3D"color:#1F497D">&#8221;.&nbsp; That&#8217;s actually three ze=
ro bytes.&nbsp;
 What I should have written was &#8220;most people won&#8217;t know that AA=
 through AP all represent a leading zero byte&#8221;.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> jose [ma=
ilto:jose-bounces@ietf.org]
<b>On Behalf Of </b>Mike Jones<br>
<b>Sent:</b> Wednesday, August 06, 2014 10:54 AM<br>
<b>To:</b> Matt Miller; jose@ietf.org<br>
<b>Cc:</b> Karen O'Donoghue<br>
<b>Subject:</b> Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jo=
se-cookbook-03<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">Responses inline...=
<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: Matt Miller [<a href=3D"mailto:mamille2@cisco.com">mailto:mamille2@ci=
sco.com</a>]
<br>
Sent: Wednesday, August 06, 2014 7:46 AM<br>
To: Mike Jones; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
Cc: Karen O'Donoghue<br>
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cook=
book-03<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----BEGIN PGP SIGNED MESSAGE-----<o:p></o:p></p>
<p class=3D"MsoPlainText">Hash: SHA512<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Thank you for your feedback, Mike.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">More comments inline.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">On 8/5/14, 7:21 PM, Mike Jones wrote:<o:p></o:p><=
/p>
<p class=3D"MsoPlainText">&gt; COMMENTS ON NORMATIVE CONTENT<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1.&nbsp; This document contains a wealth of =
useful JWS and JWE examples
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; using a broad selection of algorithms.&nbsp;=
 My review primary review
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; comment is that it should also contain a sec=
tion with illustrative JWK
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; examples. These examples should intentionall=
y illustrate corner cases
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that will actually occur that developers mig=
ht get wrong.&nbsp; I would
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; suggest adding these JWK examples:<o:p></o:p=
></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1a.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;RSA&#8221;, e=3D65537, and 2048 bit &#8220;n&#8221;.&nbsp; I would point
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; out that neither can legally be prefixed by =
with extra zero bytes.
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (Examples have been found in the wild in whi=
ch developers mistakenly
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; represent &#8220;n&#8221; values by encoding=
 an extra leading byte &#8211; the extra
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; byte being zero &#8211; rather than encoding=
 the specified number of bytes &#8211;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the highest-order bit of which is always 1 f=
or a correctly generated
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; key. For instance, such mis-representations =
encode 257 bytes for a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 2048 bit key, rather than 256 bytes.)<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1b.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;EC&#8221;, &#8220;crv&#8221;: &#8220;P-256&#8221;, and for which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte of one of &#8220;x&#8221; or=
 &#8220;y&#8221; are zero.&nbsp; I would point out that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the high-order bytes are required to be repr=
esented, even if zero.&nbsp; I
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; would also point out that extra zero bytes a=
re not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1c.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;EC&#8221;, &#8220;crv&#8221;: &#8220;P-521&#8221;, and for which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order (521^st ) bit of one of &#8220;x&=
#8221; or &#8220;y&#8221; are zero (and because
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; only one significant bit is used to represen=
t the 521^st bit in the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte, consequently the correspond=
ing high-order byte is<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; zero).&nbsp;&nbsp;&nbsp; I would point out t=
hat the high-order bytes are required<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; to be represented, even if zero.&nbsp; I wou=
ld also point out that extra
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; zero bytes are not permitted.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 1d.&nbsp; JWK with &#8220;kty&#8221;: &#8220=
;oct&#8221; and 128 bit &#8220;k&#8221; value in which the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; high-order byte is zero. &nbsp;I would point=
 out that the high-order bytes
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; are required to be represented, even if zero=
.&nbsp; I would also point out
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that extra zero bytes are not permitted.<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; This will also necessitate revising some des=
criptive text at various
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; locations in the specification.&nbsp; For in=
stance, a new sentence at the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; end of the Abstract should added &#8220;This=
 document also illustrates a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; sampling of JSON Web Key (JWK) representatio=
ns&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">The document includes all of the above, but does =
not call them out specifically.&nbsp; I can add a section that copies a rep=
resentative sample of JWKs from elsewhere in the document.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">That would be good =
&#8211; thanks.&nbsp; I would specifically call out the particulars like th=
e high-order bit of one of the 521-bit values being zero, the high-order by=
te of one of the 256-bit values being zero, no
 extra leading zeroes being included for RSA &#8220;n&#8221; values, etc.&n=
bsp; Particularly in the base64url encoding, most people won&#8217;t know t=
hat AAAA represents a zero byte.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 2.&nbsp; Terminology usage throughout the do=
cument:&nbsp; You should replace
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; uses of the term &#8220;Protected JWS Header=
&#8221; with &#8220;JWS Protected Header&#8221;,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; to match the JWS spec.&nbsp; Likewise, you s=
hould replace &#8220;Protected JWE
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Header&#8221; with &#8220;JWE Protected Head=
er&#8221;, &#8220;Unprotected<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JW* Header&#8221; with &#8220;JW* Unprotecte=
d Header&#8221;, etc.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; The terms &#8220;JWS Header&#8221; and &#822=
0;JWE Header&#8221; were replaced with the term
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; &#8220;JOSE Header&#8221; in the -29 version=
s.&nbsp; You need to apply this change as
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; well.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; I&#8217;d likewise check other terms to make=
 sure the ones you&#8217;re using
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; match the other JOSE specs.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I'll make the appropriate changes.&nbsp; We bette=
r be done changing our dictionary (-:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I sure hope so too!=
 </span><span style=3D"font-family:Wingdings;color:#00B050">J</span><span s=
tyle=3D"color:#00B050"><o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 3.&nbsp; Section 3.1.2 (Signing Operation):&=
nbsp; You show the JOSE header value
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; as containing line breaks and whitespace, bu=
t the base64url encoded
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; version of it does not contain these charact=
ers.&nbsp; You need to say that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the unencoded form is shown with extra white=
space for readability but
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that, for brevity, the cookbook omits these =
formatting characters that
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; don&#8217;t change the meaning of the JSON i=
n the base64url encoded
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; versions. You should also say that they need=
 not have been omitted, as
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; they would have been legal in the base64url =
encoded JSON object.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; I first noticed this inconsistency in Sectio=
n 3, but it happens
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; everywhere you display a JOSE Header value.&=
nbsp; You probably need to say
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; something general about this, as well as say=
 something specific about
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; it the first time it occurs in an example.<o=
:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Section 1.1 already contains the following paragr=
aph:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">All of the examples in this document have whitesp=
ace added to improve formatting and readability. Except for JWE plaintext o=
r JWS payload content, whitespace is not part of the cryptographic operatio=
ns.<o:p></o:p></p>
<p class=3D"MsoPlainText">Unless otherwise noted, the JWE plaintext or JWS =
payload content does include &#8220; &#8220; (U&#43;0020 SPACE) characters;=
 line breaks (U&#43;000A LINE FEED) are added to improve readability but ar=
e not present in the JWE plaintext or JWS payload.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Do you have a suggestion for better wording?&nbsp=
; Does the working group believe this needs to be repeated in very section?=
<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I realized that the=
 text in 1.1 was there but the problem is that many people use specs as a r=
eference, rather than reading them cover-to-cover.&nbsp; They&#8217;ll skip=
 what they consider to be boilerplate and go straight
 to the meat &#8211; the examples.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I don&#8217;t know =
that people need to reminded in every example, but at a minimum, I&#8217;d =
remind them in the first example that the encoded JSON omits the whitespace=
 shown in the displayed JSON.&nbsp; And I&#8217;d remind them
 in the first example that the actual Compact Serialization doesn&#8217;t i=
nclude the whitespace shown.&nbsp; You can do this with language like &#822=
0;As described in Section 1.1, &#8230;&#8221;.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 4.&nbsp; Section 3.1.2 (Signing Operation):&=
nbsp; You refer to the &#8220;combined
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; projected JWS header and payload content&#82=
21;.&nbsp; It might be useful to
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; readers to elaborate more on the combination=
.&nbsp; You could, for
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; instance, say that they are &#8220;combined =
&#8230; into the JWS Signing Input
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; value, as described in Section 5.1 of [JWS]&=
#8221;.&nbsp; I might do this for at
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; least the first signing example.&nbsp; At th=
e very least, the term &#8220;JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Signing Input&#8221; describing this interme=
diate result should probably
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; appear somewhere.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I can add the intermediate examples.<o:p></o:p></=
p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 5.&nbsp; Section 3.1.3 (Output Results):&nbs=
p; You show a result using the JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Compact Serialization but with line breaks i=
n it.&nbsp; You need to say
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that the line breaks within the output value=
 are for display purposes
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; only. For what it&#8217;s worth, the JWS spe=
c does this by including the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; phrases &#8220;(with line breaks for display=
 purposes only)&#8221; or &#8220;(with line
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; breaks within values for display purposes on=
ly)&#8221;, where appropriate,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; in the description of the value.&nbsp; This =
situation occurs throughout the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; specification.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">See above regarding Section 1.1.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; 6.&nbsp; Section 3.1.3 (Output Results):&nbs=
p; You show a result using the JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JSON Serialization with line breaks within s=
ome values.&nbsp; This would be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; an appropriate place to use the &#8220;(with=
 line breaks within values for
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; display purposes only)&#8221; language.&nbsp=
; This situation occurs throughout
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; the specification.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">See above regarding Section 1.1.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; EDITORIAL COMMENTS<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E0.&nbsp; I would suggest taking the HTML ou=
tput and running it through a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; grammar checker, such as the one in Microsof=
t Word.&nbsp; This will catch a
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; number of simple phrasing problems, omitted =
words, and repeated words.
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Some specific editorial comments follow.<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I admittedly turned off my spell checkers once mo=
st of the examples were in place due to the rather high signal-to-noise rat=
io.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I know &#8211; it&#=
8217;s moderately painful.&nbsp; It takes me about 20 minutes to do the ful=
l spelling and grammar check of the concatenated JWS, JWE, JWK, JWA, and JW=
T specs when I do a release.&nbsp; Use the keyboard shortcuts
 Alt-i for ignore a single instance of a grammar problem and Alt-g to ignor=
e all instances of a word that&#8217;s legal in the document but not legal =
English &#8211; like &#8220;alg&#8221;, etc.&nbsp; That will speed things u=
p.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">I&#8217;d do all yo=
ur other edits, then do this at least once.&nbsp; I think you&#8217;ll be s=
urprised how much you find.&nbsp; In my experience, the grammar checking is=
 often even more important than the spelling checking.<o:p></o:p></span></p=
>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E1.&nbsp; In the Abstract, the first &#8220;=
sentence&#8221; is missing a verb, and so
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; is actually a fragment.&nbsp; I&#8217;d chan=
ge it to &#8220;This specification contains
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; set of examples using JavaScript Object Sign=
ing and Encryption (JOSE)
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; functionality to protect data&#8221;.<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E2.&nbsp; In the Introduction, I would chang=
e the document order to JWS,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWE, JWK, JWA &#8211; as that is the standar=
d order we usually talk about
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; them in &#8211; in part, because if a develo=
per uses only one of (JWS, JWE,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; and JWK), it tends to be JWS &#8211; so it m=
akes sense to start with it.&nbsp;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWA is last because it&#8217;s used by all t=
he others.&nbsp; JWE follows JWS
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; because it makes sense to group encryption w=
ith signing.&nbsp; Which leaves
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWK in the third spot.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E3.&nbsp; In the Introduction, this sentence=
 seems overly negative:<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; &#8220;The full set of permutations is extre=
mely large, and might be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; daunting to some&#8221;.&nbsp; I&#8217;d rew=
ord it to: &#8220;While the full set of
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; permutations is large, and might be daunting=
 to some, it is expected
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; that most applications will choose a relativ=
ely constrained set of
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; algorithms and combinations that meet their =
needs&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E4.&nbsp; Introduction: &#8220;compile toget=
her&#8221; -&gt; &#8220;compile&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E5.&nbsp; Section 1.1:&nbsp; &#8220;enough f=
actors&#8221; -&gt; &#8220;enough information&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E6.&nbsp; Section 1.1:&nbsp; &#8220;or to va=
lidate or to validate&#8221; -&gt; &#8220;or to validate&#8221;<o:p></o:p><=
/p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E7.&nbsp; Section 1.1: &#8220;some algorithm=
s inherently use random data and
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; cannot be exactly replicated&#8221; -&gt; &#=
8220;some algorithms inherently use
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; random data and therefore computations emplo=
ying them cannot be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; exactly replicated&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E8.&nbsp; In the Terminology section, use th=
e document order JWS, JWE, JWK,
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; JWA.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E9.&nbsp; Section 3: &#8220;the sequence &#8=
220;\xe2\x80\x99&#8221; substituted&#8221; -&gt; &#8220;the
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; sequence &#8220;\xe2\x80\x99&#8221; is subst=
ituted&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E10.&nbsp; Section 3: &#8220;line breaks (U&=
#43;000A LINE FEED) replacing some &#8220; &#8220;
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (U&#43;0020 SPACE)&#8221; -&gt; &#8220;line =
breaks (U&#43;000A LINE FEED) replace some
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; instances of &#8220; &#8220; (U&#43;0020 SPA=
CE)&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E11.&nbsp; Section 4:&nbsp; Apply the same e=
ditorial corrections to the second
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; paragraph as E9 and E10 above.<o:p></o:p></p=
>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E12.&nbsp; Acknowledgments: &#8220;quotes&#8=
221; -&gt; &#8220;quotations&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; E13.&nbsp; Acknowledgments: Uses of &#8220;;=
&#8221; should be changed to &#8220;,&#8221;.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; -----Original Message----- From: jose<o:p></=
o:p></p>
<p class=3D"MsoPlainText">&gt; [<a href=3D"mailto:jose-bounces@ietf.org"><s=
pan style=3D"color:windowtext;text-decoration:none">mailto:jose-bounces@iet=
f.org</span></a>] On Behalf Of Karen ODonoghue Sent:<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Wednesday, July 23, 2014 7:42 AM To: <a href=
=3D"mailto:jose@ietf.org">
<span style=3D"color:windowtext;text-decoration:none">jose@ietf.org</span><=
/a> Subject: [jose]
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Working Group Last Call (WGLC) for draft-iet=
f-jose-cookbook-03<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Folks,<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; This message starts a two week working group=
 last call for the jose
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; cookbook document &quot;Examples of Protecti=
ng Content using JavaScript
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Object Signing and Encryption (JOSE)&quot;<o=
:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; (<a href=3D"https://tools.ietf.org/html/draf=
t-ietf-jose-cookbook-03"><span style=3D"color:windowtext;text-decoration:no=
ne">https://tools.ietf.org/html/draft-ietf-jose-cookbook-03</span></a>)<o:p=
></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Please review the document and send comments=
, questions to the Working
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Group mailing list &lt; jose at ietf.org &gt=
; or the co-chairs &lt;jose-chairs
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; at tools.ietf.org &gt; before the end of the=
 WGLC.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Please note that suggested changes which inc=
lude proposed text will be
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; more strongly considered than those without.=
 Additionally, even if you
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; have no comments, statements to the effect t=
hat &quot;I have read this
<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; document and believe it is ready for publica=
tion&quot; are helpful.<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Regards,<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; Karen and Jim<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; ____________________________________________=
___<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; jose mailing list<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <a href=3D"mailto:jose@ietf.org"><span style=
=3D"color:windowtext;text-decoration:none">jose@ietf.org</span></a> &lt;<a =
href=3D"mailto:jose@ietf.org"><span style=3D"color:windowtext;text-decorati=
on:none">mailto:jose@ietf.org</span></a>&gt;<o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <a href=3D"https://www.ietf.org/mailman/list=
info/jose"><span style=3D"color:windowtext;text-decoration:none">https://ww=
w.ietf.org/mailman/listinfo/jose</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText">&gt; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- --<o:p></o:p></p>
<p class=3D"MsoPlainText">- - m&amp;m<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Matt Miller &lt; <a href=3D"mailto:mamille2@cisco=
.com"><span style=3D"color:windowtext;text-decoration:none">mamille2@cisco.=
com</span></a> &gt;<o:p></o:p></p>
<p class=3D"MsoPlainText">Cisco Systems, Inc.<o:p></o:p></p>
<p class=3D"MsoPlainText">-----BEGIN PGP SIGNATURE-----<o:p></o:p></p>
<p class=3D"MsoPlainText">Version: GnuPG/MacGPG2 v2.0.22 (Darwin)<o:p></o:p=
></p>
<p class=3D"MsoPlainText">Comment: GPGTools - <a href=3D"https://gpgtools.o=
rg"><span style=3D"color:windowtext;text-decoration:none">https://gpgtools.=
org</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText">Comment: Using GnuPG with Thunderbird - <a href=
=3D"http://www.enigmail.net/">
<span style=3D"color:windowtext;text-decoration:none">http://www.enigmail.n=
et/</span></a><o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">iQEcBAEBCgAGBQJT4j&#43;SAAoJEDWi&#43;S0W7cO1Iy4H/=
Rt6W6n4abVcEbyIMrFe/zZP<o:p></o:p></p>
<p class=3D"MsoPlainText">QkJNe1bFBFFmytTz&#43;Djp&#43;gfEsd3ZhseaS8EiwozOW=
drlkvcAUR3lIvOgt4LU4tTf<o:p></o:p></p>
<p class=3D"MsoPlainText">oVV94W41T5azuXavXNjVSgXR7vLtYkOpt991d5oqqU7VRPnA5=
8EsJbCOaUkmrieA<o:p></o:p></p>
<p class=3D"MsoPlainText">Fi4MLqYKAq4qIHBZvGqRELFhqYhTG4yT9ueoCwpcsN2iEveEU=
0kjlF&#43;eyEVFS8dn<o:p></o:p></p>
<p class=3D"MsoPlainText">7IF4kSy6HYyhWzFVfrQ0996Y/hv/50cpJEnGy4Mhlem41Gv3K=
hsqCV&#43;EexNVrS46<o:p></o:p></p>
<p class=3D"MsoPlainText">NO1P0UzM/Hv6uYElAucvx6E249n2tQlFkQ&#43;ZJqWJu1qhf=
sVGmrfQ0rZTwVZ8CXk=3D<o:p></o:p></p>
<p class=3D"MsoPlainText">=3DKm7Y<o:p></o:p></p>
<p class=3D"MsoPlainText">-----END PGP SIGNATURE-----<o:p></o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE07633TK5EX14MBXC293r_--


From nobody Wed Aug  6 11:24:24 2014
Return-Path: <odonoghue@isoc.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1867B1ABB2B for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 11:24:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 3-VONswVEMk4 for <jose@ietfa.amsl.com>; Wed,  6 Aug 2014 11:24:19 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0239.outbound.protection.outlook.com [207.46.163.239]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4894F1A002E for <jose@ietf.org>; Wed,  6 Aug 2014 11:24:19 -0700 (PDT)
Received: from BLUPR06MB580.namprd06.prod.outlook.com (10.141.206.25) by BLUPR06MB468.namprd06.prod.outlook.com (10.141.202.154) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 18:24:16 +0000
Received: from ISOC-REM-MBA2187.local (162.247.107.18) by BLUPR06MB580.namprd06.prod.outlook.com (10.141.206.25) with Microsoft SMTP Server (TLS) id 15.0.995.14; Wed, 6 Aug 2014 18:24:06 +0000
Message-ID: <53E272BF.20009@isoc.org>
Date: Wed, 6 Aug 2014 14:23:59 -0400
From: Karen ODonoghue <odonoghue@isoc.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Mike Jones <Michael.Jones@microsoft.com>, Matt Miller <mamille2@cisco.com>, "jose@ietf.org" <jose@ietf.org>
References: <53CFC9A4.3000500@isoc.org> <4E1F6AAD24975D4BA5B16804296739439AE06688@TK5EX14MBXC293.redmond.corp.microsoft.com> <53E23F93.1060901@cisco.com> <4E1F6AAD24975D4BA5B16804296739439AE07537@TK5EX14MBXC293.redmond.corp.microsoft.com> <4E1F6AAD24975D4BA5B16804296739439AE07633@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE07633@TK5EX14MBXC293.redmond.corp.microsoft.com>
X-Enigmail-Version: 1.6
Content-Type: multipart/alternative; boundary="------------050502060204030509030705"
X-Originating-IP: [162.247.107.18]
X-ClientProxiedBy: BN3PR09CA0034.namprd09.prod.outlook.com (25.160.111.172) To BLUPR06MB580.namprd06.prod.outlook.com (10.141.206.25)
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-Forefront-PRVS: 02951C14DC
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009003)(6009001)(3905001)(51704005)(199002)(189002)(80022001)(65806001)(66066001)(42186005)(65956001)(84326002)(512934002)(20776003)(4396001)(64706001)(77982001)(76482001)(107886001)(71186001)(21056001)(19580395003)(107046002)(79102001)(19580405001)(1511001)(81342001)(83322001)(81542001)(83506001)(46102001)(64126003)(2421001)(77096002)(33656002)(95666004)(86362001)(99396002)(36756003)(54356999)(85306004)(105586002)(50986999)(102836001)(74502001)(76176999)(106356001)(31966008)(85852003)(74662001)(92726001)(92566001)(101416001)(93886004)(87976001)(65816999)(83072002)(2501001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR06MB580; H:ISOC-REM-MBA2187.local; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:
X-OriginatorOrg: isoc.org
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/wa_Tijq-S45-mvEQ54Q-kvDAhoA
Subject: Re: [jose] Working Group Last Call (WGLC) for draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Aug 2014 18:24:22 -0000

--------------050502060204030509030705
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Just one quick question on the JWK examples section...
> < stuff deleted...>
>
>  
>
> The document includes all of the above, but does not call them out
> specifically.  I can add a section that copies a representative sample
> of JWKs from elsewhere in the document.
>
>  
>
> That would be good -- thanks.  I would specifically call out the
> particulars like the high-order bit of one of the 521-bit values being
> zero, the high-order byte of one of the 256-bit values being zero, no
> extra leading zeroes being included for RSA "n" values, etc. 
> Particularly in the base64url encoding, most people won't know that
> AAAA represents a zero byte.
>

I'm just wondering if you could create a section that had some
explanatory text and pointed to the relevant examples elsewhere instead
of duplicating them. Duplicating information makes me a bit nervous.
And, I wonder if it would be less work...

Just a thought, and I'm happy with whatever approach Matt is willing to
take given that he is doing the heavy lifting on this...

Karen


--------------050502060204030509030705
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Just one quick question on the JWK examples section...<br>
    <blockquote
cite="mid:4E1F6AAD24975D4BA5B16804296739439AE07633@TK5EX14MBXC293.redmond.corp.microsoft.com"
      type="cite">
      <div class="WordSection1">&lt; stuff deleted...&gt;<o:p></o:p>
        <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
        <p class="MsoPlainText">The document includes all of the above,
          but does not call them out specifically.&nbsp; I can add a section
          that copies a representative sample of JWKs from elsewhere in
          the document.<o:p></o:p></p>
        <p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
        <p class="MsoPlainText"><span style="color:#00B050">That would
            be good &#8211; thanks.&nbsp; I would specifically call out the
            particulars like the high-order bit of one of the 521-bit
            values being zero, the high-order byte of one of the 256-bit
            values being zero, no extra leading zeroes being included
            for RSA &#8220;n&#8221; values, etc.&nbsp; Particularly in the base64url
            encoding, most people won&#8217;t know that AAAA represents a zero
            byte.</span></p>
      </div>
    </blockquote>
    <br>
    I'm just wondering if you could create a section that had some
    explanatory text and pointed to the relevant examples elsewhere
    instead of duplicating them. Duplicating information makes me a bit
    nervous. And, I wonder if it would be less work...<br>
    <br>
    Just a thought, and I'm happy with whatever approach Matt is willing
    to take given that he is doing the heavy lifting on this...<br>
    <br>
    Karen<br>
    <br>
  </body>
</html>

--------------050502060204030509030705--


From nobody Wed Aug 13 18:40:50 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9E731A06DA for <jose@ietfa.amsl.com>; Wed, 13 Aug 2014 18:40:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level: 
X-Spam-Status: No, score=-0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 8WZEk2VnPPoR for <jose@ietfa.amsl.com>; Wed, 13 Aug 2014 18:40:45 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0183.outbound.protection.outlook.com [207.46.163.183]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1C3821A06D4 for <jose@ietf.org>; Wed, 13 Aug 2014 18:40:44 -0700 (PDT)
Received: from BN3PR0301CA0009.namprd03.prod.outlook.com (25.160.180.147) by BY2PR03MB619.namprd03.prod.outlook.com (10.255.93.41) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 01:40:42 +0000
Received: from BL2FFO11FD022.protection.gbl (2a01:111:f400:7c09::132) by BN3PR0301CA0009.outlook.office365.com (2a01:111:e400:4000::19) with Microsoft SMTP Server (TLS) id 15.0.1005.10 via Frontend Transport; Thu, 14 Aug 2014 01:40:42 +0000
Received: from mail.microsoft.com (131.107.125.37) by BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Thu, 14 Aug 2014 01:40:41 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14MLTC102.redmond.corp.microsoft.com ([157.54.79.180]) with mapi id 14.03.0195.002; Thu, 14 Aug 2014 01:39:58 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: "jose@ietf.org" <jose@ietf.org>
Thread-Topic: JWK Elliptic Curve key representations and new curves
Thread-Index: Ac+3YKPoN/N5liajT+icFbBFv1/9ng==
Date: Thu, 14 Aug 2014 01:39:58 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.74]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE1989BTK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(189002)(199003)(68736004)(110136001)(104016003)(86362001)(31966008)(74502001)(74662001)(229853001)(71186001)(85306004)(54356999)(81342001)(80022001)(66066001)(44976005)(106466001)(50986999)(95666004)(81156004)(20776003)(77096002)(97736001)(76482001)(83322001)(6806004)(2351001)(81542001)(19300405004)(19580395003)(83072002)(21056001)(64706001)(46102001)(16236675004)(87936001)(86612001)(15975445006)(2656002)(84676001)(69596002)(4396001)(26826002)(79102001)(15202345003)(107046002)(55846006)(512954002)(99396002)(77982001)(84326002)(85852003)(33656002)(92566001)(92726001)(19625215002)(2501001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB619; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 03030B9493
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/bo7luONYI_quBMRIQ9Q8DgiqdQo
Cc: Trevor Perrin <trevp@trevp.net>
Subject: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 01:40:49 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE1989BTK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

It has come up in recent discussions in the CRFG, the W3C WebCrypto working=
 group, and the TLS working group that not all elliptic curves or curve pro=
tocols use two coordinates (x and y) in their public key representations.  =
For instance, a Curve25519 public key is a single 32-byte value.  Especiall=
y in light of the request by TLS to the CRFG to recommend new curves, and t=
hat some of the curves in consideration use only a single value in their pu=
blic key representation, I believe that JOSE should consider how to represe=
nt such keys as JWKs.

I see there being two logical ways to address this:

CHOICE 1 - MAKE THE "EC" KEY TYPE MORE FLEXIBLE:  One obvious possibility i=
s to make it a property of the "crv" parameter for JWKs with "kty": "EC" wh=
at fields are required.  So for instance, when "crv" is "P-256", "P-384", o=
r "P-521", both "x" and "y" members would be used, but other curves might u=
se a different set of members, such as just "x" for public keys.

CHOICE 2 - USE A DIFFERENT KEY TYPE:  Another possibility is to leave the "=
kty": "EC" definition as it is but to define a related "kty": "EC1" value t=
o be used by elliptic curves for which only one value "x" is used in the pu=
blic key representation and an additional value "d" is used in the private =
key representation.

Within choice 2, there are actually two sub-choices available to us:

CHOICE 2A - DEFINE A NEW KEY TYPE VALUE IN JWA NOW:  If we think that there=
 are only two kinds of elliptic curve key representations that we will ever=
 care about, we could define the second one in JWA now.  However, this woul=
d almost certainly start a debate within JOSE about whether we should add a=
ny additional curve definitions using this new key type.  If we do, it shou=
ld almost certainly be because we have followed the CFRG's and TLS's lead i=
n the new curve choices, although doing so would almost certainly further d=
elay our completion.
CHOICE 2B - DEFINE THE NEW KEY TYPE IN A NEW SPEC:   This could be done by =
writing an individual draft that registers "kty": "EC1" and later possibly =
adopting it as a working group item.  This would allow our current specs to=
 proceed as-is, while giving us time to sync with CFRG and TLS as their cur=
ve choices move forwards.

One additional pesky detail worth noting is that the normal Curve25519 key =
representation uses little-endian 32-bit numbers whereas SEC1 (which we use=
 for "x", "y", and "d") uses big-endian numbers.  So for any of these choic=
es above, we'd also have to decide whether to allow different curves to spe=
cify different endianness, require all to use big-endian representations, o=
r to say that for some curves, the value is an octet array of a given size =
and be silent on endianness.

While I'm reluctant to even bring this up at this point in the development =
of our specs, I also don't want those designing potential applications of J=
WKs to believe that their choices of curves are limited by decisions that J=
OSE has made.  It's clear that JWK can be extended to accommodate curves us=
ing only a single value in their public key representations.

How do you think we should do that?

                                                                -- Mike

P.S.  Thanks to Trevor Perrin for private discussions that informed some of=
 the contents of this note.


--_000_4E1F6AAD24975D4BA5B16804296739439AE1989BTK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">It has come up in recent discussions in the CRFG, th=
e W3C WebCrypto working group, and the TLS working group that not all ellip=
tic curves or curve protocols use two coordinates (x and y) in their public=
 key representations.&nbsp; For instance,
 a Curve25519 public key is a single 32-byte value.&nbsp; Especially in lig=
ht of the request by TLS to the CRFG to recommend new curves, and that some=
 of the curves in consideration use only a single value in their public key=
 representation, I believe that JOSE
 should consider how to represent such keys as JWKs.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I see there being two logical ways to address this:<=
o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">CHOICE 1 &#8211; MAKE THE &#8220;EC&#8221; KEY TYPE =
MORE FLEXIBLE:&nbsp; One obvious possibility is to make it a property of th=
e &#8220;crv&#8221; parameter for JWKs with &#8220;kty&#8221;: &#8220;EC&#8=
221; what fields are required.&nbsp; So for instance, when &#8220;crv&#8221=
; is &#8220;P-256&#8221;, &#8220;P-384&#8221;, or &#8220;P-521&#8221;,
 both &#8220;x&#8221; and &#8220;y&#8221; members would be used, but other =
curves might use a different set of members, such as just &#8220;x&#8221; f=
or public keys.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">CHOICE 2 &#8211; USE A DIFFERENT KEY TYPE:&nbsp; Ano=
ther possibility is to leave the &#8220;kty&#8221;: &#8220;EC&#8221; defini=
tion as it is but to define a related &#8220;kty&#8221;: &#8220;EC1&#8221; =
value to be used by elliptic curves for which only one value &#8220;x&#8221=
; is used in the public key representation
 and an additional value &#8220;d&#8221; is used in the private key represe=
ntation. <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Within choice 2, there are actually two sub-choices =
available to us:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">CHOICE 2A &#8211; DEFINE A NEW KEY TYPE VALUE IN JWA=
 NOW:&nbsp; If we think that there are only two kinds of elliptic curve key=
 representations that we will ever care about, we could define the second o=
ne in JWA now.&nbsp; However, this would almost certainly
 start a debate within JOSE about whether we should add any additional curv=
e definitions using this new key type.&nbsp; If we do, it should almost cer=
tainly be because we have followed the CFRG&#8217;s and TLS&#8217;s lead in=
 the new curve choices, although doing so would almost
 certainly further delay our completion.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p></o:p></p>
<p class=3D"MsoNormal">CHOICE 2B &#8211; DEFINE THE NEW KEY TYPE IN A NEW S=
PEC:&nbsp; &nbsp;This could be done by writing an individual draft that reg=
isters &#8220;kty&#8221;: &#8220;EC1&#8221; and later possibly adopting it =
as a working group item.&nbsp; This would allow our current specs to procee=
d as-is,
 while giving us time to sync with CFRG and TLS as their curve choices move=
 forwards.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">One additional pesky detail worth noting is that the=
 normal Curve25519 key representation uses little-endian 32-bit numbers whe=
reas SEC1 (which we use for &#8220;x&#8221;, &#8220;y&#8221;, and &#8220;d&=
#8221;) uses big-endian numbers.&nbsp; So for any of these choices above, w=
e&#8217;d
 also have to decide whether to allow different curves to specify different=
 endianness, require all to use big-endian representations, or to say that =
for some curves, the value is an octet array of a given size and be silent =
on endianness.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">While I&#8217;m reluctant to even bring this up at t=
his point in the development of our specs, I also don&#8217;t want those de=
signing potential applications of JWKs to believe that their choices of cur=
ves are limited by decisions that JOSE has made.&nbsp;
 It&#8217;s clear that JWK can be extended to accommodate curves using only=
 a single value in their public key representations.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">How do you think we should do that?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; -- Mike<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">P.S.&nbsp; Thanks to Trevor Perrin for private discu=
ssions that informed some of the contents of this note.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE1989BTK5EX14MBXC293r_--


From nobody Wed Aug 13 19:20:47 2014
Return-Path: <dholth@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D1D5E1A0726 for <jose@ietfa.amsl.com>; Wed, 13 Aug 2014 19:20:40 -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 E15x6uU-VOt5 for <jose@ietfa.amsl.com>; Wed, 13 Aug 2014 19:20:37 -0700 (PDT)
Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 885561A0725 for <jose@ietf.org>; Wed, 13 Aug 2014 19:20:37 -0700 (PDT)
Received: by mail-wi0-f174.google.com with SMTP id d1so8261870wiv.1 for <jose@ietf.org>; Wed, 13 Aug 2014 19:20:36 -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:content-transfer-encoding; bh=X746AXwPYtwig6w4GpOTtRmXNu42eJoXomeSVrymMFs=; b=yYyNwlbokjey68ol4/nCyLon/iNqPJgqmtj5WcVK4xAxrcnfmBAwz9mYQku8vlzgbz H0ZZfLeYXAq/jvDexemUepo9X8mvmBJcyFXtUYTr1I1yCzLA7jbyf5Z1wTiHFHp82lnV UH2QXPnOzvkBSJve+kmWqhVVAi0EwPeqN6uxUgevL6Xn+4wETz39YvCIHocA2GXR1YS6 3eLWADIeoh1MwC5gyKaCOiwJFQ77une5Ra29VMYwavva/hzNr2dCSCiO7W/T+ZxqEfXW XP3WpxxaxloKx7IWKSyD2clBMhiEYoX/NzX5OkJNXx1jcQzzwXlp5zRmbk4tGRVljPuG NMIg==
MIME-Version: 1.0
X-Received: by 10.180.14.5 with SMTP id l5mr8602470wic.50.1407982836218; Wed, 13 Aug 2014 19:20:36 -0700 (PDT)
Received: by 10.194.58.166 with HTTP; Wed, 13 Aug 2014 19:20:36 -0700 (PDT)
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>
Date: Wed, 13 Aug 2014 22:20:36 -0400
Message-ID: <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com>
From: Daniel Holth <dholth@gmail.com>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/fsKuF9F5eEA24ggObQtc_cozFxg
Cc: Trevor Perrin <trevp@trevp.net>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 02:20:41 -0000

On Wed, Aug 13, 2014 at 9:39 PM, Mike Jones <Michael.Jones@microsoft.com> w=
rote:
> It has come up in recent discussions in the CRFG, the W3C WebCrypto worki=
ng
> group, and the TLS working group that not all elliptic curves or curve
> protocols use two coordinates (x and y) in their public key representatio=
ns.
> For instance, a Curve25519 public key is a single 32-byte value.  Especia=
lly
> in light of the request by TLS to the CRFG to recommend new curves, and t=
hat
> some of the curves in consideration use only a single value in their publ=
ic
> key representation, I believe that JOSE should consider how to represent
> such keys as JWKs.
>
>
>
> I see there being two logical ways to address this:
>
>
>
> CHOICE 1 =E2=80=93 MAKE THE =E2=80=9CEC=E2=80=9D KEY TYPE MORE FLEXIBLE: =
 One obvious possibility is
> to make it a property of the =E2=80=9Ccrv=E2=80=9D parameter for JWKs wit=
h =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D what
> fields are required.  So for instance, when =E2=80=9Ccrv=E2=80=9D is =E2=
=80=9CP-256=E2=80=9D, =E2=80=9CP-384=E2=80=9D, or
> =E2=80=9CP-521=E2=80=9D, both =E2=80=9Cx=E2=80=9D and =E2=80=9Cy=E2=80=9D=
 members would be used, but other curves might use
> a different set of members, such as just =E2=80=9Cx=E2=80=9D for public k=
eys.
>
>
>
> CHOICE 2 =E2=80=93 USE A DIFFERENT KEY TYPE:  Another possibility is to l=
eave the
> =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D definition as it is but to de=
fine a related =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC1=E2=80=9D value
> to be used by elliptic curves for which only one value =E2=80=9Cx=E2=80=
=9D is used in the
> public key representation and an additional value =E2=80=9Cd=E2=80=9D is =
used in the private
> key representation.
>
>
>
> Within choice 2, there are actually two sub-choices available to us:
>
>
>
> CHOICE 2A =E2=80=93 DEFINE A NEW KEY TYPE VALUE IN JWA NOW:  If we think =
that there
> are only two kinds of elliptic curve key representations that we will eve=
r
> care about, we could define the second one in JWA now.  However, this wou=
ld
> almost certainly start a debate within JOSE about whether we should add a=
ny
> additional curve definitions using this new key type.  If we do, it shoul=
d
> almost certainly be because we have followed the CFRG=E2=80=99s and TLS=
=E2=80=99s lead in
> the new curve choices, although doing so would almost certainly further
> delay our completion.
>
> CHOICE 2B =E2=80=93 DEFINE THE NEW KEY TYPE IN A NEW SPEC:   This could b=
e done by
> writing an individual draft that registers =E2=80=9Ckty=E2=80=9D: =E2=80=
=9CEC1=E2=80=9D and later possibly
> adopting it as a working group item.  This would allow our current specs =
to
> proceed as-is, while giving us time to sync with CFRG and TLS as their cu=
rve
> choices move forwards.
>
>
>
> One additional pesky detail worth noting is that the normal Curve25519 ke=
y
> representation uses little-endian 32-bit numbers whereas SEC1 (which we u=
se
> for =E2=80=9Cx=E2=80=9D, =E2=80=9Cy=E2=80=9D, and =E2=80=9Cd=E2=80=9D) us=
es big-endian numbers.  So for any of these choices
> above, we=E2=80=99d also have to decide whether to allow different curves=
 to specify
> different endianness, require all to use big-endian representations, or t=
o
> say that for some curves, the value is an octet array of a given size and=
 be
> silent on endianness.
>
>
>
> While I=E2=80=99m reluctant to even bring this up at this point in the de=
velopment
> of our specs, I also don=E2=80=99t want those designing potential applica=
tions of
> JWKs to believe that their choices of curves are limited by decisions tha=
t
> JOSE has made.  It=E2=80=99s clear that JWK can be extended to accommodat=
e curves
> using only a single value in their public key representations.
>
>
>
> How do you think we should do that?
>
>
>
>                                                                 -- Mike
>
>
>
> P.S.  Thanks to Trevor Perrin for private discussions that informed some =
of
> the contents of this note.

I didn't find the existing spec a burden. My JWK-derived system uses {
"kty" : "Ed25519", vk : "the base64url-encoded verifying key" } and
uses "Ed25519" as alg as well. (In the less necessary JWK private key
representation "sk" : "..." is used for the secret part).

Is there some economy that makes it desirable to have a Ed25519 JWK
look similar to any other elliptic curve key that only uses one
(opaque?) parameter? The constant-time implementation (no secret
branching) is monolithic, specialized to that curve and is not built
out of reconfigurable pieces.

Curve1174 "Elligator" is another elliptic curve system by DJB etc.
that looks like it shares some of the attributes of Ed25519.

Daniel Holth


From nobody Thu Aug 14 01:22:35 2014
Return-Path: <mike.scott@certivox.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9DAA71A0968 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 01:22:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 ekabEWGos2Bm for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 01:22:25 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0081.outbound.protection.outlook.com [213.199.154.81]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9486E1A0059 for <jose@ietf.org>; Thu, 14 Aug 2014 01:22:18 -0700 (PDT)
Received: from DB4PR03MB377.eurprd03.prod.outlook.com (10.242.231.12) by DB4PR03MB380.eurprd03.prod.outlook.com (10.242.231.18) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 08:22:16 +0000
Received: from DB4PR03MB377.eurprd03.prod.outlook.com ([10.242.231.12]) by DB4PR03MB377.eurprd03.prod.outlook.com ([10.242.231.12]) with mapi id 15.00.1005.008; Thu, 14 Aug 2014 08:22:16 +0000
From: Mike Scott <mike.scott@certivox.com>
To: Daniel Holth <dholth@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>
Thread-Topic: [jose] JWK Elliptic Curve key representations and new curves
Thread-Index: Ac+3YKPoN/N5liajT+icFbBFv1/9ngABbE4AAAxFxU4=
Date: Thu, 14 Aug 2014 08:22:16 +0000
Message-ID: <1408004416408.82777@certivox.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>, <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com>
In-Reply-To: <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com>
Accept-Language: en-IE, en-US
Content-Language: en-IE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [136.206.195.136]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:;
x-forefront-prvs: 03030B9493
x-forefront-antispam-report: SFV:NSPM; SFS:(10009004)(6009001)(51704005)(24454002)(377454003)(189002)(199003)(92566001)(4396001)(74502001)(19580405001)(81342001)(1511001)(77982001)(92726001)(2656002)(50986999)(15975445006)(79102001)(36756003)(76482001)(83072002)(86362001)(85852003)(107046002)(95666004)(85306004)(64706001)(20776003)(99396002)(66066001)(83322001)(54356999)(21056001)(105586002)(106356001)(46102001)(81542001)(19580395003)(87936001)(31966008)(74662001)(101416001)(76176999)(80022001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR03MB380; H:DB4PR03MB377.eurprd03.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: certivox.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/cHzHjv_k1QlphA8cyGOhqOA2Z0o
Cc: Trevor Perrin <trevp@trevp.net>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 08:22:32 -0000

Be careful not to confuse Ed25519 with Curve25519. The former uses Edwards =
coordinates in which case (x,y) coordinates are appropriate. The latter use=
s Montgomery coordinates, which only require an x coordinate for the specia=
l case of an implementation of the Diffie-Hellman key exchange.=0A=
=0A=
In fact all coordinate systems can use a "compressed" form of just x and at=
 most 1 bit to indicate the sign of y (recall that x and y are related via =
the curve equation). However compression (or some forms of it) was patented=
, and hence avoided. However I believe that patent has now lapsed (?) As I =
recall IEEE1363 supports a compressed representation of points.=0A=
  =0A=
Also "decompression" has a cost associated with it, although this doesn't a=
rise for Curve25519 where it is never required to recover the y coordinate=
=0A=
=0A=
=0A=
Mike Scott=0A=
=0A=
________________________________________=0A=
From: jose <jose-bounces@ietf.org> on behalf of Daniel Holth <dholth@gmail.=
com>=0A=
Sent: 14 August 2014 03:20=0A=
To: Mike Jones=0A=
Cc: Trevor Perrin; jose@ietf.org=0A=
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves=
=0A=
=0A=
On Wed, Aug 13, 2014 at 9:39 PM, Mike Jones <Michael.Jones@microsoft.com> w=
rote:=0A=
> It has come up in recent discussions in the CRFG, the W3C WebCrypto worki=
ng=0A=
> group, and the TLS working group that not all elliptic curves or curve=0A=
> protocols use two coordinates (x and y) in their public key representatio=
ns.=0A=
> For instance, a Curve25519 public key is a single 32-byte value.  Especia=
lly=0A=
> in light of the request by TLS to the CRFG to recommend new curves, and t=
hat=0A=
> some of the curves in consideration use only a single value in their publ=
ic=0A=
> key representation, I believe that JOSE should consider how to represent=
=0A=
> such keys as JWKs.=0A=
>=0A=
>=0A=
>=0A=
> I see there being two logical ways to address this:=0A=
>=0A=
>=0A=
>=0A=
> CHOICE 1 =96 MAKE THE =93EC=94 KEY TYPE MORE FLEXIBLE:  One obvious possi=
bility is=0A=
> to make it a property of the =93crv=94 parameter for JWKs with =93kty=94:=
 =93EC=94 what=0A=
> fields are required.  So for instance, when =93crv=94 is =93P-256=94, =93=
P-384=94, or=0A=
> =93P-521=94, both =93x=94 and =93y=94 members would be used, but other cu=
rves might use=0A=
> a different set of members, such as just =93x=94 for public keys.=0A=
>=0A=
>=0A=
>=0A=
> CHOICE 2 =96 USE A DIFFERENT KEY TYPE:  Another possibility is to leave t=
he=0A=
> =93kty=94: =93EC=94 definition as it is but to define a related =93kty=94=
: =93EC1=94 value=0A=
> to be used by elliptic curves for which only one value =93x=94 is used in=
 the=0A=
> public key representation and an additional value =93d=94 is used in the =
private=0A=
> key representation.=0A=
>=0A=
>=0A=
>=0A=
> Within choice 2, there are actually two sub-choices available to us:=0A=
>=0A=
>=0A=
>=0A=
> CHOICE 2A =96 DEFINE A NEW KEY TYPE VALUE IN JWA NOW:  If we think that t=
here=0A=
> are only two kinds of elliptic curve key representations that we will eve=
r=0A=
> care about, we could define the second one in JWA now.  However, this wou=
ld=0A=
> almost certainly start a debate within JOSE about whether we should add a=
ny=0A=
> additional curve definitions using this new key type.  If we do, it shoul=
d=0A=
> almost certainly be because we have followed the CFRG=92s and TLS=92s lea=
d in=0A=
> the new curve choices, although doing so would almost certainly further=
=0A=
> delay our completion.=0A=
>=0A=
> CHOICE 2B =96 DEFINE THE NEW KEY TYPE IN A NEW SPEC:   This could be done=
 by=0A=
> writing an individual draft that registers =93kty=94: =93EC1=94 and later=
 possibly=0A=
> adopting it as a working group item.  This would allow our current specs =
to=0A=
> proceed as-is, while giving us time to sync with CFRG and TLS as their cu=
rve=0A=
> choices move forwards.=0A=
>=0A=
>=0A=
>=0A=
> One additional pesky detail worth noting is that the normal Curve25519 ke=
y=0A=
> representation uses little-endian 32-bit numbers whereas SEC1 (which we u=
se=0A=
> for =93x=94, =93y=94, and =93d=94) uses big-endian numbers.  So for any o=
f these choices=0A=
> above, we=92d also have to decide whether to allow different curves to sp=
ecify=0A=
> different endianness, require all to use big-endian representations, or t=
o=0A=
> say that for some curves, the value is an octet array of a given size and=
 be=0A=
> silent on endianness.=0A=
>=0A=
>=0A=
>=0A=
> While I=92m reluctant to even bring this up at this point in the developm=
ent=0A=
> of our specs, I also don=92t want those designing potential applications =
of=0A=
> JWKs to believe that their choices of curves are limited by decisions tha=
t=0A=
> JOSE has made.  It=92s clear that JWK can be extended to accommodate curv=
es=0A=
> using only a single value in their public key representations.=0A=
>=0A=
>=0A=
>=0A=
> How do you think we should do that?=0A=
>=0A=
>=0A=
>=0A=
>                                                                 -- Mike=
=0A=
>=0A=
>=0A=
>=0A=
> P.S.  Thanks to Trevor Perrin for private discussions that informed some =
of=0A=
> the contents of this note.=0A=
=0A=
I didn't find the existing spec a burden. My JWK-derived system uses {=0A=
"kty" : "Ed25519", vk : "the base64url-encoded verifying key" } and=0A=
uses "Ed25519" as alg as well. (In the less necessary JWK private key=0A=
representation "sk" : "..." is used for the secret part).=0A=
=0A=
Is there some economy that makes it desirable to have a Ed25519 JWK=0A=
look similar to any other elliptic curve key that only uses one=0A=
(opaque?) parameter? The constant-time implementation (no secret=0A=
branching) is monolithic, specialized to that curve and is not built=0A=
out of reconfigurable pieces.=0A=
=0A=
Curve1174 "Elligator" is another elliptic curve system by DJB etc.=0A=
that looks like it shares some of the attributes of Ed25519.=0A=
=0A=
Daniel Holth=0A=
=0A=
_______________________________________________=0A=
jose mailing list=0A=
jose@ietf.org=0A=
https://www.ietf.org/mailman/listinfo/jose=0A=


From nobody Thu Aug 14 01:28:09 2014
Return-Path: <trac+jose@trac.tools.ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EFF171A092B for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 00:42:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.568
X-Spam-Level: 
X-Spam-Status: No, score=-2.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.668] 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 dDPntmmexkpn for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 00:42:26 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:123a::1:2a]) (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 D714A1A0921 for <jose@ietf.org>; Thu, 14 Aug 2014 00:42:26 -0700 (PDT)
Received: from localhost ([::1]:58570 helo=zinfandel.tools.ietf.org) by zinfandel.tools.ietf.org with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from <trac+jose@trac.tools.ietf.org>) id 1XHpfv-0000gO-74; Thu, 14 Aug 2014 00:42:19 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "jose issue tracker" <trac+jose@zinfandel.tools.ietf.org>
X-Trac-Version: 0.12.3
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.3, by Edgewall Software
To: draft-ietf-jose-json-web-algorithms@tools.ietf.org, ietf@augustcellars.com, odonoghue@isoc.org
X-Trac-Project: jose
Date: Thu, 14 Aug 2014 07:42:19 -0000
X-URL: http://tools.ietf.org/jose/
X-Trac-Ticket-URL: http://trac.tools.ietf.org/wg/jose/trac/ticket/158#comment:3
Message-ID: <076.a1c14b7e90c948ae31b149fa5322c58a@trac.tools.ietf.org>
References: <061.3c673ad4841c1cc6c7ff45f10da106b1@trac.tools.ietf.org>
X-Trac-Ticket-ID: 158
In-Reply-To: <061.3c673ad4841c1cc6c7ff45f10da106b1@trac.tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: draft-ietf-jose-json-web-algorithms@tools.ietf.org, ietf@augustcellars.com, odonoghue@isoc.org, jose@ietf.org
X-SA-Exim-Mail-From: trac+jose@trac.tools.ietf.org
X-SA-Exim-Scanned: No (on zinfandel.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: mbj@microsoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/3AsdfJO_U4G4mWvMbVEaLtd4xto
X-Mailman-Approved-At: Thu, 14 Aug 2014 01:28:05 -0700
Cc: jose@ietf.org
Subject: Re: [jose] #158 (json-web-algorithms): Section 7. Security Considerations
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 07:42:30 -0000

#158: Section 7. Security Considerations

Changes (by odonoghue@isoc.org):

 * status:  new => closed
 * resolution:   => fixed


Old description:

> A.  DSS does not appear to have a security considerations section.  It is
> not clear the entire list of documents has any good reason to be
> considered in this list.  This appears to just be a shotgun approach
> rather than a considered approach.
>
> * REVIEW as part of Last Call
>
> B.  Algorithms will be deprecated in the registry rather than removed
> from this specification
>
> * FIXED
>
> C.  Where do I find the security considerations for use of the algorithms
> in this document?  The general statement without pointers is going to
> mean it is ignored.
>
> * FIXED
>
> D.  Is the recommendation for matching the key size of the wrapped key
> and the wrapping key in the body of the text or is it just here?
>
> * FIXED

New description:

 Status changed to fixed, but the first issue was not fully addressed.

 A.  DSS does not appear to have a security considerations section.  It is
 not clear the entire list of documents has any good reason to be
 considered in this list.  This appears to just be a shotgun approach
 rather than a considered approach.

 * Close for now and see if others have an issue during IETF Last Call

 B.  Algorithms will be deprecated in the registry rather than removed from
 this specification

 * FIXED

 C.  Where do I find the security considerations for use of the algorithms
 in this document?  The general statement without pointers is going to mean
 it is ignored.

 * FIXED

 D.  Is the recommendation for matching the key size of the wrapped key and
 the wrapping key in the body of the text or is it just here?

 * FIXED

--

-- 
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  draft-ietf-jose-json-web-
  ietf@augustcellars.com |  algorithms@tools.ietf.org
     Type:  defect       |      Status:  closed
 Priority:  Editorial    |   Milestone:
Component:  json-web-    |     Version:
  algorithms             |  Resolution:  fixed
 Severity:  -            |
 Keywords:               |
-------------------------+-------------------------------------------------

Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/158#comment:3>
jose <http://tools.ietf.org/jose/>


From nobody Thu Aug 14 01:28:10 2014
Return-Path: <trac+jose@trac.tools.ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A3FC1A094C for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 01:13:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.568
X-Spam-Level: 
X-Spam-Status: No, score=-2.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.668] 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 tNpF7eOFYf8i for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 01:13:53 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:123a::1:2a]) (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 25E541A0956 for <jose@ietf.org>; Thu, 14 Aug 2014 01:13:53 -0700 (PDT)
Received: from localhost ([::1]:59354 helo=zinfandel.tools.ietf.org) by zinfandel.tools.ietf.org with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from <trac+jose@trac.tools.ietf.org>) id 1XHqAI-0007iA-Ae; Thu, 14 Aug 2014 01:13:42 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "jose issue tracker" <trac+jose@zinfandel.tools.ietf.org>
X-Trac-Version: 0.12.3
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.3, by Edgewall Software
To: draft-ietf-jose-json-web-signature@tools.ietf.org, michael.jones@microsoft.com, rlb@ipv.sx, ietf@augustcellars.com, odonoghue@isoc.org
X-Trac-Project: jose
Date: Thu, 14 Aug 2014 08:13:42 -0000
X-URL: http://tools.ietf.org/jose/
X-Trac-Ticket-URL: http://trac.tools.ietf.org/wg/jose/trac/ticket/36#comment:6
Message-ID: <076.5118aeefed1eb8887e02699a079c87f7@trac.tools.ietf.org>
References: <061.d41e5e3f57bfb36040f9b5b22107bda7@trac.tools.ietf.org>
X-Trac-Ticket-ID: 36
In-Reply-To: <061.d41e5e3f57bfb36040f9b5b22107bda7@trac.tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: draft-ietf-jose-json-web-signature@tools.ietf.org, michael.jones@microsoft.com, rlb@ipv.sx, ietf@augustcellars.com, odonoghue@isoc.org, jose@ietf.org
X-SA-Exim-Mail-From: trac+jose@trac.tools.ietf.org
X-SA-Exim-Scanned: No (on zinfandel.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: mbj@microsoft.com, n-sakimura@nri.co.jp, ve7jtb@ve7jtb.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/JGLhiW5SQvGtpXsivB7kAL2i7bk
X-Mailman-Approved-At: Thu, 14 Aug 2014 01:28:05 -0700
Cc: jose@ietf.org
Subject: Re: [jose] #36 (json-web-signature): Algorithm "none" should be removed
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 08:13:59 -0000

#36: Algorithm "none" should be removed

Description changed by odonoghue@isoc.org:

Old description:

> Rather than having an algorithm none, this should be a degenerate case of
> JWS that is defined by and detected in the JWS specification.  I would
> suggest that we define it as being - if the "alg" and "enc" items are
> absent, then there is no signature on the message.  This would still
> allow the "zip" item to be present on the message to give you both a data
> carrying JOSE object and allow for compression.  Additionally one could
> define a new typ value of "DATA" to indicate that we are just carrying a
> payload and it is not acutally a JWS object.

New description:

 Rather than having an algorithm none, this should be a degenerate case of
 JWS that is defined by and detected in the JWS specification.  I would
 suggest that we define it as being - if the "alg" and "enc" items are
 absent, then there is no signature on the message.  This would still allow
 the "zip" item to be present on the message to give you both a data
 carrying JOSE object and allow for compression.  Additionally one could
 define a new typ value of "DATA" to indicate that we are just carrying a
 payload and it is not acutally a JWS object.

 Note: There was extensive discussion on the mailing list, and the rough
 consensus of the working group was to leave "none" in the document.

--

-- 
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  draft-ietf-jose-json-web-
  ietf@augustcellars.com |  signature@tools.ietf.org
     Type:  defect       |      Status:  closed
 Priority:  major        |   Milestone:
Component:  json-web-    |     Version:
  signature              |  Resolution:  fixed
 Severity:  -            |
 Keywords:               |
-------------------------+-------------------------------------------------

Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/36#comment:6>
jose <http://tools.ietf.org/jose/>


From nobody Thu Aug 14 02:51:33 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4534F1A09CD for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 02:51: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 Z166YSUxfN5C for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 02:51:30 -0700 (PDT)
Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7592D1A09C8 for <jose@ietf.org>; Thu, 14 Aug 2014 02:51:30 -0700 (PDT)
Received: by mail-we0-f174.google.com with SMTP id x48so848449wes.19 for <jose@ietf.org>; Thu, 14 Aug 2014 02:51:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=MaSe+8cXXi0FVVTA2N0nQCJ8bCslGKvZwgUioLFZFu8=; b=DpckkxyJxgPDd7LmtFuIpPCp1120rcYVR7SdmReIbTWP0a1b1HE+Yxv1oGc+dDsQVl Bfpeo+3JIg4lbcu+Z9MLIca5wxlYJ7CsPnDijp5vxF3QPwUG9ydsBswBAKV9/OlqIH0m s3DcTgddigOh7g4Gj4E9gg7Zxnj/zPmeKd9RifSyrJwVFs0DuDOtnseUoDLXNFXHd3JM JsoDKvhrbArXcAAD8Q0t7UjnueuWZ9Gm9mhMeTA6713F2WIUaMtT3WjSwnNpXhQCdfnR 7bXBGelkHcwsPcYn4vLYpHwKFwoQSetrwpsU1Us6QRTBcqyjZoQI8yw4LJ/qB4qljxcK BooA==
X-Received: by 10.194.81.37 with SMTP id w5mr10921347wjx.12.1408009888652; Thu, 14 Aug 2014 02:51:28 -0700 (PDT)
Received: from [192.168.2.7] ([109.255.231.6]) by mx.google.com with ESMTPSA id ft17sm10380125wjc.14.2014.08.14.02.51.27 for <jose@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 02:51:27 -0700 (PDT)
Message-ID: <53EC868E.4000000@gmail.com>
Date: Thu, 14 Aug 2014 10:51:10 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: jose@ietf.org
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/k-AAlzYBGUhlQY21ux6k6DLra8Q
Subject: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 09:51:32 -0000

Hi,

This is very likely a newbie question. What is the role of JWK ?
According to [1] it is "... a (JSON) data structure that represents a 
cryptographic key".

I can see plenty examples of JWK in the JWE specification. JWS and JWE 
headers can have a "jwk" property representing a given JWK.

What confuses me is that the examples in JWE use JWK to describe the 
private parts of a given key. For example, when we talk about the RSA 
OAEP key encryption, JWK would show a private exponent of a given RSA 
key (JWE A1). Same for Aes Wrap secret key (JWE A3). Etc.

So clearly one would not use a "jwk" JWE header to pass around a JWK 
representation of the key which was used to encrypt the content 
encryption key.

So I'm thinking a JWK is:
- a convenient way to describe a cryptographic key for JWE/JWS 
specifications to refer to it in the spec examples.
- perhaps there's a long-term vision that the key stores would support 
JWK format directly ?
- JWK is a 'container' for various key properties, some of those 
'public' properties can be passed around as a JWE/JWS header;

Am I on the right track, can someone please clarify it further ?

Thanks, Sergey


[1] http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1


From nobody Thu Aug 14 06:25:23 2014
Return-Path: <rlb@ipv.sx>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E3AF1A0438 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 06:25:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 xVGcObeaccw4 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 06:25:18 -0700 (PDT)
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F159A1A001E for <jose@ietf.org>; Thu, 14 Aug 2014 06:25:17 -0700 (PDT)
Received: by mail-ob0-f173.google.com with SMTP id vb8so953209obc.32 for <jose@ietf.org>; Thu, 14 Aug 2014 06:25:17 -0700 (PDT)
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:date :message-id:subject:from:to:cc:content-type; bh=s9YZU7z1qe/2mnhnUneEQZCfU+WrGWNKbZEYGfmtTMs=; b=KKXkpw6tvsyBNFoGmS6/kTEB7XUJAedhfq3KaX1AnXp5g/f7yf3Z7XRx4pHhhqe9BS MyWKKFHTges1XUtGM1U1kjyLk/dqeGvjP8mabkYA7gaGOFlbkwh8MhQ0TqsYOBgHa8hV YASHz2O5biO/xFC5d2qWACMkjBtmhMRbdhV+Ap0Qola7XiQXdx5iEC8I5OafYhnZAx2P AkuafNhNrbkqyYffs+kNAJusS0Y+Wc4rhvbSDOo5T2NSEhWBHgX5WDi9g+CEccb7JzpK taLuiYRqYUkgeWJ/zjh4mZ9Vl/TGgi3Am6eQqh88xSVKlnzfFN4YxbAG4lGoEI64gdOg ukpA==
X-Gm-Message-State: ALoCoQlOVXqne5EJ8NSdBcgzUy5OJDTtXE6zaPFV6wRGYGSCMcfO6GqZi5hL+G3IuVrXPzY5IRfb
MIME-Version: 1.0
X-Received: by 10.182.94.230 with SMTP id df6mr13010074obb.36.1408022717332; Thu, 14 Aug 2014 06:25:17 -0700 (PDT)
Received: by 10.76.106.202 with HTTP; Thu, 14 Aug 2014 06:25:17 -0700 (PDT)
In-Reply-To: <53EC868E.4000000@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com>
Date: Thu, 14 Aug 2014 09:25:17 -0400
Message-ID: <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Sergey Beryozkin <sberyozkin@gmail.com>
Content-Type: multipart/alternative; boundary=e89a8fb1f488e71309050096d5ae
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/iwP7CWLkCqmQ6GWSHJ0UMuxcK0o
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 13:25:20 -0000

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

Hey Sergey,

JWK isn't necessarily tied to JWE or JWS.  It can be used to represent the
public key that was used to encrypt a JWE (so that the recipient can look
up the private key), or the public key that should be used to verify a
JWS.  But it can also be used in other contexts.  For example, WebCrypto
uses JWK (among others) as a format for serializing keys.
https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes

As that link suggests, JWK is effectively the same as the PKCS#8 format for
private keys and the SubjectPublicKeyInfo format for public keys -- just in
JSON instead of ASN.1.  It's a way to ship a key from one place to another,
for whatever reason you need to do that.

Hope that helps,
--Richard





On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin <sberyozkin@gmail.com>
wrote:

> Hi,
>
> This is very likely a newbie question. What is the role of JWK ?
> According to [1] it is "... a (JSON) data structure that represents a
> cryptographic key".
>
> I can see plenty examples of JWK in the JWE specification. JWS and JWE
> headers can have a "jwk" property representing a given JWK.
>
> What confuses me is that the examples in JWE use JWK to describe the
> private parts of a given key. For example, when we talk about the RSA OAEP
> key encryption, JWK would show a private exponent of a given RSA key (JWE
> A1). Same for Aes Wrap secret key (JWE A3). Etc.
>
> So clearly one would not use a "jwk" JWE header to pass around a JWK
> representation of the key which was used to encrypt the content encryption
> key.
>
> So I'm thinking a JWK is:
> - a convenient way to describe a cryptographic key for JWE/JWS
> specifications to refer to it in the spec examples.
> - perhaps there's a long-term vision that the key stores would support JWK
> format directly ?
> - JWK is a 'container' for various key properties, some of those 'public'
> properties can be passed around as a JWE/JWS header;
>
> Am I on the right track, can someone please clarify it further ?
>
> Thanks, Sergey
>
>
> [1] http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

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

<div dir=3D"ltr"><div><div><div>Hey Sergey,<br><br></div>JWK isn&#39;t nece=
ssarily tied to JWE or JWS.=C2=A0 It can be used to represent the public ke=
y that was used to encrypt a JWE (so that the recipient can look up the pri=
vate key), or the public key that should be used to verify a JWS.=C2=A0 But=
 it can also be used in other contexts.=C2=A0 For example, WebCrypto uses J=
WK (among others) as a format for serializing keys.<br>
<a href=3D"https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.=
html#subtlecrypto-interface-datatypes">https://dvcs.w3.org/hg/webcrypto-api=
/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes</a><br>
<br></div>As that link suggests, JWK is effectively the same as the PKCS#8 =
format for private keys and the SubjectPublicKeyInfo format for public keys=
 -- just in JSON instead of ASN.1.=C2=A0 It&#39;s a way to ship a key from =
one place to another, for whatever reason you need to do that.<br>
<br>Hope that helps,<br></div>--Richard<br><div><div><br><br><br></div></di=
v></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Th=
u, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin <span dir=3D"ltr">&lt;<a href=
=3D"mailto:sberyozkin@gmail.com" target=3D"_blank">sberyozkin@gmail.com</a>=
&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<br>
This is very likely a newbie question. What is the role of JWK ?<br>
According to [1] it is &quot;... a (JSON) data structure that represents a =
cryptographic key&quot;.<br>
<br>
I can see plenty examples of JWK in the JWE specification. JWS and JWE head=
ers can have a &quot;jwk&quot; property representing a given JWK.<br>
<br>
What confuses me is that the examples in JWE use JWK to describe the privat=
e parts of a given key. For example, when we talk about the RSA OAEP key en=
cryption, JWK would show a private exponent of a given RSA key (JWE A1). Sa=
me for Aes Wrap secret key (JWE A3). Etc.<br>

<br>
So clearly one would not use a &quot;jwk&quot; JWE header to pass around a =
JWK representation of the key which was used to encrypt the content encrypt=
ion key.<br>
<br>
So I&#39;m thinking a JWK is:<br>
- a convenient way to describe a cryptographic key for JWE/JWS specificatio=
ns to refer to it in the spec examples.<br>
- perhaps there&#39;s a long-term vision that the key stores would support =
JWK format directly ?<br>
- JWK is a &#39;container&#39; for various key properties, some of those &#=
39;public&#39; properties can be passed around as a JWE/JWS header;<br>
<br>
Am I on the right track, can someone please clarify it further ?<br>
<br>
Thanks, Sergey<br>
<br>
<br>
[1] <a href=3D"http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#s=
ection-1" target=3D"_blank">http://tools.ietf.org/html/<u></u>draft-ietf-jo=
se-json-web-key-<u></u>31#section-1</a><br>
<br>
______________________________<u></u>_________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/<u></u>listinfo/jose</a><br>
</blockquote></div><br></div>

--e89a8fb1f488e71309050096d5ae--


From nobody Thu Aug 14 06:43:06 2014
Return-Path: <rlb@ipv.sx>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E31B1A0929 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 06:43:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 iAif-HOQIgqJ for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 06:43:01 -0700 (PDT)
Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8B121A073C for <jose@ietf.org>; Thu, 14 Aug 2014 06:43:01 -0700 (PDT)
Received: by mail-oa0-f52.google.com with SMTP id o6so974959oag.25 for <jose@ietf.org>; Thu, 14 Aug 2014 06:43:01 -0700 (PDT)
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:date :message-id:subject:from:to:cc:content-type; bh=RXSqt4OxFr/JjETW+gmLq0pqDI6fqCkcfgD1rDDawqo=; b=FDHooPhh1hGWHFhYpWqoxPulwn3ZssPyqm1pKdII0/Fdp3pcsMfn+wUXSAHZlBfHqd CHn9a0gv3mZDFgyCyVkD1PBwd4XuPUBWXhh4hkl+CFyeT80TlEWcOGMryUuFKn1kA4/I bZJNRSL1/hTDcY9Zqby2QFKoEABC8HHPEpTzJFHRIaKqFdofd4xU2YgyasdZ7T+8617+ wdisVRCmwD+iX+E2VPeWcp58lXD3CYozVD5k7YQ957ou5SQKzFu7j0JmbqJFYj3ubouV Y5q1tzc2TvAq3s5/m1GT7ZjJHmXZropv4TN83lM9SZRZxqS+7enxAvIrAJzyfeD50N39 hBbA==
X-Gm-Message-State: ALoCoQmlIXoXILI5W+NdFjDCstlafPMyGDWDywyAmh+d/Rt1iBuSvKd1NhDvFToe5tAxqma3Ypy9
MIME-Version: 1.0
X-Received: by 10.60.115.133 with SMTP id jo5mr12808730oeb.39.1408023780965; Thu, 14 Aug 2014 06:43:00 -0700 (PDT)
Received: by 10.76.106.202 with HTTP; Thu, 14 Aug 2014 06:43:00 -0700 (PDT)
In-Reply-To: <1408004416408.82777@certivox.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com>
Date: Thu, 14 Aug 2014 09:43:00 -0400
Message-ID: <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Mike Scott <mike.scott@certivox.com>
Content-Type: multipart/alternative; boundary=089e012953444cda3705009715b8
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/1Mn8ZohoPVz-WGlntyd6gZvEhYc
Cc: Trevor Perrin <trevp@trevp.net>, Daniel Holth <dholth@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 13:43:04 -0000

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

I think it has to be a new "kty" value, unless the Curve25519 crowd are
willing to do conversion from little-endian to big.  If that's the case, we
could update the "EC" spec to say that "y" is optional in cases where there
is no ambiguity.

It would be very much preferable, however, to keep this on ice until the
CFRG debate settles.  There appear to be all sorts of slight variations in
how these new curves like to represent points, so it will be helpful to
have a more consolidated set of targets, so that we don't have to come up
with N point formats.  It would also be helpful if the proponents of the
various curves could lay down their weapons for a second and agree on a
format that works for all of them.

--Richard


On Thu, Aug 14, 2014 at 4:22 AM, Mike Scott <mike.scott@certivox.com> wrote=
:

> Be careful not to confuse Ed25519 with Curve25519. The former uses Edward=
s
> coordinates in which case (x,y) coordinates are appropriate. The latter
> uses Montgomery coordinates, which only require an x coordinate for the
> special case of an implementation of the Diffie-Hellman key exchange.
>
> In fact all coordinate systems can use a "compressed" form of just x and
> at most 1 bit to indicate the sign of y (recall that x and y are related
> via the curve equation). However compression (or some forms of it) was
> patented, and hence avoided. However I believe that patent has now lapsed
> (?) As I recall IEEE1363 supports a compressed representation of points.
>
> Also "decompression" has a cost associated with it, although this doesn't
> arise for Curve25519 where it is never required to recover the y coordina=
te
>
>
> Mike Scott
>
> ________________________________________
> From: jose <jose-bounces@ietf.org> on behalf of Daniel Holth <
> dholth@gmail.com>
> Sent: 14 August 2014 03:20
> To: Mike Jones
> Cc: Trevor Perrin; jose@ietf.org
> Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
>
> On Wed, Aug 13, 2014 at 9:39 PM, Mike Jones <Michael.Jones@microsoft.com>
> wrote:
> > It has come up in recent discussions in the CRFG, the W3C WebCrypto
> working
> > group, and the TLS working group that not all elliptic curves or curve
> > protocols use two coordinates (x and y) in their public key
> representations.
> > For instance, a Curve25519 public key is a single 32-byte value.
>  Especially
> > in light of the request by TLS to the CRFG to recommend new curves, and
> that
> > some of the curves in consideration use only a single value in their
> public
> > key representation, I believe that JOSE should consider how to represen=
t
> > such keys as JWKs.
> >
> >
> >
> > I see there being two logical ways to address this:
> >
> >
> >
> > CHOICE 1 =E2=80=93 MAKE THE =E2=80=9CEC=E2=80=9D KEY TYPE MORE FLEXIBLE=
:  One obvious
> possibility is
> > to make it a property of the =E2=80=9Ccrv=E2=80=9D parameter for JWKs w=
ith =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D
> what
> > fields are required.  So for instance, when =E2=80=9Ccrv=E2=80=9D is =
=E2=80=9CP-256=E2=80=9D, =E2=80=9CP-384=E2=80=9D, or
> > =E2=80=9CP-521=E2=80=9D, both =E2=80=9Cx=E2=80=9D and =E2=80=9Cy=E2=80=
=9D members would be used, but other curves might
> use
> > a different set of members, such as just =E2=80=9Cx=E2=80=9D for public=
 keys.
> >
> >
> >
> > CHOICE 2 =E2=80=93 USE A DIFFERENT KEY TYPE:  Another possibility is to=
 leave the
> > =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D definition as it is but to =
define a related =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC1=E2=80=9D
> value
> > to be used by elliptic curves for which only one value =E2=80=9Cx=E2=80=
=9D is used in the
> > public key representation and an additional value =E2=80=9Cd=E2=80=9D i=
s used in the
> private
> > key representation.
> >
> >
> >
> > Within choice 2, there are actually two sub-choices available to us:
> >
> >
> >
> > CHOICE 2A =E2=80=93 DEFINE A NEW KEY TYPE VALUE IN JWA NOW:  If we thin=
k that
> there
> > are only two kinds of elliptic curve key representations that we will
> ever
> > care about, we could define the second one in JWA now.  However, this
> would
> > almost certainly start a debate within JOSE about whether we should add
> any
> > additional curve definitions using this new key type.  If we do, it
> should
> > almost certainly be because we have followed the CFRG=E2=80=99s and TLS=
=E2=80=99s lead in
> > the new curve choices, although doing so would almost certainly further
> > delay our completion.
> >
> > CHOICE 2B =E2=80=93 DEFINE THE NEW KEY TYPE IN A NEW SPEC:   This could=
 be done
> by
> > writing an individual draft that registers =E2=80=9Ckty=E2=80=9D: =E2=
=80=9CEC1=E2=80=9D and later
> possibly
> > adopting it as a working group item.  This would allow our current spec=
s
> to
> > proceed as-is, while giving us time to sync with CFRG and TLS as their
> curve
> > choices move forwards.
> >
> >
> >
> > One additional pesky detail worth noting is that the normal Curve25519
> key
> > representation uses little-endian 32-bit numbers whereas SEC1 (which we
> use
> > for =E2=80=9Cx=E2=80=9D, =E2=80=9Cy=E2=80=9D, and =E2=80=9Cd=E2=80=9D) =
uses big-endian numbers.  So for any of these
> choices
> > above, we=E2=80=99d also have to decide whether to allow different curv=
es to
> specify
> > different endianness, require all to use big-endian representations, or
> to
> > say that for some curves, the value is an octet array of a given size
> and be
> > silent on endianness.
> >
> >
> >
> > While I=E2=80=99m reluctant to even bring this up at this point in the
> development
> > of our specs, I also don=E2=80=99t want those designing potential appli=
cations of
> > JWKs to believe that their choices of curves are limited by decisions
> that
> > JOSE has made.  It=E2=80=99s clear that JWK can be extended to accommod=
ate curves
> > using only a single value in their public key representations.
> >
> >
> >
> > How do you think we should do that?
> >
> >
> >
> >                                                                 -- Mike
> >
> >
> >
> > P.S.  Thanks to Trevor Perrin for private discussions that informed som=
e
> of
> > the contents of this note.
>
> I didn't find the existing spec a burden. My JWK-derived system uses {
> "kty" : "Ed25519", vk : "the base64url-encoded verifying key" } and
> uses "Ed25519" as alg as well. (In the less necessary JWK private key
> representation "sk" : "..." is used for the secret part).
>
> Is there some economy that makes it desirable to have a Ed25519 JWK
> look similar to any other elliptic curve key that only uses one
> (opaque?) parameter? The constant-time implementation (no secret
> branching) is monolithic, specialized to that curve and is not built
> out of reconfigurable pieces.
>
> Curve1174 "Elligator" is another elliptic curve system by DJB etc.
> that looks like it shares some of the attributes of Ed25519.
>
> Daniel Holth
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

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

<div dir=3D"ltr"><div><div>I think it has to be a new &quot;kty&quot; value=
, unless the Curve25519 crowd are willing to do conversion from little-endi=
an to big.=C2=A0 If that&#39;s the case, we could update the &quot;EC&quot;=
 spec to say that &quot;y&quot; is optional in cases where there is no ambi=
guity.<br>
<br></div>It would be very much preferable, however, to keep this on ice un=
til the CFRG debate settles.=C2=A0 There appear to be all sorts of slight v=
ariations in how these new curves like to represent points, so it will be h=
elpful to have a more consolidated set of targets, so that we don&#39;t hav=
e to come up with N point formats.=C2=A0 It would also be helpful if the pr=
oponents of the various curves could lay down their weapons for a second an=
d agree on a format that works for all of them.<br>
<br></div>--Richard<br></div><div class=3D"gmail_extra"><br><br><div class=
=3D"gmail_quote">On Thu, Aug 14, 2014 at 4:22 AM, Mike Scott <span dir=3D"l=
tr">&lt;<a href=3D"mailto:mike.scott@certivox.com" target=3D"_blank">mike.s=
cott@certivox.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Be careful not to confuse Ed25519 with Curve=
25519. The former uses Edwards coordinates in which case (x,y) coordinates =
are appropriate. The latter uses Montgomery coordinates, which only require=
 an x coordinate for the special case of an implementation of the Diffie-He=
llman key exchange.<br>

<br>
In fact all coordinate systems can use a &quot;compressed&quot; form of jus=
t x and at most 1 bit to indicate the sign of y (recall that x and y are re=
lated via the curve equation). However compression (or some forms of it) wa=
s patented, and hence avoided. However I believe that patent has now lapsed=
 (?) As I recall IEEE1363 supports a compressed representation of points.<b=
r>

<br>
Also &quot;decompression&quot; has a cost associated with it, although this=
 doesn&#39;t arise for Curve25519 where it is never required to recover the=
 y coordinate<br>
<br>
<br>
Mike Scott<br>
<br>
________________________________________<br>
From: jose &lt;<a href=3D"mailto:jose-bounces@ietf.org">jose-bounces@ietf.o=
rg</a>&gt; on behalf of Daniel Holth &lt;<a href=3D"mailto:dholth@gmail.com=
">dholth@gmail.com</a>&gt;<br>
Sent: 14 August 2014 03:20<br>
To: Mike Jones<br>
Cc: Trevor Perrin; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves<b=
r>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
On Wed, Aug 13, 2014 at 9:39 PM, Mike Jones &lt;<a href=3D"mailto:Michael.J=
ones@microsoft.com">Michael.Jones@microsoft.com</a>&gt; wrote:<br>
&gt; It has come up in recent discussions in the CRFG, the W3C WebCrypto wo=
rking<br>
&gt; group, and the TLS working group that not all elliptic curves or curve=
<br>
&gt; protocols use two coordinates (x and y) in their public key representa=
tions.<br>
&gt; For instance, a Curve25519 public key is a single 32-byte value. =C2=
=A0Especially<br>
&gt; in light of the request by TLS to the CRFG to recommend new curves, an=
d that<br>
&gt; some of the curves in consideration use only a single value in their p=
ublic<br>
&gt; key representation, I believe that JOSE should consider how to represe=
nt<br>
&gt; such keys as JWKs.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I see there being two logical ways to address this:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; CHOICE 1 =E2=80=93 MAKE THE =E2=80=9CEC=E2=80=9D KEY TYPE MORE FLEXIBL=
E: =C2=A0One obvious possibility is<br>
&gt; to make it a property of the =E2=80=9Ccrv=E2=80=9D parameter for JWKs =
with =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D what<br>
&gt; fields are required. =C2=A0So for instance, when =E2=80=9Ccrv=E2=80=9D=
 is =E2=80=9CP-256=E2=80=9D, =E2=80=9CP-384=E2=80=9D, or<br>
&gt; =E2=80=9CP-521=E2=80=9D, both =E2=80=9Cx=E2=80=9D and =E2=80=9Cy=E2=80=
=9D members would be used, but other curves might use<br>
&gt; a different set of members, such as just =E2=80=9Cx=E2=80=9D for publi=
c keys.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; CHOICE 2 =E2=80=93 USE A DIFFERENT KEY TYPE: =C2=A0Another possibility=
 is to leave the<br>
&gt; =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC=E2=80=9D definition as it is but to=
 define a related =E2=80=9Ckty=E2=80=9D: =E2=80=9CEC1=E2=80=9D value<br>
&gt; to be used by elliptic curves for which only one value =E2=80=9Cx=E2=
=80=9D is used in the<br>
&gt; public key representation and an additional value =E2=80=9Cd=E2=80=9D =
is used in the private<br>
&gt; key representation.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Within choice 2, there are actually two sub-choices available to us:<b=
r>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; CHOICE 2A =E2=80=93 DEFINE A NEW KEY TYPE VALUE IN JWA NOW: =C2=A0If w=
e think that there<br>
&gt; are only two kinds of elliptic curve key representations that we will =
ever<br>
&gt; care about, we could define the second one in JWA now. =C2=A0However, =
this would<br>
&gt; almost certainly start a debate within JOSE about whether we should ad=
d any<br>
&gt; additional curve definitions using this new key type. =C2=A0If we do, =
it should<br>
&gt; almost certainly be because we have followed the CFRG=E2=80=99s and TL=
S=E2=80=99s lead in<br>
&gt; the new curve choices, although doing so would almost certainly furthe=
r<br>
&gt; delay our completion.<br>
&gt;<br>
&gt; CHOICE 2B =E2=80=93 DEFINE THE NEW KEY TYPE IN A NEW SPEC: =C2=A0 This=
 could be done by<br>
&gt; writing an individual draft that registers =E2=80=9Ckty=E2=80=9D: =E2=
=80=9CEC1=E2=80=9D and later possibly<br>
&gt; adopting it as a working group item. =C2=A0This would allow our curren=
t specs to<br>
&gt; proceed as-is, while giving us time to sync with CFRG and TLS as their=
 curve<br>
&gt; choices move forwards.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; One additional pesky detail worth noting is that the normal Curve25519=
 key<br>
&gt; representation uses little-endian 32-bit numbers whereas SEC1 (which w=
e use<br>
&gt; for =E2=80=9Cx=E2=80=9D, =E2=80=9Cy=E2=80=9D, and =E2=80=9Cd=E2=80=9D)=
 uses big-endian numbers. =C2=A0So for any of these choices<br>
&gt; above, we=E2=80=99d also have to decide whether to allow different cur=
ves to specify<br>
&gt; different endianness, require all to use big-endian representations, o=
r to<br>
&gt; say that for some curves, the value is an octet array of a given size =
and be<br>
&gt; silent on endianness.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; While I=E2=80=99m reluctant to even bring this up at this point in the=
 development<br>
&gt; of our specs, I also don=E2=80=99t want those designing potential appl=
ications of<br>
&gt; JWKs to believe that their choices of curves are limited by decisions =
that<br>
&gt; JOSE has made. =C2=A0It=E2=80=99s clear that JWK can be extended to ac=
commodate curves<br>
&gt; using only a single value in their public key representations.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; How do you think we should do that?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 -- Mike<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; P.S. =C2=A0Thanks to Trevor Perrin for private discussions that inform=
ed some of<br>
&gt; the contents of this note.<br>
<br>
I didn&#39;t find the existing spec a burden. My JWK-derived system uses {<=
br>
&quot;kty&quot; : &quot;Ed25519&quot;, vk : &quot;the base64url-encoded ver=
ifying key&quot; } and<br>
uses &quot;Ed25519&quot; as alg as well. (In the less necessary JWK private=
 key<br>
representation &quot;sk&quot; : &quot;...&quot; is used for the secret part=
).<br>
<br>
Is there some economy that makes it desirable to have a Ed25519 JWK<br>
look similar to any other elliptic curve key that only uses one<br>
(opaque?) parameter? The constant-time implementation (no secret<br>
branching) is monolithic, specialized to that curve and is not built<br>
out of reconfigurable pieces.<br>
<br>
Curve1174 &quot;Elligator&quot; is another elliptic curve system by DJB etc=
.<br>
that looks like it shares some of the attributes of Ed25519.<br>
<br>
Daniel Holth<br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br>
_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
</div></div></blockquote></div><br></div>

--089e012953444cda3705009715b8--


From nobody Thu Aug 14 07:43:39 2014
Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 87DE11A212D for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 07:43:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.568
X-Spam-Level: 
X-Spam-Status: No, score=-2.568 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.668] 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 nQnMhfV9vE32 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 07:43:35 -0700 (PDT)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) by ietfa.amsl.com (Postfix) with ESMTP id 1C66E1A0242 for <jose@ietf.org>; Thu, 14 Aug 2014 07:43:35 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 828C0BE98; Thu, 14 Aug 2014 15:43:34 +0100 (IST)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HGzOo1Y32iI4; Thu, 14 Aug 2014 15:43:33 +0100 (IST)
Received: from [10.87.48.11] (unknown [86.41.62.194]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 14F0BBE9A; Thu, 14 Aug 2014 15:43:33 +0100 (IST)
Message-ID: <53ECCB12.2080505@cs.tcd.ie>
Date: Thu, 14 Aug 2014 15:43:30 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Richard Barnes <rlb@ipv.sx>, Mike Scott <mike.scott@certivox.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com>
In-Reply-To: <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/dRqYvO7zMISIzIiTIo0YmDaxStQ
Cc: Trevor Perrin <trevp@trevp.net>, Daniel Holth <dholth@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 14:43:37 -0000

On 14/08/14 14:43, Richard Barnes wrote:
> It would be very much preferable, however, to keep this on ice until the
> CFRG debate settles. 

Yep. That'd be sensible. Time enough when CFRG have
produced a result.

S.


From nobody Thu Aug 14 08:05:43 2014
Return-Path: <jricher@mitre.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A0E331A6F0E for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 08:05:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.867
X-Spam-Level: 
X-Spam-Status: No, score=-4.867 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.668] 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 1syUPeaIHzFD for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 08:05:38 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id F171E1A6F0B for <jose@ietf.org>; Thu, 14 Aug 2014 08:05:37 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 528DE1F04DE; Thu, 14 Aug 2014 11:05:37 -0400 (EDT)
Received: from IMCCAS03.MITRE.ORG (imccas03.mitre.org [129.83.29.80]) by smtpksrv1.mitre.org (Postfix) with ESMTP id 2C1EA1F0462; Thu, 14 Aug 2014 11:05:37 -0400 (EDT)
Received: from [10.146.15.61] (10.140.19.249) by IMCCAS03.MITRE.ORG (129.83.29.80) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 14 Aug 2014 11:05:36 -0400
Message-ID: <53ECCFF8.9090305@mitre.org>
Date: Thu, 14 Aug 2014 11:04:24 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Richard Barnes <rlb@ipv.sx>, Sergey Beryozkin <sberyozkin@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com>
In-Reply-To: <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------080001050905020907090200"
X-Originating-IP: [10.140.19.249]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/s3Q0adMtslufr0Bja-kqGP0bE_E
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 15:05:41 -0000

--------------080001050905020907090200
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 7bit

Services are starting to publish their public keys as JWK instead of 
X509, since a JWK doesn't require a trusted CA and can be much more 
easily rotated at runtime. This is the class from our OAuth/OpenID 
Connect system that builds signers and validators off of a public-key 
JWK (using the Nimbus-DS JOSE library):

    https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java


To add to that, with the private/shared key components of JWK, it can be 
a very effective key store. Our OAuth server uses this for its keys, 
this is the class that reads the file and makes the keys available as 
Java key objects to the rest of the system:

    https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java

As you can see, these are both exceedingly simple classes because they 
simple read the URL (in the first case) or file (in the second case) and 
parse the JSON found there into a JWK set, which is then used to create 
the bare keys in the Java security framework. This is the RSA public key 
parser for example:

    https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395


Finally, in order to make these keys more easy to deal with, we wrote a 
simple key generator program that will spin up a new RSA, EC, or Oct key 
and print it out as a JWK:

    https://github.com/mitreid-connect/json-web-key-generator


Whenever we deploy a new copy of our server somewhere, we also pull down 
this program and run it to generate a new JWK key set (with public and 
private keys) that we use to start up the server. The alternative, which 
we used to do, was to use OpenSSL to generate a self-signed X509 
certificate that we effectively threw away the trust chain for -- lots 
of extra effort to create information that we didn't want and then 
ignore it on the far end, all to get a simple keypair. It was 
unnecessarily complex from all ends, and the switch to JWK has been much 
nicer to deal with.

  -- Justin

On 08/14/2014 09:25 AM, Richard Barnes wrote:
> Hey Sergey,
>
> JWK isn't necessarily tied to JWE or JWS.  It can be used to represent 
> the public key that was used to encrypt a JWE (so that the recipient 
> can look up the private key), or the public key that should be used to 
> verify a JWS.  But it can also be used in other contexts.  For 
> example, WebCrypto uses JWK (among others) as a format for serializing 
> keys.
> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes
>
> As that link suggests, JWK is effectively the same as the PKCS#8 
> format for private keys and the SubjectPublicKeyInfo format for public 
> keys -- just in JSON instead of ASN.1.  It's a way to ship a key from 
> one place to another, for whatever reason you need to do that.
>
> Hope that helps,
> --Richard
>
>
>
>
>
> On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin 
> <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>> wrote:
>
>     Hi,
>
>     This is very likely a newbie question. What is the role of JWK ?
>     According to [1] it is "... a (JSON) data structure that
>     represents a cryptographic key".
>
>     I can see plenty examples of JWK in the JWE specification. JWS and
>     JWE headers can have a "jwk" property representing a given JWK.
>
>     What confuses me is that the examples in JWE use JWK to describe
>     the private parts of a given key. For example, when we talk about
>     the RSA OAEP key encryption, JWK would show a private exponent of
>     a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A3). Etc.
>
>     So clearly one would not use a "jwk" JWE header to pass around a
>     JWK representation of the key which was used to encrypt the
>     content encryption key.
>
>     So I'm thinking a JWK is:
>     - a convenient way to describe a cryptographic key for JWE/JWS
>     specifications to refer to it in the spec examples.
>     - perhaps there's a long-term vision that the key stores would
>     support JWK format directly ?
>     - JWK is a 'container' for various key properties, some of those
>     'public' properties can be passed around as a JWE/JWS header;
>
>     Am I on the right track, can someone please clarify it further ?
>
>     Thanks, Sergey
>
>
>     [1]
>     http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>
>     _______________________________________________
>     jose mailing list
>     jose@ietf.org <mailto:jose@ietf.org>
>     https://www.ietf.org/mailman/listinfo/jose
>
>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--------------080001050905020907090200
Content-Type: text/html; charset="windows-1252"
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Services are starting to publish their public keys as JWK instead of
    X509, since a JWK doesn't require a trusted CA and can be much more
    easily rotated at runtime. This is the class from our OAuth/OpenID
    Connect system that builds signers and validators off of a
    public-key JWK (using the Nimbus-DS JOSE library):<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java">https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java</a><br>
    </blockquote>
    <br>
    To add to that, with the private/shared key components of JWK, it
    can be a very effective key store. Our OAuth server uses this for
    its keys, this is the class that reads the file and makes the keys
    available as Java key objects to the rest of the system:<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java">https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java</a><br>
      <br>
    </blockquote>
    As you can see, these are both exceedingly simple classes because
    they simple read the URL (in the first case) or file (in the second
    case) and parse the JSON found there into a JWK set, which is then
    used to create the bare keys in the Java security framework. This is
    the RSA public key parser for example:<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395">https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395</a><br>
    </blockquote>
    <br>
    Finally, in order to make these keys more easy to deal with, we
    wrote a simple key generator program that will spin up a new RSA,
    EC, or Oct key and print it out as a JWK:<br>
    <br>
    <blockquote><a class="moz-txt-link-freetext" href="https://github.com/mitreid-connect/json-web-key-generator">https://github.com/mitreid-connect/json-web-key-generator</a><br>
    </blockquote>
    <br>
    Whenever we deploy a new copy of our server somewhere, we also pull
    down this program and run it to generate a new JWK key set (with
    public and private keys) that we use to start up the server. The
    alternative, which we used to do, was to use OpenSSL to generate a
    self-signed X509 certificate that we effectively threw away the
    trust chain for -- lots of extra effort to create information that
    we didn't want and then ignore it on the far end, all to get a
    simple keypair. It was unnecessarily complex from all ends, and the
    switch to JWK has been much nicer to deal with.<br>
    <br>
     -- Justin<br>
    <br>
    <div class="moz-cite-prefix">On 08/14/2014 09:25 AM, Richard Barnes
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div>
          <div>
            <div>Hey Sergey,<br>
              <br>
            </div>
            JWK isn't necessarily tied to JWE or JWS.  It can be used to
            represent the public key that was used to encrypt a JWE (so
            that the recipient can look up the private key), or the
            public key that should be used to verify a JWS.  But it can
            also be used in other contexts.  For example, WebCrypto uses
            JWK (among others) as a format for serializing keys.<br>
            <a moz-do-not-send="true"
href="https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes">https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes</a><br>
            <br>
          </div>
          As that link suggests, JWK is effectively the same as the
          PKCS#8 format for private keys and the SubjectPublicKeyInfo
          format for public keys -- just in JSON instead of ASN.1.  It's
          a way to ship a key from one place to another, for whatever
          reason you need to do that.<br>
          <br>
          Hope that helps,<br>
        </div>
        --Richard<br>
        <div>
          <div><br>
            <br>
            <br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Aug 14, 2014 at 5:51 AM, Sergey
          Beryozkin <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:sberyozkin@gmail.com" target="_blank">sberyozkin@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            This is very likely a newbie question. What is the role of
            JWK ?<br>
            According to [1] it is "... a (JSON) data structure that
            represents a cryptographic key".<br>
            <br>
            I can see plenty examples of JWK in the JWE specification.
            JWS and JWE headers can have a "jwk" property representing a
            given JWK.<br>
            <br>
            What confuses me is that the examples in JWE use JWK to
            describe the private parts of a given key. For example, when
            we talk about the RSA OAEP key encryption, JWK would show a
            private exponent of a given RSA key (JWE A1). Same for Aes
            Wrap secret key (JWE A3). Etc.<br>
            <br>
            So clearly one would not use a "jwk" JWE header to pass
            around a JWK representation of the key which was used to
            encrypt the content encryption key.<br>
            <br>
            So I'm thinking a JWK is:<br>
            - a convenient way to describe a cryptographic key for
            JWE/JWS specifications to refer to it in the spec examples.<br>
            - perhaps there's a long-term vision that the key stores
            would support JWK format directly ?<br>
            - JWK is a 'container' for various key properties, some of
            those 'public' properties can be passed around as a JWE/JWS
            header;<br>
            <br>
            Am I on the right track, can someone please clarify it
            further ?<br>
            <br>
            Thanks, Sergey<br>
            <br>
            <br>
            [1] <a moz-do-not-send="true"
href="http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1"
              target="_blank">http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1</a><br>
            <br>
            _______________________________________________<br>
            jose mailing list<br>
            <a moz-do-not-send="true" href="mailto:jose@ietf.org"
              target="_blank">jose@ietf.org</a><br>
            <a moz-do-not-send="true"
              href="https://www.ietf.org/mailman/listinfo/jose"
              target="_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jose mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jose@ietf.org">jose@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/jose">https://www.ietf.org/mailman/listinfo/jose</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------080001050905020907090200--


From nobody Thu Aug 14 08:46:59 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ED3811A07B3 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 08:46:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 WqFMm7cxEGQt for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 08:46:57 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0181.outbound.protection.outlook.com [207.46.163.181]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ABB811A0770 for <jose@ietf.org>; Thu, 14 Aug 2014 08:46:56 -0700 (PDT)
Received: from BN3PR0301CA0066.namprd03.prod.outlook.com (25.160.152.162) by BY2PR0301MB0678.namprd03.prod.outlook.com (25.160.63.145) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 15:46:54 +0000
Received: from BN1BFFO11FD027.protection.gbl (2a01:111:f400:7c10::1:128) by BN3PR0301CA0066.outlook.office365.com (2a01:111:e400:401e::34) with Microsoft SMTP Server (TLS) id 15.0.1005.10 via Frontend Transport; Thu, 14 Aug 2014 15:46:53 +0000
Received: from mail.microsoft.com (131.107.125.37) by BN1BFFO11FD027.mail.protection.outlook.com (10.58.144.90) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Thu, 14 Aug 2014 15:46:53 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC105.redmond.corp.microsoft.com ([157.54.80.48]) with mapi id 14.03.0195.002; Thu, 14 Aug 2014 15:46:05 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>, Richard Barnes <rlb@ipv.sx>
Thread-Topic: [jose] JWK Elliptic Curve key representations and new curves
Thread-Index: Ac+3YKPoN/N5liajT+icFbBFv1/9ngABbE4AAAxFxU4AC49dAAACHOoAAAIhNPA=
Date: Thu, 14 Aug 2014 15:46:04 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE1A9AF@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie>
In-Reply-To: <53ECCB12.2080505@cs.tcd.ie>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.35]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(199003)(24454002)(479174003)(13464003)(377454003)(189002)(19580405001)(99396002)(21056001)(84676001)(33656002)(95666004)(74502001)(46102001)(26826002)(54356999)(86612001)(93886004)(87936001)(2656002)(76176999)(85306004)(77096002)(6806004)(64706001)(83072002)(104016003)(76482001)(23676002)(4396001)(81156004)(31966008)(86362001)(47776003)(55846006)(107046002)(80022001)(66066001)(19580395003)(69596002)(79102001)(68736004)(92566001)(85852003)(74662001)(106466001)(44976005)(97736001)(83322001)(92726001)(20776003)(50986999)(81542001)(50466002)(81342001)(77982001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR0301MB0678; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 03030B9493
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/-VM4b48A1GFKl1j4SmBipWFlXJs
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 15:46:59 -0000

VGhhdCdzIGZpbmUgd2l0aCBtZS4gIEkgbWFpbmx5IHdhbnRlZCB0byBtYWtlIHRoZSB3b3JraW5n
IGdyb3VwIGF3YXJlIG9mIHRoaXMgc28gdGhleSBjb3VsZCBzdGFydCB0aGlua2luZyBhYm91dCBp
dC4NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFN0ZXBoZW4gRmFycmVsbCBb
bWFpbHRvOnN0ZXBoZW4uZmFycmVsbEBjcy50Y2QuaWVdIA0KU2VudDogVGh1cnNkYXksIEF1Z3Vz
dCAxNCwgMjAxNCA3OjQ0IEFNDQpUbzogUmljaGFyZCBCYXJuZXM7IE1pa2UgU2NvdHQNCkNjOiBU
cmV2b3IgUGVycmluOyBEYW5pZWwgSG9sdGg7IE1pa2UgSm9uZXM7IGpvc2VAaWV0Zi5vcmcNClN1
YmplY3Q6IFJlOiBbam9zZV0gSldLIEVsbGlwdGljIEN1cnZlIGtleSByZXByZXNlbnRhdGlvbnMg
YW5kIG5ldyBjdXJ2ZXMNCg0KDQoNCk9uIDE0LzA4LzE0IDE0OjQzLCBSaWNoYXJkIEJhcm5lcyB3
cm90ZToNCj4gSXQgd291bGQgYmUgdmVyeSBtdWNoIHByZWZlcmFibGUsIGhvd2V2ZXIsIHRvIGtl
ZXAgdGhpcyBvbiBpY2UgdW50aWwgDQo+IHRoZSBDRlJHIGRlYmF0ZSBzZXR0bGVzLg0KDQpZZXAu
IFRoYXQnZCBiZSBzZW5zaWJsZS4gVGltZSBlbm91Z2ggd2hlbiBDRlJHIGhhdmUgcHJvZHVjZWQg
YSByZXN1bHQuDQoNClMuDQo=


From nobody Thu Aug 14 09:42:39 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 687251A0409 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 09:42:37 -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 nSGe-PzqHoIW for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 09:42:34 -0700 (PDT)
Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3FC5B1A08A9 for <jose@ietf.org>; Thu, 14 Aug 2014 09:42:34 -0700 (PDT)
Received: by mail-we0-f173.google.com with SMTP id q58so1345162wes.18 for <jose@ietf.org>; Thu, 14 Aug 2014 09:42:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Iq3guZzmzoGcmi/7S/qtZd7d/VeWoZhinHXt3B9vaZQ=; b=oXqPbAt1vGAKI9BecPvTxY0ZsJd2yJsyuUdpePnSHq996IGoLAG+RRV/E3oc4K5Jql kgvICmABKK4qtQqLRfp5uhawg+zOLUueVCERk5muiZQ3Q1jKTLvsQkHIYNvWFGpseXJY CjZcNAaxiZbzWgfyYSuYUxIM+zqarjTJxocx/KOE4CMUdcc9pIDQrKwlSpGi0/WkWi2K mB3vlCus1WN0I4+Q2jdRCGYiuJUzdV17oERQRyc4dWj9H6ppHM8q7/lKfRA72s1q+M4a TlgELX9WJqxeIq3JSUeJwQTHnbnaJrB4AbAcqmuQCKOFGitlWr+At1bottGhxQtCC5Ie Mh/w==
X-Received: by 10.194.90.114 with SMTP id bv18mr13978414wjb.63.1408034552767;  Thu, 14 Aug 2014 09:42:32 -0700 (PDT)
Received: from [192.168.2.7] ([109.255.231.6]) by mx.google.com with ESMTPSA id bt9sm12490199wjc.40.2014.08.14.09.42.31 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 09:42:32 -0700 (PDT)
Message-ID: <53ECE6F6.8000400@gmail.com>
Date: Thu, 14 Aug 2014 17:42:30 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Justin Richer <jricher@mitre.org>, Richard Barnes <rlb@ipv.sx>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org>
In-Reply-To: <53ECCFF8.9090305@mitre.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/7G8yT2z3P32H2-sQFXO2a4POL_I
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 16:42:37 -0000

Hi Richard and Justin

Very helpful, many thanks !

Richard: thanks for the link, the idea of using JWK as a standard medium 
for shipping the key (information) is something that helps to understand 
why JWK is referred to so much in the specifications like JWE/JWS

Justin: I'll try my best not to copy the Java code you linked too :-).

Thanks for links to the examples, let me ask few questions below:

On 14/08/14 16:04, Justin Richer wrote:
> Services are starting to publish their public keys as JWK instead of
> X509, since a JWK doesn't require a trusted CA and can be much more
> easily rotated at runtime.
Sorry if it is off-topic, is JWK representing a public key (the public 
exponent) is effectively a self-signed public key/cert ? What provides 
the extra trust into such JWK ? I've heard here about JWK Thumbprints ?

> This is the class from our OAuth/OpenID
> Connect system that builds signers and validators off of a public-key
> JWK (using the Nimbus-DS JOSE library):
>
>     https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java
>
>
> To add to that, with the private/shared key components of JWK, it can be
> a very effective key store. Our OAuth server uses this for its keys,
> this is the class that reads the file and makes the keys available as
> Java key objects to the rest of the system:
>
>     https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java
>
> As you can see, these are both exceedingly simple classes because they
> simple read the URL (in the first case) or file (in the second case) and
> parse the JSON found there into a JWK set, which is then used to create
> the bare keys in the Java security framework. This is the RSA public key
> parser for example:
>
>     https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395
>
>
> Finally, in order to make these keys more easy to deal with, we wrote a
> simple key generator program that will spin up a new RSA, EC, or Oct key
> and print it out as a JWK:
>
>     https://github.com/mitreid-connect/json-web-key-generator
>
>
> Whenever we deploy a new copy of our server somewhere, we also pull down
> this program and run it to generate a new JWK key set (with public and
> private keys) that we use to start up the server. The alternative, which
> we used to do, was to use OpenSSL to generate a self-signed X509
> certificate that we effectively threw away the trust chain for -- lots
> of extra effort to create information that we didn't want and then
> ignore it on the far end, all to get a simple keypair. It was
> unnecessarily complex from all ends, and the switch to JWK has been much
> nicer to deal with.
>
Is the simplicity of making a demo application running fast a major 
factor of preferring JWK to self-signed X509  ? What about the 
synchronization between the existing X509-based key storage and the new 
JWK-aware storages ?

Thanks, Sergey

>   -- Justin
>
> On 08/14/2014 09:25 AM, Richard Barnes wrote:
>> Hey Sergey,
>>
>> JWK isn't necessarily tied to JWE or JWS.  It can be used to represent
>> the public key that was used to encrypt a JWE (so that the recipient
>> can look up the private key), or the public key that should be used to
>> verify a JWS.  But it can also be used in other contexts.  For
>> example, WebCrypto uses JWK (among others) as a format for serializing
>> keys.
>> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes
>>
>> As that link suggests, JWK is effectively the same as the PKCS#8
>> format for private keys and the SubjectPublicKeyInfo format for public
>> keys -- just in JSON instead of ASN.1.  It's a way to ship a key from
>> one place to another, for whatever reason you need to do that.
>>
>> Hope that helps,
>> --Richard
>>
>>
>>
>>
>>
>> On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>> <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>> wrote:
>>
>>     Hi,
>>
>>     This is very likely a newbie question. What is the role of JWK ?
>>     According to [1] it is "... a (JSON) data structure that
>>     represents a cryptographic key".
>>
>>     I can see plenty examples of JWK in the JWE specification. JWS and
>>     JWE headers can have a "jwk" property representing a given JWK.
>>
>>     What confuses me is that the examples in JWE use JWK to describe
>>     the private parts of a given key. For example, when we talk about
>>     the RSA OAEP key encryption, JWK would show a private exponent of
>>     a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A3). Etc.
>>
>>     So clearly one would not use a "jwk" JWE header to pass around a
>>     JWK representation of the key which was used to encrypt the
>>     content encryption key.
>>
>>     So I'm thinking a JWK is:
>>     - a convenient way to describe a cryptographic key for JWE/JWS
>>     specifications to refer to it in the spec examples.
>>     - perhaps there's a long-term vision that the key stores would
>>     support JWK format directly ?
>>     - JWK is a 'container' for various key properties, some of those
>>     'public' properties can be passed around as a JWE/JWS header;
>>
>>     Am I on the right track, can someone please clarify it further ?
>>
>>     Thanks, Sergey
>>
>>
>>     [1]
>>     http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>>
>>     _______________________________________________
>>     jose mailing list
>>     jose@ietf.org <mailto:jose@ietf.org>
>>     https://www.ietf.org/mailman/listinfo/jose
>>
>>
>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>


From nobody Thu Aug 14 10:16:03 2014
Return-Path: <jricher@mitre.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 91DE51A6F53 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:16:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.868
X-Spam-Level: 
X-Spam-Status: No, score=-4.868 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.668] 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 Awv98rEp8YCm for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:15:58 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id CC5A51A090B for <jose@ietf.org>; Thu, 14 Aug 2014 10:15:58 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 4ED621F0A2B; Thu, 14 Aug 2014 13:15:58 -0400 (EDT)
Received: from IMCCAS03.MITRE.ORG (imccas03.mitre.org [129.83.29.80]) by smtpksrv1.mitre.org (Postfix) with ESMTP id 321891F0A28; Thu, 14 Aug 2014 13:15:58 -0400 (EDT)
Received: from [10.146.15.61] (10.140.19.249) by IMCCAS03.MITRE.ORG (129.83.29.80) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 14 Aug 2014 13:15:57 -0400
Message-ID: <53ECEE85.4010505@mitre.org>
Date: Thu, 14 Aug 2014 13:14:45 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Sergey Beryozkin <sberyozkin@gmail.com>, Richard Barnes <rlb@ipv.sx>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com>
In-Reply-To: <53ECE6F6.8000400@gmail.com>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.140.19.249]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/4VvS1bv6afxPB2Lnlqt5-Hfm_mg
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 17:16:01 -0000

Sergey - it's an Apache licensed project. Copy away! (with attribution) :)

  -- Justin

On 08/14/2014 12:42 PM, Sergey Beryozkin wrote:
> Hi Richard and Justin
>
> Very helpful, many thanks !
>
> Richard: thanks for the link, the idea of using JWK as a standard 
> medium for shipping the key (information) is something that helps to 
> understand why JWK is referred to so much in the specifications like 
> JWE/JWS
>
> Justin: I'll try my best not to copy the Java code you linked too :-).
>
> Thanks for links to the examples, let me ask few questions below:
>
> On 14/08/14 16:04, Justin Richer wrote:
>> Services are starting to publish their public keys as JWK instead of
>> X509, since a JWK doesn't require a trusted CA and can be much more
>> easily rotated at runtime.
> Sorry if it is off-topic, is JWK representing a public key (the public 
> exponent) is effectively a self-signed public key/cert ? What provides 
> the extra trust into such JWK ? I've heard here about JWK Thumbprints ?
>
>> This is the class from our OAuth/OpenID
>> Connect system that builds signers and validators off of a public-key
>> JWK (using the Nimbus-DS JOSE library):
>>
>> https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java
>>
>>
>> To add to that, with the private/shared key components of JWK, it can be
>> a very effective key store. Our OAuth server uses this for its keys,
>> this is the class that reads the file and makes the keys available as
>> Java key objects to the rest of the system:
>>
>> https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java
>>
>> As you can see, these are both exceedingly simple classes because they
>> simple read the URL (in the first case) or file (in the second case) and
>> parse the JSON found there into a JWK set, which is then used to create
>> the bare keys in the Java security framework. This is the RSA public key
>> parser for example:
>>
>> https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395
>>
>>
>> Finally, in order to make these keys more easy to deal with, we wrote a
>> simple key generator program that will spin up a new RSA, EC, or Oct key
>> and print it out as a JWK:
>>
>>     https://github.com/mitreid-connect/json-web-key-generator
>>
>>
>> Whenever we deploy a new copy of our server somewhere, we also pull down
>> this program and run it to generate a new JWK key set (with public and
>> private keys) that we use to start up the server. The alternative, which
>> we used to do, was to use OpenSSL to generate a self-signed X509
>> certificate that we effectively threw away the trust chain for -- lots
>> of extra effort to create information that we didn't want and then
>> ignore it on the far end, all to get a simple keypair. It was
>> unnecessarily complex from all ends, and the switch to JWK has been much
>> nicer to deal with.
>>
> Is the simplicity of making a demo application running fast a major 
> factor of preferring JWK to self-signed X509  ? What about the 
> synchronization between the existing X509-based key storage and the 
> new JWK-aware storages ?
>
> Thanks, Sergey
>
>>   -- Justin
>>
>> On 08/14/2014 09:25 AM, Richard Barnes wrote:
>>> Hey Sergey,
>>>
>>> JWK isn't necessarily tied to JWE or JWS.  It can be used to represent
>>> the public key that was used to encrypt a JWE (so that the recipient
>>> can look up the private key), or the public key that should be used to
>>> verify a JWS.  But it can also be used in other contexts.  For
>>> example, WebCrypto uses JWK (among others) as a format for serializing
>>> keys.
>>> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes 
>>>
>>>
>>> As that link suggests, JWK is effectively the same as the PKCS#8
>>> format for private keys and the SubjectPublicKeyInfo format for public
>>> keys -- just in JSON instead of ASN.1.  It's a way to ship a key from
>>> one place to another, for whatever reason you need to do that.
>>>
>>> Hope that helps,
>>> --Richard
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>>> <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>> wrote:
>>>
>>>     Hi,
>>>
>>>     This is very likely a newbie question. What is the role of JWK ?
>>>     According to [1] it is "... a (JSON) data structure that
>>>     represents a cryptographic key".
>>>
>>>     I can see plenty examples of JWK in the JWE specification. JWS and
>>>     JWE headers can have a "jwk" property representing a given JWK.
>>>
>>>     What confuses me is that the examples in JWE use JWK to describe
>>>     the private parts of a given key. For example, when we talk about
>>>     the RSA OAEP key encryption, JWK would show a private exponent of
>>>     a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A3). 
>>> Etc.
>>>
>>>     So clearly one would not use a "jwk" JWE header to pass around a
>>>     JWK representation of the key which was used to encrypt the
>>>     content encryption key.
>>>
>>>     So I'm thinking a JWK is:
>>>     - a convenient way to describe a cryptographic key for JWE/JWS
>>>     specifications to refer to it in the spec examples.
>>>     - perhaps there's a long-term vision that the key stores would
>>>     support JWK format directly ?
>>>     - JWK is a 'container' for various key properties, some of those
>>>     'public' properties can be passed around as a JWE/JWS header;
>>>
>>>     Am I on the right track, can someone please clarify it further ?
>>>
>>>     Thanks, Sergey
>>>
>>>
>>>     [1]
>>> http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>>>
>>>     _______________________________________________
>>>     jose mailing list
>>>     jose@ietf.org <mailto:jose@ietf.org>
>>>     https://www.ietf.org/mailman/listinfo/jose
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org
>>> https://www.ietf.org/mailman/listinfo/jose
>>
>


From nobody Thu Aug 14 10:40:22 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3E6B31A6F93 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:40:16 -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 QrFsVLw3zAlx for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:40:10 -0700 (PDT)
Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E50E81A0940 for <jose@ietf.org>; Thu, 14 Aug 2014 10:40:09 -0700 (PDT)
Received: by mail-we0-f169.google.com with SMTP id u56so1430769wes.0 for <jose@ietf.org>; Thu, 14 Aug 2014 10:40:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=DEm/TXDMoidKn1QFv+PBHmJLTxThkdGoRBbJ0v1AJPY=; b=aUhkrQiwM28gJMKhHnVXJN5klm5yORasmcKDQRz40VxVVEbFWsBbEdk/Gj0b1ixfVo TPSvShImCxXxrMYq36eR6Yu4jEA8jq1xdadncJdBaTTInhC3O0CqMNGkWCLU6dFQsAtD DTn0ODDIKvRUeIklbXToW4egHitQa1/3yOVQ+jWYaUvKuV0WnA/ArMTIRKCf5Vkr5jk7 0cDpvGIE8xlnczizzlPDeXyhObBdnW/zPv03QGK1YOU3iS//1lKll+Srq6vb+qEWvPJN qkvXkA0QdSrjm8GYlk7YI2UAAzHWZgkB3VtGmwmj/kAEk0sk5wKVQ+AuaxkXhh13y3mJ H+WQ==
X-Received: by 10.194.78.170 with SMTP id c10mr14257106wjx.22.1408038008447; Thu, 14 Aug 2014 10:40:08 -0700 (PDT)
Received: from [192.168.2.7] ([109.255.231.6]) by mx.google.com with ESMTPSA id a11sm12772967wjx.46.2014.08.14.10.40.07 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 10:40:07 -0700 (PDT)
Message-ID: <53ECF476.9020009@gmail.com>
Date: Thu, 14 Aug 2014 18:40:06 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Justin Richer <jricher@mitre.org>, Richard Barnes <rlb@ipv.sx>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <53ECEE85.4010505@mitre.org>
In-Reply-To: <53ECEE85.4010505@mitre.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/vMOw8KJ1eMG_2mEyHMnClMIKOKs
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 17:40:16 -0000

Hi Justin -
I can only afford sometimes looking at how others do something I'm not 
clear about but eventually would hack things my own way :-)

Can you please give me a favor and address a couple of questions I asked 
in the previous message too ?

Cheers, Sergey
On 14/08/14 18:14, Justin Richer wrote:
> Sergey - it's an Apache licensed project. Copy away! (with attribution) :)
>
>   -- Justin
>
> On 08/14/2014 12:42 PM, Sergey Beryozkin wrote:
>> Hi Richard and Justin
>>
>> Very helpful, many thanks !
>>
>> Richard: thanks for the link, the idea of using JWK as a standard
>> medium for shipping the key (information) is something that helps to
>> understand why JWK is referred to so much in the specifications like
>> JWE/JWS
>>
>> Justin: I'll try my best not to copy the Java code you linked too :-).
>>
>> Thanks for links to the examples, let me ask few questions below:
>>
>> On 14/08/14 16:04, Justin Richer wrote:
>>> Services are starting to publish their public keys as JWK instead of
>>> X509, since a JWK doesn't require a trusted CA and can be much more
>>> easily rotated at runtime.
>> Sorry if it is off-topic, is JWK representing a public key (the public
>> exponent) is effectively a self-signed public key/cert ? What provides
>> the extra trust into such JWK ? I've heard here about JWK Thumbprints ?
>>
>>> This is the class from our OAuth/OpenID
>>> Connect system that builds signers and validators off of a public-key
>>> JWK (using the Nimbus-DS JOSE library):
>>>
>>> https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java
>>>
>>>
>>>
>>> To add to that, with the private/shared key components of JWK, it can be
>>> a very effective key store. Our OAuth server uses this for its keys,
>>> this is the class that reads the file and makes the keys available as
>>> Java key objects to the rest of the system:
>>>
>>> https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java
>>>
>>>
>>> As you can see, these are both exceedingly simple classes because they
>>> simple read the URL (in the first case) or file (in the second case) and
>>> parse the JSON found there into a JWK set, which is then used to create
>>> the bare keys in the Java security framework. This is the RSA public key
>>> parser for example:
>>>
>>> https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395
>>>
>>>
>>>
>>> Finally, in order to make these keys more easy to deal with, we wrote a
>>> simple key generator program that will spin up a new RSA, EC, or Oct key
>>> and print it out as a JWK:
>>>
>>>     https://github.com/mitreid-connect/json-web-key-generator
>>>
>>>
>>> Whenever we deploy a new copy of our server somewhere, we also pull down
>>> this program and run it to generate a new JWK key set (with public and
>>> private keys) that we use to start up the server. The alternative, which
>>> we used to do, was to use OpenSSL to generate a self-signed X509
>>> certificate that we effectively threw away the trust chain for -- lots
>>> of extra effort to create information that we didn't want and then
>>> ignore it on the far end, all to get a simple keypair. It was
>>> unnecessarily complex from all ends, and the switch to JWK has been much
>>> nicer to deal with.
>>>
>> Is the simplicity of making a demo application running fast a major
>> factor of preferring JWK to self-signed X509  ? What about the
>> synchronization between the existing X509-based key storage and the
>> new JWK-aware storages ?
>>
>> Thanks, Sergey
>>
>>>   -- Justin
>>>
>>> On 08/14/2014 09:25 AM, Richard Barnes wrote:
>>>> Hey Sergey,
>>>>
>>>> JWK isn't necessarily tied to JWE or JWS.  It can be used to represent
>>>> the public key that was used to encrypt a JWE (so that the recipient
>>>> can look up the private key), or the public key that should be used to
>>>> verify a JWS.  But it can also be used in other contexts.  For
>>>> example, WebCrypto uses JWK (among others) as a format for serializing
>>>> keys.
>>>> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes
>>>>
>>>>
>>>> As that link suggests, JWK is effectively the same as the PKCS#8
>>>> format for private keys and the SubjectPublicKeyInfo format for public
>>>> keys -- just in JSON instead of ASN.1.  It's a way to ship a key from
>>>> one place to another, for whatever reason you need to do that.
>>>>
>>>> Hope that helps,
>>>> --Richard
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>>>> <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>> wrote:
>>>>
>>>>     Hi,
>>>>
>>>>     This is very likely a newbie question. What is the role of JWK ?
>>>>     According to [1] it is "... a (JSON) data structure that
>>>>     represents a cryptographic key".
>>>>
>>>>     I can see plenty examples of JWK in the JWE specification. JWS and
>>>>     JWE headers can have a "jwk" property representing a given JWK.
>>>>
>>>>     What confuses me is that the examples in JWE use JWK to describe
>>>>     the private parts of a given key. For example, when we talk about
>>>>     the RSA OAEP key encryption, JWK would show a private exponent of
>>>>     a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A3).
>>>> Etc.
>>>>
>>>>     So clearly one would not use a "jwk" JWE header to pass around a
>>>>     JWK representation of the key which was used to encrypt the
>>>>     content encryption key.
>>>>
>>>>     So I'm thinking a JWK is:
>>>>     - a convenient way to describe a cryptographic key for JWE/JWS
>>>>     specifications to refer to it in the spec examples.
>>>>     - perhaps there's a long-term vision that the key stores would
>>>>     support JWK format directly ?
>>>>     - JWK is a 'container' for various key properties, some of those
>>>>     'public' properties can be passed around as a JWE/JWS header;
>>>>
>>>>     Am I on the right track, can someone please clarify it further ?
>>>>
>>>>     Thanks, Sergey
>>>>
>>>>
>>>>     [1]
>>>> http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>>>>
>>>>     _______________________________________________
>>>>     jose mailing list
>>>>     jose@ietf.org <mailto:jose@ietf.org>
>>>>     https://www.ietf.org/mailman/listinfo/jose
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> jose mailing list
>>>> jose@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/jose
>>>
>>
>


From nobody Thu Aug 14 10:46:46 2014
Return-Path: <bcampbell@pingidentity.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 51F741A6F9E for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:46:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.578
X-Spam-Level: 
X-Spam-Status: No, score=-3.578 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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 Olg1pj3Zpalu for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:46:43 -0700 (PDT)
Received: from na3sys009aog131.obsmtp.com (na3sys009aog131.obsmtp.com [74.125.149.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B1AC51A6F9D for <jose@ietf.org>; Thu, 14 Aug 2014 10:46:42 -0700 (PDT)
Received: from mail-ig0-f176.google.com ([209.85.213.176]) (using TLSv1) by na3sys009aob131.postini.com ([74.125.148.12]) with SMTP ID DSNKU+z1/fwLoHtBpKNRoRulhoQyJIcIvq0m@postini.com; Thu, 14 Aug 2014 10:46:42 PDT
Received: by mail-ig0-f176.google.com with SMTP id hn18so14325223igb.3 for <jose@ietf.org>; Thu, 14 Aug 2014 10:46:37 -0700 (PDT)
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=KoIUWyzwufn37bVL8hQ1GqJ1FsskNTvRV0zLgsJpeOc=; b=B845Rt9EiMztM+ouzSm7Bm3qBcGCFCVTv/b56XTQ7cJn8PzjGGPIgB8oW4p1XHC+ud KdYVrIcMYZpwZpKKi8T2ilkaN6DDJzl6Cv5wXFmt9nIsjdgjH+v3BeVv7pFP5gxYPCJZ 4lVfVxekhXdNpJSQogD7z2oJNI4gcdY1/hLSevAw+KXNzySsStQiTZ3/Gaa9A0W2dXa0 xkeVFobcDd2bt5GuaDnH90OZ/fKsnBxpsq7pzZDnd5Qb9TgizfbXFB4H0b8mOK2cEbZy LknxKaEpotqKxxUs4+q6d1C0NCRGgncVtIakrN9mE3/xF8On5UtIa6sBP2OT6rof/Bve LT4g==
X-Gm-Message-State: ALoCoQkg3OUtxHT6mMpoxZ2Ed5dBZWpHV6ecfJasjjYFvUnlEfm/Qq1Dyd3Bku8eKDHc1l4EPYmt8lxQLtYKUMJsgjMivMufXVpfACWqoTehbV7Edi+7m1prDALQell1ULkggo+UP0MW
X-Received: by 10.50.79.132 with SMTP id j4mr23134407igx.9.1408038397017; Thu, 14 Aug 2014 10:46:37 -0700 (PDT)
X-Received: by 10.50.79.132 with SMTP id j4mr23134370igx.9.1408038396691; Thu, 14 Aug 2014 10:46:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.150.162 with HTTP; Thu, 14 Aug 2014 10:46:06 -0700 (PDT)
In-Reply-To: <53ECE6F6.8000400@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Thu, 14 Aug 2014 11:46:06 -0600
Message-ID: <CA+k3eCRbC=xOhTKOZ5K_i6X6NzYkF3j+X+5JQenLPF6kmpXEwg@mail.gmail.com>
To: Sergey Beryozkin <sberyozkin@gmail.com>
Content-Type: multipart/alternative; boundary=089e01228e0c79530d05009a7ca5
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/wUOaJqxhaV2_tue6QZqkp44Mj-0
Cc: Richard Barnes <rlb@ipv.sx>, Justin Richer <jricher@mitre.org>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 17:46:45 -0000

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

One pattern that's emerging as popular is to publish (and periodically
rotate) a JWK Set at an HTTPS endpoint and reference they key used for
individual messages by kid. OpenID Connect uses that model - it's discussed
in some more detail in section 10:
http://openid.net/specs/openid-connect-core-1_0.html#SigEnc

There's not really much more info there but I discussed this a bit in a
recent presentation I gave:
http://www.slideshare.net/briandavidcampbell/i-left-my-jwt-in-san-jose/29




On Thu, Aug 14, 2014 at 10:42 AM, Sergey Beryozkin <sberyozkin@gmail.com>
wrote:

> Hi Richard and Justin
>
> Very helpful, many thanks !
>
> Richard: thanks for the link, the idea of using JWK as a standard medium
> for shipping the key (information) is something that helps to understand
> why JWK is referred to so much in the specifications like JWE/JWS
>
> Justin: I'll try my best not to copy the Java code you linked too :-).
>
> Thanks for links to the examples, let me ask few questions below:
>
>
> On 14/08/14 16:04, Justin Richer wrote:
>
>> Services are starting to publish their public keys as JWK instead of
>> X509, since a JWK doesn't require a trusted CA and can be much more
>> easily rotated at runtime.
>>
> Sorry if it is off-topic, is JWK representing a public key (the public
> exponent) is effectively a self-signed public key/cert ? What provides the
> extra trust into such JWK ? I've heard here about JWK Thumbprints ?
>
>
>  This is the class from our OAuth/OpenID
>> Connect system that builds signers and validators off of a public-key
>> JWK (using the Nimbus-DS JOSE library):
>>
>>     https://github.com/mitreid-connect/OpenID-Connect-Java-
>> Spring-Server/blob/master/openid-connect-common/src/
>> main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java
>>
>>
>> To add to that, with the private/shared key components of JWK, it can be
>> a very effective key store. Our OAuth server uses this for its keys,
>> this is the class that reads the file and makes the keys available as
>> Java key objects to the rest of the system:
>>
>>     https://github.com/mitreid-connect/OpenID-Connect-Java-
>> Spring-Server/blob/master/openid-connect-common/src/
>> main/java/org/mitre/jose/keystore/JWKSetKeyStore.java
>>
>> As you can see, these are both exceedingly simple classes because they
>> simple read the URL (in the first case) or file (in the second case) and
>> parse the JSON found there into a JWK set, which is then used to create
>> the bare keys in the Java security framework. This is the RSA public key
>> parser for example:
>>
>>     https://bitbucket.org/connect2id/nimbus-jose-jwt/src/
>> 0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/
>> nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395
>>
>>
>> Finally, in order to make these keys more easy to deal with, we wrote a
>> simple key generator program that will spin up a new RSA, EC, or Oct key
>> and print it out as a JWK:
>>
>>     https://github.com/mitreid-connect/json-web-key-generator
>>
>>
>> Whenever we deploy a new copy of our server somewhere, we also pull down
>> this program and run it to generate a new JWK key set (with public and
>> private keys) that we use to start up the server. The alternative, which
>> we used to do, was to use OpenSSL to generate a self-signed X509
>> certificate that we effectively threw away the trust chain for -- lots
>> of extra effort to create information that we didn't want and then
>> ignore it on the far end, all to get a simple keypair. It was
>> unnecessarily complex from all ends, and the switch to JWK has been much
>> nicer to deal with.
>>
>>  Is the simplicity of making a demo application running fast a major
> factor of preferring JWK to self-signed X509  ? What about the
> synchronization between the existing X509-based key storage and the new
> JWK-aware storages ?
>
> Thanks, Sergey
>
>    -- Justin
>>
>> On 08/14/2014 09:25 AM, Richard Barnes wrote:
>>
>>> Hey Sergey,
>>>
>>> JWK isn't necessarily tied to JWE or JWS.  It can be used to represent
>>> the public key that was used to encrypt a JWE (so that the recipient
>>> can look up the private key), or the public key that should be used to
>>> verify a JWS.  But it can also be used in other contexts.  For
>>> example, WebCrypto uses JWK (among others) as a format for serializing
>>> keys.
>>> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#
>>> subtlecrypto-interface-datatypes
>>>
>>> As that link suggests, JWK is effectively the same as the PKCS#8
>>> format for private keys and the SubjectPublicKeyInfo format for public
>>> keys -- just in JSON instead of ASN.1.  It's a way to ship a key from
>>> one place to another, for whatever reason you need to do that.
>>>
>>> Hope that helps,
>>> --Richard
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>>> <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>> wrote:
>>>
>>>     Hi,
>>>
>>>     This is very likely a newbie question. What is the role of JWK ?
>>>     According to [1] it is "... a (JSON) data structure that
>>>     represents a cryptographic key".
>>>
>>>     I can see plenty examples of JWK in the JWE specification. JWS and
>>>     JWE headers can have a "jwk" property representing a given JWK.
>>>
>>>     What confuses me is that the examples in JWE use JWK to describe
>>>     the private parts of a given key. For example, when we talk about
>>>     the RSA OAEP key encryption, JWK would show a private exponent of
>>>     a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A3). Etc.
>>>
>>>     So clearly one would not use a "jwk" JWE header to pass around a
>>>     JWK representation of the key which was used to encrypt the
>>>     content encryption key.
>>>
>>>     So I'm thinking a JWK is:
>>>     - a convenient way to describe a cryptographic key for JWE/JWS
>>>     specifications to refer to it in the spec examples.
>>>     - perhaps there's a long-term vision that the key stores would
>>>     support JWK format directly ?
>>>     - JWK is a 'container' for various key properties, some of those
>>>     'public' properties can be passed around as a JWE/JWS header;
>>>
>>>     Am I on the right track, can someone please clarify it further ?
>>>
>>>     Thanks, Sergey
>>>
>>>
>>>     [1]
>>>     http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1
>>>
>>>     _______________________________________________
>>>     jose mailing list
>>>     jose@ietf.org <mailto:jose@ietf.org>
>>>
>>>     https://www.ietf.org/mailman/listinfo/jose
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> jose mailing list
>>> jose@ietf.org
>>> https://www.ietf.org/mailman/listinfo/jose
>>>
>>
>>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>

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

<div dir=3D"ltr">One pattern that&#39;s emerging as popular is to publish (=
and periodically rotate) a JWK Set at an HTTPS endpoint and reference they =
key used for individual messages by kid. OpenID Connect uses that model - i=
t&#39;s discussed in some more detail in section 10: <a href=3D"http://open=
id.net/specs/openid-connect-core-1_0.html#SigEnc">http://openid.net/specs/o=
penid-connect-core-1_0.html#SigEnc</a><br>

<br>There&#39;s not really much more info there but I discussed this a bit =
in a recent presentation I gave:<br><a href=3D"http://www.slideshare.net/br=
iandavidcampbell/i-left-my-jwt-in-san-jose/29" target=3D"_blank">http://www=
.slideshare.net/briandavidcampbell/i-left-my-jwt-in-san-jose/29</a><br>

<br><br>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu,=
 Aug 14, 2014 at 10:42 AM, Sergey Beryozkin <span dir=3D"ltr">&lt;<a href=
=3D"mailto:sberyozkin@gmail.com" target=3D"_blank">sberyozkin@gmail.com</a>=
&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi Richard and Justin<br>
<br>
Very helpful, many thanks !<br>
<br>
Richard: thanks for the link, the idea of using JWK as a standard medium fo=
r shipping the key (information) is something that helps to understand why =
JWK is referred to so much in the specifications like JWE/JWS<br>
<br>
Justin: I&#39;ll try my best not to copy the Java code you linked too :-).<=
br>
<br>
Thanks for links to the examples, let me ask few questions below:<div class=
=3D""><br>
<br>
On 14/08/14 16:04, Justin Richer wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Services are starting to publish their public keys as JWK instead of<br>
X509, since a JWK doesn&#39;t require a trusted CA and can be much more<br>
easily rotated at runtime.<br>
</blockquote></div>
Sorry if it is off-topic, is JWK representing a public key (the public expo=
nent) is effectively a self-signed public key/cert ? What provides the extr=
a trust into such JWK ? I&#39;ve heard here about JWK Thumbprints ?<div>

<div class=3D"h5"><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
This is the class from our OAuth/OpenID<br>
Connect system that builds signers and validators off of a public-key<br>
JWK (using the Nimbus-DS JOSE library):<br>
<br>
=C2=A0 =C2=A0 <a href=3D"https://github.com/mitreid-connect/OpenID-Connect-=
Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitr=
e/jwt/signer/service/impl/JWKSetCacheService.java" target=3D"_blank">https:=
//github.com/mitreid-<u></u>connect/OpenID-Connect-Java-<u></u>Spring-Serve=
r/blob/master/<u></u>openid-connect-common/src/<u></u>main/java/org/mitre/j=
wt/<u></u>signer/service/impl/<u></u>JWKSetCacheService.java</a><br>


<br>
<br>
To add to that, with the private/shared key components of JWK, it can be<br=
>
a very effective key store. Our OAuth server uses this for its keys,<br>
this is the class that reads the file and makes the keys available as<br>
Java key objects to the rest of the system:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"https://github.com/mitreid-connect/OpenID-Connect-=
Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitr=
e/jose/keystore/JWKSetKeyStore.java" target=3D"_blank">https://github.com/m=
itreid-<u></u>connect/OpenID-Connect-Java-<u></u>Spring-Server/blob/master/=
<u></u>openid-connect-common/src/<u></u>main/java/org/mitre/jose/<u></u>key=
store/JWKSetKeyStore.java</a><br>


<br>
As you can see, these are both exceedingly simple classes because they<br>
simple read the URL (in the first case) or file (in the second case) and<br=
>
parse the JSON found there into a JWK set, which is then used to create<br>
the bare keys in the Java security framework. This is the RSA public key<br=
>
parser for example:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"https://bitbucket.org/connect2id/nimbus-jose-jwt/s=
rc/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose=
/jwk/RSAKey.java?at=3Dmaster#cl-1395" target=3D"_blank">https://bitbucket.o=
rg/<u></u>connect2id/nimbus-jose-jwt/<u></u>src/<u></u>0d5b12b4d4b84c822bec=
4af368b3be<u></u>a5120cb310/src/main/java/com/<u></u>nimbusds/jose/jwk/RSAK=
ey.java?<u></u>at=3Dmaster#cl-1395</a><br>


<br>
<br>
Finally, in order to make these keys more easy to deal with, we wrote a<br>
simple key generator program that will spin up a new RSA, EC, or Oct key<br=
>
and print it out as a JWK:<br>
<br>
=C2=A0 =C2=A0 <a href=3D"https://github.com/mitreid-connect/json-web-key-ge=
nerator" target=3D"_blank">https://github.com/mitreid-<u></u>connect/json-w=
eb-key-generator</a><br>
<br>
<br>
Whenever we deploy a new copy of our server somewhere, we also pull down<br=
>
this program and run it to generate a new JWK key set (with public and<br>
private keys) that we use to start up the server. The alternative, which<br=
>
we used to do, was to use OpenSSL to generate a self-signed X509<br>
certificate that we effectively threw away the trust chain for -- lots<br>
of extra effort to create information that we didn&#39;t want and then<br>
ignore it on the far end, all to get a simple keypair. It was<br>
unnecessarily complex from all ends, and the switch to JWK has been much<br=
>
nicer to deal with.<br>
<br>
</blockquote></div></div>
Is the simplicity of making a demo application running fast a major factor =
of preferring JWK to self-signed X509 =C2=A0? What about the synchronizatio=
n between the existing X509-based key storage and the new JWK-aware storage=
s ?<br>


<br>
Thanks, Sergey<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"">
=C2=A0 -- Justin<br>
<br>
On 08/14/2014 09:25 AM, Richard Barnes wrote:<br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div class=3D"">
Hey Sergey,<br>
<br>
JWK isn&#39;t necessarily tied to JWE or JWS. =C2=A0It can be used to repre=
sent<br>
the public key that was used to encrypt a JWE (so that the recipient<br>
can look up the private key), or the public key that should be used to<br>
verify a JWS. =C2=A0But it can also be used in other contexts. =C2=A0For<br=
>
example, WebCrypto uses JWK (among others) as a format for serializing<br>
keys.<br>
<a href=3D"https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.=
html#subtlecrypto-interface-datatypes" target=3D"_blank">https://dvcs.w3.or=
g/hg/<u></u>webcrypto-api/raw-file/tip/<u></u>spec/Overview.html#<u></u>sub=
tlecrypto-interface-<u></u>datatypes</a><br>


<br>
As that link suggests, JWK is effectively the same as the PKCS#8<br>
format for private keys and the SubjectPublicKeyInfo format for public<br>
keys -- just in JSON instead of ASN.1. =C2=A0It&#39;s a way to ship a key f=
rom<br>
one place to another, for whatever reason you need to do that.<br>
<br>
Hope that helps,<br>
--Richard<br>
<br>
<br>
<br>
<br>
<br>
On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin<br></div><div><div class=
=3D"h5">
&lt;<a href=3D"mailto:sberyozkin@gmail.com" target=3D"_blank">sberyozkin@gm=
ail.com</a> &lt;mailto:<a href=3D"mailto:sberyozkin@gmail.com" target=3D"_b=
lank">sberyozkin@gmail.com</a>&gt;&gt; wrote:<br>
<br>
=C2=A0 =C2=A0 Hi,<br>
<br>
=C2=A0 =C2=A0 This is very likely a newbie question. What is the role of JW=
K ?<br>
=C2=A0 =C2=A0 According to [1] it is &quot;... a (JSON) data structure that=
<br>
=C2=A0 =C2=A0 represents a cryptographic key&quot;.<br>
<br>
=C2=A0 =C2=A0 I can see plenty examples of JWK in the JWE specification. JW=
S and<br>
=C2=A0 =C2=A0 JWE headers can have a &quot;jwk&quot; property representing =
a given JWK.<br>
<br>
=C2=A0 =C2=A0 What confuses me is that the examples in JWE use JWK to descr=
ibe<br>
=C2=A0 =C2=A0 the private parts of a given key. For example, when we talk a=
bout<br>
=C2=A0 =C2=A0 the RSA OAEP key encryption, JWK would show a private exponen=
t of<br>
=C2=A0 =C2=A0 a given RSA key (JWE A1). Same for Aes Wrap secret key (JWE A=
3). Etc.<br>
<br>
=C2=A0 =C2=A0 So clearly one would not use a &quot;jwk&quot; JWE header to =
pass around a<br>
=C2=A0 =C2=A0 JWK representation of the key which was used to encrypt the<b=
r>
=C2=A0 =C2=A0 content encryption key.<br>
<br>
=C2=A0 =C2=A0 So I&#39;m thinking a JWK is:<br>
=C2=A0 =C2=A0 - a convenient way to describe a cryptographic key for JWE/JW=
S<br>
=C2=A0 =C2=A0 specifications to refer to it in the spec examples.<br>
=C2=A0 =C2=A0 - perhaps there&#39;s a long-term vision that the key stores =
would<br>
=C2=A0 =C2=A0 support JWK format directly ?<br>
=C2=A0 =C2=A0 - JWK is a &#39;container&#39; for various key properties, so=
me of those<br>
=C2=A0 =C2=A0 &#39;public&#39; properties can be passed around as a JWE/JWS=
 header;<br>
<br>
=C2=A0 =C2=A0 Am I on the right track, can someone please clarify it furthe=
r ?<br>
<br>
=C2=A0 =C2=A0 Thanks, Sergey<br>
<br>
<br>
=C2=A0 =C2=A0 [1]<br>
=C2=A0 =C2=A0 <a href=3D"http://tools.ietf.org/html/draft-ietf-jose-json-we=
b-key-31#section-1" target=3D"_blank">http://tools.ietf.org/html/<u></u>dra=
ft-ietf-jose-json-web-key-<u></u>31#section-1</a><br>
<br>
=C2=A0 =C2=A0 ______________________________<u></u>_________________<br>
=C2=A0 =C2=A0 jose mailing list<br></div></div>
=C2=A0 =C2=A0 <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.=
org</a> &lt;mailto:<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@=
ietf.org</a>&gt;<div class=3D""><br>
=C2=A0 =C2=A0 <a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=
=3D"_blank">https://www.ietf.org/mailman/<u></u>listinfo/jose</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/<u></u>listinfo/jose</a><br>
</div></blockquote>
<br>
</blockquote><div class=3D"HOEnZb"><div class=3D"h5">
<br>
______________________________<u></u>_________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/<u></u>listinfo/jose</a><br>
</div></div></blockquote></div><br></div>

--089e01228e0c79530d05009a7ca5--


From nobody Thu Aug 14 10:53:54 2014
Return-Path: <jricher@mitre.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 35C651A095F for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:53:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.868
X-Spam-Level: 
X-Spam-Status: No, score=-4.868 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.668] 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 rrxxahPArRWg for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 10:53:50 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id 652241A0396 for <jose@ietf.org>; Thu, 14 Aug 2014 10:53:50 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id D4A921F0A30; Thu, 14 Aug 2014 13:53:49 -0400 (EDT)
Received: from IMCCAS03.MITRE.ORG (imccas03.mitre.org [129.83.29.80]) by smtpksrv1.mitre.org (Postfix) with ESMTP id C1B9B1F0A26; Thu, 14 Aug 2014 13:53:49 -0400 (EDT)
Received: from [10.146.15.61] (10.140.19.249) by IMCCAS03.MITRE.ORG (129.83.29.80) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 14 Aug 2014 13:53:49 -0400
Message-ID: <53ECF765.4090004@mitre.org>
Date: Thu, 14 Aug 2014 13:52:37 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Sergey Beryozkin <sberyozkin@gmail.com>, Richard Barnes <rlb@ipv.sx>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <53ECEE85.4010505@mitre.org> <53ECF476.9020009@gmail.com>
In-Reply-To: <53ECF476.9020009@gmail.com>
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.140.19.249]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/u2jL-X4anUBq6sO1TJsLrU5Lpyw
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 17:53:52 -0000

> Can you please give me a favor and address a couple of questions I 
> asked in the previous message too ?

Sure, I missed those before.

>
> Cheers, Sergey
>>>
>>>> Services are starting to publish their public keys as JWK instead of
>>>> X509, since a JWK doesn't require a trusted CA and can be much more
>>>> easily rotated at runtime.
>>> Sorry if it is off-topic, is JWK representing a public key (the public
>>> exponent) is effectively a self-signed public key/cert ? What provides
>>> the extra trust into such JWK ? I've heard here about JWK Thumbprints ?

It's all based on how you get the JWK -- either from a trusted HTTPS 
URI, or out of band in a configuration, or what have you. Don't think of 
the JWK as a certificate, think of it as a keypair. It's not signed or 
issued with a certification chain or anything that you'd expect from 
X509. Instead, it's literally the raw keys. If you're fetching it from a 
URL, it's going to be the public keys only. If you're using it for 
configuring an app or building a local keypair store, it's going to have 
both the public and private key parts.

>>>
>>>>
>>>> Whenever we deploy a new copy of our server somewhere, we also pull 
>>>> down
>>>> this program and run it to generate a new JWK key set (with public and
>>>> private keys) that we use to start up the server. The alternative, 
>>>> which
>>>> we used to do, was to use OpenSSL to generate a self-signed X509
>>>> certificate that we effectively threw away the trust chain for -- lots
>>>> of extra effort to create information that we didn't want and then
>>>> ignore it on the far end, all to get a simple keypair. It was
>>>> unnecessarily complex from all ends, and the switch to JWK has been 
>>>> much
>>>> nicer to deal with.
>>>>
>>> Is the simplicity of making a demo application running fast a major
>>> factor of preferring JWK to self-signed X509  ? What about the
>>> synchronization between the existing X509-based key storage and the
>>> new JWK-aware storages ?
>>>

It's not runtime execution that's driving things for us, it's ease of 
development, lower code complexity, and deployment management.

We haven't needed to synchronize the two kinds of storage mechanisms, 
but you could always do what we used to do when we were using a Java 
x509 keystore for our server: parse the certificates, dutifully ignore 
all of the certificate chain validation (since they were self-signed 
anyway), and extract the bare keys. These keys can be easily represented 
in JWK for JWK-aware apps, while X509 apps can use the existing certs 
directly. Alternatively you could programmatically generate self-signed 
X509 certs based on the raw keys from a JWK. We looked into doing that 
at one point, but the APIs for handling this (in Java, at least) were 
absolutely awful.

So now we just use JWKs in our OAuth infrastructure, both clients and 
servers. The keystore is a JSON text file that we can squirrel away on a 
safe part of the server, remote keys are fetched over HTTPS and easily 
parsed, and everything works quite swimmingly.

  -- Justin

  -- Justin


From nobody Thu Aug 14 14:26:15 2014
Return-Path: <kathleen.moriarty.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A4A7B1A8848 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:26:13 -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 mGEEvhf_SsUH for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:26:12 -0700 (PDT)
Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14FD11A8845 for <jose@ietf.org>; Thu, 14 Aug 2014 14:26:11 -0700 (PDT)
Received: by mail-qc0-f173.google.com with SMTP id w7so1667246qcr.18 for <jose@ietf.org>; Thu, 14 Aug 2014 14:26:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=from:content-type:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BglcEymIwrSnhSLiPrnFZ6EcEDFjoRdK1AkiVqmZRX0=; b=lfViQ77yXJYmop5oz8GPvuALRJbzw6jkF2pyYaRYebyjA20SiNzdgCjYD2wQv4gAPC y6GX4y7uqSrOGGpkyVfO+7vUXd3r4RnLwrAthI2wfve5JBI2cLdGSZkXH432VYnyJiYS Q/3dCQ9fXpgckRoFnf6CqE9kCb4vEcdvofGfLVg2DALWVOpBe3R5io/73UDrd1qt6GUD mGLV9h/+SL+3kjhmANpXIR5wjWbCZysLGr+Ip6s15dO9v+QQi5hmcwmAhoOlslIImhsN Jy+fVZCInEb1zL3dQY5k4Pqc8fJMt5uiTvsIECfFLfHU1xQlWhLNf2tV7UkYzjrirbZS oN4w==
X-Received: by 10.224.136.200 with SMTP id s8mr21883941qat.44.1408051571151; Thu, 14 Aug 2014 14:26:11 -0700 (PDT)
Received: from [192.168.1.7] (pool-96-233-18-79.bstnma.east.verizon.net. [96.233.18.79]) by mx.google.com with ESMTPSA id l76sm6699893qga.8.2014.08.14.14.26.08 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Aug 2014 14:26:09 -0700 (PDT)
From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
X-Google-Original-From: Kathleen Moriarty <Kathleen.Moriarty.ietf@gmail.com>
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (1.0)
X-Mailer: iPhone Mail (11D257)
In-Reply-To: <53ECCB12.2080505@cs.tcd.ie>
Date: Thu, 14 Aug 2014 17:26:08 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/FTjqi_5bu1MkEVePwbVI3aOBmgo
Cc: Daniel Holth <dholth@gmail.com>, Richard Barnes <rlb@ipv.sx>, Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>, Trevor Perrin <trevp@trevp.net>, Mike Scott <mike.scott@certivox.com>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 21:26:14 -0000

Sent from my iPhone

> On Aug 14, 2014, at 10:43 AM, Stephen Farrell <stephen.farrell@cs.tcd.ie> w=
rote:
>=20
>=20
>=20
>> On 14/08/14 14:43, Richard Barnes wrote:
>> It would be very much preferable, however, to keep this on ice until the
>> CFRG debate settles.
>=20
> Yep. That'd be sensible. Time enough when CFRG have
> produced a result.

Ok, JWA should move forward into last call once the shepherd report is poste=
d and this can be added into the registry and may require a separate draft. =
 Does that sound good?

Thanks,
Kathleen

>=20
> S.
>=20
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


From nobody Thu Aug 14 14:28:00 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E1F751A884F for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:27:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 diu1sdVaiyzP for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:27:56 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0244.outbound.protection.outlook.com [207.46.163.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6A481A87E2 for <jose@ietf.org>; Thu, 14 Aug 2014 14:27:53 -0700 (PDT)
Received: from BN3PR0301CA0008.namprd03.prod.outlook.com (25.160.180.146) by BLUPR03MB614.namprd03.prod.outlook.com (10.255.124.42) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Thu, 14 Aug 2014 21:27:52 +0000
Received: from BY2FFO11FD058.protection.gbl (2a01:111:f400:7c0c::151) by BN3PR0301CA0008.outlook.office365.com (2a01:111:e400:4000::18) with Microsoft SMTP Server (TLS) id 15.0.1005.10 via Frontend Transport; Thu, 14 Aug 2014 21:27:52 +0000
Received: from mail.microsoft.com (131.107.125.37) by BY2FFO11FD058.mail.protection.outlook.com (10.1.15.178) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Thu, 14 Aug 2014 21:27:51 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC103.redmond.corp.microsoft.com ([157.54.86.9]) with mapi id 14.03.0195.002; Thu, 14 Aug 2014 21:27:02 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [jose] JWK Elliptic Curve key representations and new curves
Thread-Index: Ac+3YKPoN/N5liajT+icFbBFv1/9ngABbE4AAAxFxU4AC49dAAACHOoAAA4P0gAAAAgO9w==
Date: Thu, 14 Aug 2014 21:27:02 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie>, <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com>
In-Reply-To: <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE1BAFFTK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(479174003)(377454003)(51704005)(189002)(24454002)(199003)(164054003)(85306004)(81542001)(19617315012)(87936001)(106466001)(74662001)(33656002)(6806004)(31966008)(80022001)(64706001)(50986999)(20776003)(26826002)(44976005)(104016003)(68736004)(99396002)(77096002)(76176999)(54356999)(97736001)(81156004)(21056001)(2656002)(107046002)(15975445006)(4396001)(69596002)(19625215002)(79102001)(76482001)(83072002)(92566001)(81342001)(19580395003)(16236675004)(86362001)(46102001)(77982001)(71186001)(95666004)(84676001)(84326002)(55846006)(85852003)(93886004)(74502001)(83322001)(92726001)(86612001)(19580405001); DIR:OUT; SFP:; SCL:1; SRVR:BLUPR03MB614; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 03030B9493
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/NP4jT63jPPaOm1NxtxrF53Kft9o
Cc: Richard Barnes <rlb@ipv.sx>, Trevor Perrin <trevp@trevp.net>, Daniel Holth <dholth@gmail.com>, "jose@ietf.org" <jose@ietf.org>, Mike Scott <mike.scott@certivox.com>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 21:27:59 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE1BAFFTK5EX14MBXC293r_
Content-Type: text/plain; charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

+1
________________________________
From: Kathleen Moriarty<mailto:kathleen.moriarty.ietf@gmail.com>
Sent: =FD8/=FD14/=FD2014 2:26 PM
To: Stephen Farrell<mailto:stephen.farrell@cs.tcd.ie>
Cc: Richard Barnes<mailto:rlb@ipv.sx>; Mike Scott<mailto:mike.scott@certivo=
x.com>; Trevor Perrin<mailto:trevp@trevp.net>; Daniel Holth<mailto:dholth@g=
mail.com>; Mike Jones<mailto:Michael.Jones@microsoft.com>; jose@ietf.org<ma=
ilto:jose@ietf.org>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves



Sent from my iPhone

> On Aug 14, 2014, at 10:43 AM, Stephen Farrell <stephen.farrell@cs.tcd.ie>=
 wrote:
>
>
>
>> On 14/08/14 14:43, Richard Barnes wrote:
>> It would be very much preferable, however, to keep this on ice until the
>> CFRG debate settles.
>
> Yep. That'd be sensible. Time enough when CFRG have
> produced a result.

Ok, JWA should move forward into last call once the shepherd report is post=
ed and this can be added into the registry and may require a separate draft=
.  Does that sound good?

Thanks,
Kathleen

>
> S.
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose

--_000_4E1F6AAD24975D4BA5B16804296739439AE1BAFFTK5EX14MBXC293r_
Content-Type: text/html; charset="windows-1256"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dwindows-1=
256">
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad=
ding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style=3D"font-family:Calibri,sans-serif; font-size:11pt">&#43;1<br>
</div>
</div>
<div dir=3D"ltr">
<hr>
<span style=3D"font-family:Calibri,sans-serif; font-size:11pt; font-weight:=
bold">From:
</span><span style=3D"font-family:Calibri,sans-serif; font-size:11pt"><a hr=
ef=3D"mailto:kathleen.moriarty.ietf@gmail.com">Kathleen Moriarty</a></span>=
<br>
<span style=3D"font-family:Calibri,sans-serif; font-size:11pt; font-weight:=
bold">Sent:
</span><span style=3D"font-family:Calibri,sans-serif; font-size:11pt">=FD8/=
=FD14/=FD2014 2:26 PM</span><br>
<span style=3D"font-family:Calibri,sans-serif; font-size:11pt; font-weight:=
bold">To:
</span><span style=3D"font-family:Calibri,sans-serif; font-size:11pt"><a hr=
ef=3D"mailto:stephen.farrell@cs.tcd.ie">Stephen Farrell</a></span><br>
<span style=3D"font-family:Calibri,sans-serif; font-size:11pt; font-weight:=
bold">Cc:
</span><span style=3D"font-family:Calibri,sans-serif; font-size:11pt"><a hr=
ef=3D"mailto:rlb@ipv.sx">Richard Barnes</a>;
<a href=3D"mailto:mike.scott@certivox.com">Mike Scott</a>; <a href=3D"mailt=
o:trevp@trevp.net">
Trevor Perrin</a>; <a href=3D"mailto:dholth@gmail.com">Daniel Holth</a>; <a=
 href=3D"mailto:Michael.Jones@microsoft.com">
Mike Jones</a>; <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a></span><b=
r>
<span style=3D"font-family:Calibri,sans-serif; font-size:11pt; font-weight:=
bold">Subject:
</span><span style=3D"font-family:Calibri,sans-serif; font-size:11pt">Re: [=
jose] JWK Elliptic Curve key representations and new curves</span><br>
<br>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
<br>
Sent from my iPhone<br>
<br>
&gt; On Aug 14, 2014, at 10:43 AM, Stephen Farrell &lt;stephen.farrell@cs.t=
cd.ie&gt; wrote:<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt;&gt; On 14/08/14 14:43, Richard Barnes wrote:<br>
&gt;&gt; It would be very much preferable, however, to keep this on ice unt=
il the<br>
&gt;&gt; CFRG debate settles.<br>
&gt; <br>
&gt; Yep. That'd be sensible. Time enough when CFRG have<br>
&gt; produced a result.<br>
<br>
Ok, JWA should move forward into last call once the shepherd report is post=
ed and this can be added into the registry and may require a separate draft=
.&nbsp; Does that sound good?<br>
<br>
Thanks,<br>
Kathleen<br>
<br>
&gt; <br>
&gt; S.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; jose mailing list<br>
&gt; jose@ietf.org<br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose">https://www.iet=
f.org/mailman/listinfo/jose</a><br>
</div>
</span></font>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE1BAFFTK5EX14MBXC293r_--


From nobody Thu Aug 14 14:28:45 2014
Return-Path: <jricher@mitre.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 81C6D1A8855 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:28:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.867
X-Spam-Level: 
X-Spam-Status: No, score=-4.867 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.668] 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 l_Y70-KKvmCM for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:28:42 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id B3C591A8853 for <jose@ietf.org>; Thu, 14 Aug 2014 14:28:42 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 391EA1F0A36; Thu, 14 Aug 2014 17:28:42 -0400 (EDT)
Received: from IMCCAS03.MITRE.ORG (imccas03.mitre.org [129.83.29.80]) by smtpksrv1.mitre.org (Postfix) with ESMTP id 23BF51F04A6; Thu, 14 Aug 2014 17:28:42 -0400 (EDT)
Received: from [10.146.15.61] (10.140.19.249) by IMCCAS03.MITRE.ORG (129.83.29.80) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 14 Aug 2014 17:28:41 -0400
Message-ID: <53ED29C1.1030804@mitre.org>
Date: Thu, 14 Aug 2014 17:27:29 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Mike Jones <Michael.Jones@microsoft.com>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie>, <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com> <4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com>
Content-Type: multipart/alternative; boundary="------------050203050305070900080103"
X-Originating-IP: [10.140.19.249]
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/N11cSHTYoNxotFBnzJHzMPsPQeA
Cc: Richard Barnes <rlb@ipv.sx>, Trevor Perrin <trevp@trevp.net>, Daniel Holth <dholth@gmail.com>, "jose@ietf.org" <jose@ietf.org>, Mike Scott <mike.scott@certivox.com>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 21:28:44 -0000

--------------050203050305070900080103
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: 8bit

+1, this makes the most sense given that JWK is a highly extensible format

On 08/14/2014 05:27 PM, Mike Jones wrote:
> +1
> ------------------------------------------------------------------------
> From: Kathleen Moriarty <mailto:kathleen.moriarty.ietf@gmail.com>
> Sent: â€Ž8/â€Ž14/â€Ž2014 2:26 PM
> To: Stephen Farrell <mailto:stephen.farrell@cs.tcd.ie>
> Cc: Richard Barnes <mailto:rlb@ipv.sx>; Mike Scott 
> <mailto:mike.scott@certivox.com>; Trevor Perrin 
> <mailto:trevp@trevp.net>; Daniel Holth <mailto:dholth@gmail.com>; Mike 
> Jones <mailto:Michael.Jones@microsoft.com>; jose@ietf.org 
> <mailto:jose@ietf.org>
> Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
>
>
>
> Sent from my iPhone
>
> > On Aug 14, 2014, at 10:43 AM, Stephen Farrell 
> <stephen.farrell@cs.tcd.ie> wrote:
> >
> >
> >
> >> On 14/08/14 14:43, Richard Barnes wrote:
> >> It would be very much preferable, however, to keep this on ice 
> until the
> >> CFRG debate settles.
> >
> > Yep. That'd be sensible. Time enough when CFRG have
> > produced a result.
>
> Ok, JWA should move forward into last call once the shepherd report is 
> posted and this can be added into the registry and may require a 
> separate draft.  Does that sound good?
>
> Thanks,
> Kathleen
>
> >
> > S.
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


--------------050203050305070900080103
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    +1, this makes the most sense given that JWK is a highly extensible
    format<br>
    <br>
    <div class="moz-cite-prefix">On 08/14/2014 05:27 PM, Mike Jones
      wrote:<br>
    </div>
    <blockquote
cite="mid:4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from text -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <div>
        <div>
          <div style="font-family:Calibri,sans-serif; font-size:11pt">+1<br>
          </div>
        </div>
        <div dir="ltr">
          <hr>
          <span style="font-family:Calibri,sans-serif; font-size:11pt;
            font-weight:bold">From:
          </span><span style="font-family:Calibri,sans-serif;
            font-size:11pt"><a moz-do-not-send="true"
              href="mailto:kathleen.moriarty.ietf@gmail.com">Kathleen
              Moriarty</a></span><br>
          <span style="font-family:Calibri,sans-serif; font-size:11pt;
            font-weight:bold">Sent:
          </span><span style="font-family:Calibri,sans-serif;
            font-size:11pt">â€Ž8/â€Ž14/â€Ž2014 2:26 PM</span><br>
          <span style="font-family:Calibri,sans-serif; font-size:11pt;
            font-weight:bold">To:
          </span><span style="font-family:Calibri,sans-serif;
            font-size:11pt"><a moz-do-not-send="true"
              href="mailto:stephen.farrell@cs.tcd.ie">Stephen Farrell</a></span><br>
          <span style="font-family:Calibri,sans-serif; font-size:11pt;
            font-weight:bold">Cc:
          </span><span style="font-family:Calibri,sans-serif;
            font-size:11pt"><a moz-do-not-send="true"
              href="mailto:rlb@ipv.sx">Richard Barnes</a>;
            <a moz-do-not-send="true"
              href="mailto:mike.scott@certivox.com">Mike Scott</a>; <a
              moz-do-not-send="true" href="mailto:trevp@trevp.net">
              Trevor Perrin</a>; <a moz-do-not-send="true"
              href="mailto:dholth@gmail.com">Daniel Holth</a>; <a
              moz-do-not-send="true"
              href="mailto:Michael.Jones@microsoft.com">
              Mike Jones</a>; <a moz-do-not-send="true"
              href="mailto:jose@ietf.org">jose@ietf.org</a></span><br>
          <span style="font-family:Calibri,sans-serif; font-size:11pt;
            font-weight:bold">Subject:
          </span><span style="font-family:Calibri,sans-serif;
            font-size:11pt">Re: [jose] JWK Elliptic Curve key
            representations and new curves</span><br>
          <br>
        </div>
      </div>
      <font size="2"><span style="font-size:10pt;">
          <div class="PlainText"><br>
            <br>
            Sent from my iPhone<br>
            <br>
            &gt; On Aug 14, 2014, at 10:43 AM, Stephen Farrell
            <a class="moz-txt-link-rfc2396E" href="mailto:stephen.farrell@cs.tcd.ie">&lt;stephen.farrell@cs.tcd.ie&gt;</a> wrote:<br>
            &gt; <br>
            &gt; <br>
            &gt; <br>
            &gt;&gt; On 14/08/14 14:43, Richard Barnes wrote:<br>
            &gt;&gt; It would be very much preferable, however, to keep
            this on ice until the<br>
            &gt;&gt; CFRG debate settles.<br>
            &gt; <br>
            &gt; Yep. That'd be sensible. Time enough when CFRG have<br>
            &gt; produced a result.<br>
            <br>
            Ok, JWA should move forward into last call once the shepherd
            report is posted and this can be added into the registry and
            may require a separate draft.Â  Does that sound good?<br>
            <br>
            Thanks,<br>
            Kathleen<br>
            <br>
            &gt; <br>
            &gt; S.<br>
            &gt; <br>
            &gt; _______________________________________________<br>
            &gt; jose mailing list<br>
            &gt; <a class="moz-txt-link-abbreviated" href="mailto:jose@ietf.org">jose@ietf.org</a><br>
            &gt; <a moz-do-not-send="true"
              href="https://www.ietf.org/mailman/listinfo/jose">https://www.ietf.org/mailman/listinfo/jose</a><br>
          </div>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jose mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jose@ietf.org">jose@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/jose">https://www.ietf.org/mailman/listinfo/jose</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------050203050305070900080103--


From nobody Thu Aug 14 14:35:23 2014
Return-Path: <rlb@ipv.sx>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DC8D21A887E for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:35:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 UYGqytpNnweH for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:35:20 -0700 (PDT)
Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 106811A8876 for <jose@ietf.org>; Thu, 14 Aug 2014 14:35:20 -0700 (PDT)
Received: by mail-ob0-f173.google.com with SMTP id vb8so1458024obc.4 for <jose@ietf.org>; Thu, 14 Aug 2014 14:35:19 -0700 (PDT)
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:date :message-id:subject:from:to:cc:content-type; bh=Giv00dixS0rITMieTfSlFRhRaAPjtHWXjWnq3KYncpc=; b=UjgkTDJ+bKMSEeYT5mTqat0Mimx+99V24/al6audbBoVyxXrEuh3OfxoKBqh38Z/iE FoqaTs/4flS/jfgo01L083mJsaxsGiwypYgJcFNBZexwSLP/p+Z6L+W6MtlCZPI6frMQ XUXJQo1RyNMKjWD4n8QbrAPcOv4ZgxC5T0zmPiJjr45bSLRjmSoPrDZfTPUSIYMgvyEE /qCTMaQIhD2B0wXqesBOEEhcWD+xg0keu13UgNlsQCAwO/lSDaVMPUIuKpdiVKa8Gqe8 RIlPapHF1I7egABWVdukIeuNaAL9NzoT4+o0HyGlwAPT2ohbu2TjKlgWV99V8WtMsY78 YXhg==
X-Gm-Message-State: ALoCoQlFAiN8W5oh5bz5mPUeifyVrQB3sVpNwWeZaS45XJ+/GGCn4zAo27VytxkGf7LSPJC4f1u1
MIME-Version: 1.0
X-Received: by 10.60.103.195 with SMTP id fy3mr16579404oeb.35.1408052119428; Thu, 14 Aug 2014 14:35:19 -0700 (PDT)
Received: by 10.76.106.202 with HTTP; Thu, 14 Aug 2014 14:35:19 -0700 (PDT)
In-Reply-To: <53ED29C1.1030804@mitre.org>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie> <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com> <4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com> <53ED29C1.1030804@mitre.org>
Date: Thu, 14 Aug 2014 17:35:19 -0400
Message-ID: <CAL02cgSjw-fgpU6G9sKPf80hXp0Y2UaD5LqSJMO5YGuGBoaoxw@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Justin Richer <jricher@mitre.org>
Content-Type: multipart/alternative; boundary=089e01182c0a677a6605009daead
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/1NzHUuCYWyZgoOJija17DCg5kek
Cc: Daniel Holth <dholth@gmail.com>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>, "jose@ietf.org" <jose@ietf.org>, Trevor Perrin <trevp@trevp.net>, Mike Scott <mike.scott@certivox.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 21:35:22 -0000

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

+1

No need to hold up the base specs.

Note that if we repurpose/generalize "EC", then old parsers will reject
JWKs without "y" elements.  But that's OK, because they wouldn't understand
the new curve anyway.




On Thu, Aug 14, 2014 at 5:27 PM, Justin Richer <jricher@mitre.org> wrote:

>  +1, this makes the most sense given that JWK is a highly extensible form=
at
>
>
> On 08/14/2014 05:27 PM, Mike Jones wrote:
>
>  +1
>   ------------------------------
> From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
> Sent: =E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 2:26 PM
> To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
> Cc: Richard Barnes <rlb@ipv.sx>; Mike Scott <mike.scott@certivox.com>; Tr=
evor
> Perrin <trevp@trevp.net>; Daniel Holth <dholth@gmail.com>; Mike Jones
> <Michael.Jones@microsoft.com>; jose@ietf.org
> Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
>
>
>
> Sent from my iPhone
>
> > On Aug 14, 2014, at 10:43 AM, Stephen Farrell
> <stephen.farrell@cs.tcd.ie> <stephen.farrell@cs.tcd.ie> wrote:
> >
> >
> >
> >> On 14/08/14 14:43, Richard Barnes wrote:
> >> It would be very much preferable, however, to keep this on ice until t=
he
> >> CFRG debate settles.
> >
> > Yep. That'd be sensible. Time enough when CFRG have
> > produced a result.
>
> Ok, JWA should move forward into last call once the shepherd report is
> posted and this can be added into the registry and may require a separate
> draft.  Does that sound good?
>
> Thanks,
> Kathleen
>
> >
> > S.
> >
> > _______________________________________________
> > jose mailing list
> > jose@ietf.org
> > https://www.ietf.org/mailman/listinfo/jose
>
>
> _______________________________________________
> jose mailing listjose@ietf.orghttps://www.ietf.org/mailman/listinfo/jose
>
>
>

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

<div dir=3D"ltr"><div>+1<br><br></div>No need to hold up the base specs.<br=
><br>Note that if we repurpose/generalize &quot;EC&quot;, then old parsers =
will reject JWKs without &quot;y&quot; elements.=C2=A0 But that&#39;s OK, b=
ecause they wouldn&#39;t understand the new curve anyway.<br>
<br><br></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote"=
>On Thu, Aug 14, 2014 at 5:27 PM, Justin Richer <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:jricher@mitre.org" target=3D"_blank">jricher@mitre.org</a>&gt;=
</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF">
    +1, this makes the most sense given that JWK is a highly extensible
    format<div><div class=3D"h5"><br>
    <br>
    <div>On 08/14/2014 05:27 PM, Mike Jones
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
     =20
     =20
     =20
      <div>
        <div>
          <div style=3D"font-family:Calibri,sans-serif;font-size:11pt">+1<b=
r>
          </div>
        </div>
        <div dir=3D"ltr">
          <hr>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">From:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:kathleen.moriarty.ietf@gmail.com" target=3D"_blank">K=
athleen
              Moriarty</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Sent:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt">=E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 2:26 PM</span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">To:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">Stephen =
Farrell</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Cc:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:rlb@ipv.sx" target=3D"_blank">Richard Barnes</a>;
            <a href=3D"mailto:mike.scott@certivox.com" target=3D"_blank">Mi=
ke Scott</a>; <a href=3D"mailto:trevp@trevp.net" target=3D"_blank">
              Trevor Perrin</a>; <a href=3D"mailto:dholth@gmail.com" target=
=3D"_blank">Daniel Holth</a>; <a href=3D"mailto:Michael.Jones@microsoft.com=
" target=3D"_blank">
              Mike Jones</a>; <a href=3D"mailto:jose@ietf.org" target=3D"_b=
lank">jose@ietf.org</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Subject:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt">Re: [jose] JWK Elliptic Curve key
            representations and new curves</span><br>
          <br>
        </div>
      </div>
      <font><span style=3D"font-size:10pt">
          <div><br>
            <br>
            Sent from my iPhone<br>
            <br>
            &gt; On Aug 14, 2014, at 10:43 AM, Stephen Farrell
            <a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">=
&lt;stephen.farrell@cs.tcd.ie&gt;</a> wrote:<br>
            &gt; <br>
            &gt; <br>
            &gt; <br>
            &gt;&gt; On 14/08/14 14:43, Richard Barnes wrote:<br>
            &gt;&gt; It would be very much preferable, however, to keep
            this on ice until the<br>
            &gt;&gt; CFRG debate settles.<br>
            &gt; <br>
            &gt; Yep. That&#39;d be sensible. Time enough when CFRG have<br=
>
            &gt; produced a result.<br>
            <br>
            Ok, JWA should move forward into last call once the shepherd
            report is posted and this can be added into the registry and
            may require a separate draft.=C2=A0 Does that sound good?<br>
            <br>
            Thanks,<br>
            Kathleen<br>
            <br>
            &gt; <br>
            &gt; S.<br>
            &gt; <br>
            &gt; _______________________________________________<br>
            &gt; jose mailing list<br>
            &gt; <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ie=
tf.org</a><br>
            &gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" tar=
get=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
          </div>
        </span></font>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
jose mailing list
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>

--089e01182c0a677a6605009daead--


From nobody Thu Aug 14 14:38:41 2014
Return-Path: <bcampbell@pingidentity.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC8C81A0705 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:38:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.578
X-Spam-Level: 
X-Spam-Status: No, score=-3.578 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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 ZbPeODst_9q0 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 14:38:38 -0700 (PDT)
Received: from psmtp.com (na3sys009aob139.obsmtp.com [74.125.149.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E79001A0457 for <jose@ietf.org>; Thu, 14 Aug 2014 14:38:37 -0700 (PDT)
Received: from mail-ig0-f176.google.com ([209.85.213.176]) (using TLSv1) by na3sys009aob139.postini.com ([74.125.148.12]) with SMTP ID DSNKU+0sXQZc1oiXGqSroIO2CAng1FDZ883X@postini.com; Thu, 14 Aug 2014 14:38:37 PDT
Received: by mail-ig0-f176.google.com with SMTP id hn18so221291igb.3 for <jose@ietf.org>; Thu, 14 Aug 2014 14:38:37 -0700 (PDT)
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=EV/vdr4JJLGQZvLxXntHJR8ExmPkNq9LFScHoa0Oh1g=; b=lBG1fMLG7qTb0CxSdy5JEQqSVJWq3rdafv17J3qpN7y2DC7GNTn606ZKDZAw9mMWcq nXfxDqAXF2bp+p5ztrWwctCsyl8qWvf9uJcRigZE+mDdmztWrmzWCTP9BSDhkWLKL95J ZUob46cvWHazXmXJmiyuucSTp9ExS3pAcFCp7rmu+KLdM9Uyyun3pszELE6iACgnaDIc UpAplpWiRlLlyF7DB0b71+9VXt/I/OQCLP7A5hOgRPdCdH8EJTCFkLsR7ZXfVfXTaH7K ZJbc3qw7lqWCjZWlGOzIC4yNt0svwaaWF32GpbldLxAjJrM+9Q5XXIGYxfWV9L4fntHN HR+w==
X-Gm-Message-State: ALoCoQkK2vXTeZigVflSsenE563gPZ/LS+ORW2p72KD1A6OR6EwCt37dAUNsTRhzOn2Ms/ck5hoSF9KlvCXNHKeNKU5OUNo/ZhicWll0BqXMW+zrWPl3/Yzuo6GBysNE3S7AhMZeS0DU
X-Received: by 10.42.47.140 with SMTP id o12mr17762923icf.4.1408052317298; Thu, 14 Aug 2014 14:38:37 -0700 (PDT)
X-Received: by 10.42.47.140 with SMTP id o12mr17762911icf.4.1408052317210; Thu, 14 Aug 2014 14:38:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.64.150.162 with HTTP; Thu, 14 Aug 2014 14:38:07 -0700 (PDT)
In-Reply-To: <CAL02cgSjw-fgpU6G9sKPf80hXp0Y2UaD5LqSJMO5YGuGBoaoxw@mail.gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <CAG8k2+4rBnaZ4U4N49AgceAcNXeXcxjCzg+PgEy4woREAg=SmA@mail.gmail.com> <1408004416408.82777@certivox.com> <CAL02cgQCVWBWQgFC5SAvHYXYfd+G8ma6_bzOTq6Gggh9CFR=Kw@mail.gmail.com> <53ECCB12.2080505@cs.tcd.ie> <B9F038D8-EC64-4235-987D-DCD52D20E9E8@gmail.com> <4E1F6AAD24975D4BA5B16804296739439AE1BAFF@TK5EX14MBXC293.redmond.corp.microsoft.com> <53ED29C1.1030804@mitre.org> <CAL02cgSjw-fgpU6G9sKPf80hXp0Y2UaD5LqSJMO5YGuGBoaoxw@mail.gmail.com>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Thu, 14 Aug 2014 15:38:07 -0600
Message-ID: <CA+k3eCTmUWBkfDNurNiA5dEdht4WPZZEbZgNEbb8D7KtuYwRmw@mail.gmail.com>
To: Richard Barnes <rlb@ipv.sx>
Content-Type: multipart/alternative; boundary=90e6ba6149aa315ab705009dbacf
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/DHXh8wFN9-9hFNSToIT7vSOLDhY
Cc: Daniel Holth <dholth@gmail.com>, Mike Jones <Michael.Jones@microsoft.com>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, "jose@ietf.org" <jose@ietf.org>, Trevor Perrin <trevp@trevp.net>, Stephen Farrell <stephen.farrell@cs.tcd.ie>, Justin Richer <jricher@mitre.org>, Mike Scott <mike.scott@certivox.com>
Subject: Re: [jose] JWK Elliptic Curve key representations and new curves
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 21:38:40 -0000

--90e6ba6149aa315ab705009dbacf
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

+1


On Thu, Aug 14, 2014 at 3:35 PM, Richard Barnes <rlb@ipv.sx> wrote:

> +1
>
> No need to hold up the base specs.
>
> Note that if we repurpose/generalize "EC", then old parsers will reject
> JWKs without "y" elements.  But that's OK, because they wouldn't understa=
nd
> the new curve anyway.
>
>
>
>
> On Thu, Aug 14, 2014 at 5:27 PM, Justin Richer <jricher@mitre.org> wrote:
>
>>  +1, this makes the most sense given that JWK is a highly extensible
>> format
>>
>>
>> On 08/14/2014 05:27 PM, Mike Jones wrote:
>>
>>  +1
>>   ------------------------------
>> From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
>> Sent: =E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 2:26 PM
>> To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
>> Cc: Richard Barnes <rlb@ipv.sx>; Mike Scott <mike.scott@certivox.com>; T=
revor
>> Perrin <trevp@trevp.net>; Daniel Holth <dholth@gmail.com>; Mike Jones
>> <Michael.Jones@microsoft.com>; jose@ietf.org
>> Subject: Re: [jose] JWK Elliptic Curve key representations and new curve=
s
>>
>>
>>
>> Sent from my iPhone
>>
>> > On Aug 14, 2014, at 10:43 AM, Stephen Farrell
>> <stephen.farrell@cs.tcd.ie> <stephen.farrell@cs.tcd.ie> wrote:
>> >
>> >
>> >
>> >> On 14/08/14 14:43, Richard Barnes wrote:
>> >> It would be very much preferable, however, to keep this on ice until
>> the
>> >> CFRG debate settles.
>> >
>> > Yep. That'd be sensible. Time enough when CFRG have
>> > produced a result.
>>
>> Ok, JWA should move forward into last call once the shepherd report is
>> posted and this can be added into the registry and may require a separat=
e
>> draft.  Does that sound good?
>>
>> Thanks,
>> Kathleen
>>
>> >
>> > S.
>> >
>> > _______________________________________________
>> > jose mailing list
>> > jose@ietf.org
>> > https://www.ietf.org/mailman/listinfo/jose
>>
>>
>> _______________________________________________
>> jose mailing listjose@ietf.orghttps://www.ietf.org/mailman/listinfo/jose
>>
>>
>>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>

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

<div dir=3D"ltr">+1<br></div><div class=3D"gmail_extra"><br><br><div class=
=3D"gmail_quote">On Thu, Aug 14, 2014 at 3:35 PM, Richard Barnes <span dir=
=3D"ltr">&lt;<a href=3D"mailto:rlb@ipv.sx" target=3D"_blank">rlb@ipv.sx</a>=
&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>+1<br><br></div>No nee=
d to hold up the base specs.<br><br>Note that if we repurpose/generalize &q=
uot;EC&quot;, then old parsers will reject JWKs without &quot;y&quot; eleme=
nts.=C2=A0 But that&#39;s OK, because they wouldn&#39;t understand the new =
curve anyway.<br>


<br><br></div><div class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gmail_e=
xtra"><br><br><div class=3D"gmail_quote">On Thu, Aug 14, 2014 at 5:27 PM, J=
ustin Richer <span dir=3D"ltr">&lt;<a href=3D"mailto:jricher@mitre.org" tar=
get=3D"_blank">jricher@mitre.org</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF">
    +1, this makes the most sense given that JWK is a highly extensible
    format<div><div><br>
    <br>
    <div>On 08/14/2014 05:27 PM, Mike Jones
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
     =20
     =20
     =20
      <div>
        <div>
          <div style=3D"font-family:Calibri,sans-serif;font-size:11pt">+1<b=
r>
          </div>
        </div>
        <div dir=3D"ltr">
          <hr>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">From:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:kathleen.moriarty.ietf@gmail.com" target=3D"_blank">K=
athleen
              Moriarty</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Sent:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt">=E2=80=8E8/=E2=80=8E14/=E2=80=8E2014 2:26 PM</span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">To:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">Stephen =
Farrell</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Cc:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt"><a href=3D"mailto:rlb@ipv.sx" target=3D"_blank">Richard Barnes</a>;
            <a href=3D"mailto:mike.scott@certivox.com" target=3D"_blank">Mi=
ke Scott</a>; <a href=3D"mailto:trevp@trevp.net" target=3D"_blank">
              Trevor Perrin</a>; <a href=3D"mailto:dholth@gmail.com" target=
=3D"_blank">Daniel Holth</a>; <a href=3D"mailto:Michael.Jones@microsoft.com=
" target=3D"_blank">
              Mike Jones</a>; <a href=3D"mailto:jose@ietf.org" target=3D"_b=
lank">jose@ietf.org</a></span><br>
          <span style=3D"font-family:Calibri,sans-serif;font-size:11pt;font=
-weight:bold">Subject:
          </span><span style=3D"font-family:Calibri,sans-serif;font-size:11=
pt">Re: [jose] JWK Elliptic Curve key
            representations and new curves</span><br>
          <br>
        </div>
      </div>
      <font><span style=3D"font-size:10pt">
          <div><br>
            <br>
            Sent from my iPhone<br>
            <br>
            &gt; On Aug 14, 2014, at 10:43 AM, Stephen Farrell
            <a href=3D"mailto:stephen.farrell@cs.tcd.ie" target=3D"_blank">=
&lt;stephen.farrell@cs.tcd.ie&gt;</a> wrote:<br>
            &gt; <br>
            &gt; <br>
            &gt; <br>
            &gt;&gt; On 14/08/14 14:43, Richard Barnes wrote:<br>
            &gt;&gt; It would be very much preferable, however, to keep
            this on ice until the<br>
            &gt;&gt; CFRG debate settles.<br>
            &gt; <br>
            &gt; Yep. That&#39;d be sensible. Time enough when CFRG have<br=
>
            &gt; produced a result.<br>
            <br>
            Ok, JWA should move forward into last call once the shepherd
            report is posted and this can be added into the registry and
            may require a separate draft.=C2=A0 Does that sound good?<br>
            <br>
            Thanks,<br>
            Kathleen<br>
            <br>
            &gt; <br>
            &gt; S.<br>
            &gt; <br>
            &gt; _______________________________________________<br>
            &gt; jose mailing list<br>
            &gt; <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ie=
tf.org</a><br>
            &gt; <a href=3D"https://www.ietf.org/mailman/listinfo/jose" tar=
get=3D"_blank">https://www.ietf.org/mailman/listinfo/jose</a><br>
          </div>
        </span></font>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
jose mailing list
<a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org</a>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br></blockquote></div><br></div>

--90e6ba6149aa315ab705009dbacf--


From nobody Thu Aug 14 15:49:40 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D6AEB1A8948 for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 15:49:37 -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 Dbt1sAquyhfQ for <jose@ietfa.amsl.com>; Thu, 14 Aug 2014 15:49:36 -0700 (PDT)
Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3EC721A8947 for <jose@ietf.org>; Thu, 14 Aug 2014 15:49:36 -0700 (PDT)
Received: by mail-wi0-f172.google.com with SMTP id n3so151658wiv.5 for <jose@ietf.org>; Thu, 14 Aug 2014 15:49:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=EVG+kkNyYS2LGH8mhJj16angx5GQBheHEx2BF5ID5o4=; b=ozAZJspPavUcsDN+BlfQ+zofWllRAIpCz15eYVlpYJ0XWopxyxJdrZKDFBR6x6NO6O HnqRcvxgZsvT8hPjPzLp8NOYQ1aVa92BLsXcO6nyJCN4HR4a2CVeaUQPHVUjTMmj9kxt 6e+lY0vFeiaC2EDP4+qZIbpEi0dhVaswfOMKY06GdCafYVtwMM+bE+1OYjms+1/1fnBb cYTng6yMoV33g0gdhyue/yeFdwLa6SZAWK3gSFjvB8wDGtu1Rqg/PMS5d2t/8ltzchtl tUTsHfnogjyE+UzkWpLa7fmCwOQq571ZsS2SMYeNouFZW9ARh/DAIPjsuYgcUBTMuI1n CWnA==
X-Received: by 10.194.104.72 with SMTP id gc8mr14037475wjb.105.1408056574827;  Thu, 14 Aug 2014 15:49:34 -0700 (PDT)
Received: from [192.168.2.7] ([109.255.231.6]) by mx.google.com with ESMTPSA id ga2sm14261100wjb.44.2014.08.14.15.49.33 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 15:49:34 -0700 (PDT)
Message-ID: <53ED3CFA.7040108@gmail.com>
Date: Thu, 14 Aug 2014 23:49:30 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Justin Richer <jricher@mitre.org>, Richard Barnes <rlb@ipv.sx>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <53ECEE85.4010505@mitre.org> <53ECF476.9020009@gmail.com> <53ECF765.4090004@mitre.org>
In-Reply-To: <53ECF765.4090004@mitre.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/5TH2zRxekoneu3W8GJDv6sqxSTA
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Aug 2014 22:49:38 -0000

Hi Justin, and all,

thanks again, I've got plenty of information real fast, very nice,

As far as I understand the regular browser would not support public JWKs 
natively (just) yet which is what I was curious about; but I got the 
points about JWK being the standard container of the public or 
public/private key properties providing for the ease of use & storage. 
Look forward to reviewing the all the additional material I've got the 
links too

Cheers, Sergey
On 14/08/14 18:52, Justin Richer wrote:
>
>> Can you please give me a favor and address a couple of questions I
>> asked in the previous message too ?
>
> Sure, I missed those before.
>
>>
>> Cheers, Sergey
>>>>
>>>>> Services are starting to publish their public keys as JWK instead of
>>>>> X509, since a JWK doesn't require a trusted CA and can be much more
>>>>> easily rotated at runtime.
>>>> Sorry if it is off-topic, is JWK representing a public key (the public
>>>> exponent) is effectively a self-signed public key/cert ? What provides
>>>> the extra trust into such JWK ? I've heard here about JWK Thumbprints ?
>
> It's all based on how you get the JWK -- either from a trusted HTTPS
> URI, or out of band in a configuration, or what have you. Don't think of
> the JWK as a certificate, think of it as a keypair. It's not signed or
> issued with a certification chain or anything that you'd expect from
> X509. Instead, it's literally the raw keys. If you're fetching it from a
> URL, it's going to be the public keys only. If you're using it for
> configuring an app or building a local keypair store, it's going to have
> both the public and private key parts.
>
>>>>
>>>>>
>>>>> Whenever we deploy a new copy of our server somewhere, we also pull
>>>>> down
>>>>> this program and run it to generate a new JWK key set (with public and
>>>>> private keys) that we use to start up the server. The alternative,
>>>>> which
>>>>> we used to do, was to use OpenSSL to generate a self-signed X509
>>>>> certificate that we effectively threw away the trust chain for -- lots
>>>>> of extra effort to create information that we didn't want and then
>>>>> ignore it on the far end, all to get a simple keypair. It was
>>>>> unnecessarily complex from all ends, and the switch to JWK has been
>>>>> much
>>>>> nicer to deal with.
>>>>>
>>>> Is the simplicity of making a demo application running fast a major
>>>> factor of preferring JWK to self-signed X509  ? What about the
>>>> synchronization between the existing X509-based key storage and the
>>>> new JWK-aware storages ?
>>>>
>
> It's not runtime execution that's driving things for us, it's ease of
> development, lower code complexity, and deployment management.
>
> We haven't needed to synchronize the two kinds of storage mechanisms,
> but you could always do what we used to do when we were using a Java
> x509 keystore for our server: parse the certificates, dutifully ignore
> all of the certificate chain validation (since they were self-signed
> anyway), and extract the bare keys. These keys can be easily represented
> in JWK for JWK-aware apps, while X509 apps can use the existing certs
> directly. Alternatively you could programmatically generate self-signed
> X509 certs based on the raw keys from a JWK. We looked into doing that
> at one point, but the APIs for handling this (in Java, at least) were
> absolutely awful.
>
> So now we just use JWKs in our OAuth infrastructure, both clients and
> servers. The keystore is a JSON text file that we can squirrel away on a
> safe part of the server, remote keys are fetched over HTTPS and easily
> parsed, and everything works quite swimmingly.
>
>   -- Justin
>
>   -- Justin



From nobody Fri Aug 15 03:06:07 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E63E61A8A2C for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 03:06:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 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, J_CHICKENPOX_41=0.6, 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 9BEIqUmEldka for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 03:06:02 -0700 (PDT)
Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B1061A8A0D for <jose@ietf.org>; Fri, 15 Aug 2014 03:06:01 -0700 (PDT)
Received: by mail-lb0-f174.google.com with SMTP id c11so1770508lbj.19 for <jose@ietf.org>; Fri, 15 Aug 2014 03:05:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=MyUU/TOdr+DKRf7nl1ABzx5N0Em2P0R/ZUBCW06RPHQ=; b=nyZh8ejzy4W61+RbFrdGuy+mwVfnHhBXm8MaLU1BZq5sE7r5I5hdQywAMchPwgeQBw xca4uTCAor482xa+XgUWtJOnA4IZJbVN6QNp41KQNOiGFULzl13z8RGpPDZVd/WuXV1H LHK94yKMbBYEdHk0fNNFnn+T63moabqPN8l36LaXPxXaLCAIOIfeTleZbypzoFB/DyP+ GCzw7jNLXmrpxHJsDWDeWedoVDBHxwj7u+bSZv1CgIHZM8f3//l6o4dDs0OuvKsOmRrZ XIYSDuNzm2GTMDX9AZx1X0pPI02lkeuSd/q7ikzY2bdibKvDx8qUHTtlJhq9qceI60Nr 36pg==
X-Received: by 10.112.51.135 with SMTP id k7mr10603540lbo.39.1408097159726; Fri, 15 Aug 2014 03:05:59 -0700 (PDT)
Received: from [10.36.226.2] ([80.169.137.63]) by mx.google.com with ESMTPSA id t3sm12068303lby.22.2014.08.15.03.05.58 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Aug 2014 03:05:58 -0700 (PDT)
Message-ID: <53EDDB85.6070304@gmail.com>
Date: Fri, 15 Aug 2014 11:05:57 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Brian Campbell <bcampbell@pingidentity.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <CA+k3eCRbC=xOhTKOZ5K_i6X6NzYkF3j+X+5JQenLPF6kmpXEwg@mail.gmail.com>
In-Reply-To: <CA+k3eCRbC=xOhTKOZ5K_i6X6NzYkF3j+X+5JQenLPF6kmpXEwg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/vnVzEGve7MAGPVsC8nRrYt_jQmM
Cc: Richard Barnes <rlb@ipv.sx>, Justin Richer <jricher@mitre.org>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Aug 2014 10:06:06 -0000

Sorry for returning to it,

Brian, IMHO, jose4J would do really well in the Apache (Software 
Foundation) landscape, just a thought which you may've heard not once 
already.

In your presentation you referred to JWK being like self-signed certs. 
Yes, Justin explained they are not X509 certs, rather the containers for 
the raw key info. The lack of the associated trust chain does bring an 
analogy to the self-signed certificates.

However I can see JWK can hold X509 related properties. As such it 
appears that it is feasible that browsers could support JWK indirectly 
eventually. That would likely require JWS being supported at the TLS 
level...


Thanks, Sergey

On 14/08/14 18:46, Brian Campbell wrote:
> One pattern that's emerging as popular is to publish (and periodically
> rotate) a JWK Set at an HTTPS endpoint and reference they key used for
> individual messages by kid. OpenID Connect uses that model - it's
> discussed in some more detail in section 10:
> http://openid.net/specs/openid-connect-core-1_0.html#SigEnc
>
> There's not really much more info there but I discussed this a bit in a
> recent presentation I gave:
> http://www.slideshare.net/briandavidcampbell/i-left-my-jwt-in-san-jose/29
>
>
>
>
> On Thu, Aug 14, 2014 at 10:42 AM, Sergey Beryozkin <sberyozkin@gmail.com
> <mailto:sberyozkin@gmail.com>> wrote:
>
>     Hi Richard and Justin
>
>     Very helpful, many thanks !
>
>     Richard: thanks for the link, the idea of using JWK as a standard
>     medium for shipping the key (information) is something that helps to
>     understand why JWK is referred to so much in the specifications like
>     JWE/JWS
>
>     Justin: I'll try my best not to copy the Java code you linked too :-).
>
>     Thanks for links to the examples, let me ask few questions below:
>
>
>     On 14/08/14 16:04, Justin Richer wrote:
>
>         Services are starting to publish their public keys as JWK instead of
>         X509, since a JWK doesn't require a trusted CA and can be much more
>         easily rotated at runtime.
>
>     Sorry if it is off-topic, is JWK representing a public key (the
>     public exponent) is effectively a self-signed public key/cert ? What
>     provides the extra trust into such JWK ? I've heard here about JWK
>     Thumbprints ?
>
>
>         This is the class from our OAuth/OpenID
>         Connect system that builds signers and validators off of a
>         public-key
>         JWK (using the Nimbus-DS JOSE library):
>
>         https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jwt/__signer/service/impl/__JWKSetCacheService.java
>         <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java>
>
>
>         To add to that, with the private/shared key components of JWK,
>         it can be
>         a very effective key store. Our OAuth server uses this for its keys,
>         this is the class that reads the file and makes the keys
>         available as
>         Java key objects to the rest of the system:
>
>         https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jose/__keystore/JWKSetKeyStore.java
>         <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java>
>
>         As you can see, these are both exceedingly simple classes
>         because they
>         simple read the URL (in the first case) or file (in the second
>         case) and
>         parse the JSON found there into a JWK set, which is then used to
>         create
>         the bare keys in the Java security framework. This is the RSA
>         public key
>         parser for example:
>
>         https://bitbucket.org/__connect2id/nimbus-jose-jwt/__src/__0d5b12b4d4b84c822bec4af368b3be__a5120cb310/src/main/java/com/__nimbusds/jose/jwk/RSAKey.java?__at=master#cl-1395
>         <https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395>
>
>
>         Finally, in order to make these keys more easy to deal with, we
>         wrote a
>         simple key generator program that will spin up a new RSA, EC, or
>         Oct key
>         and print it out as a JWK:
>
>         https://github.com/mitreid-__connect/json-web-key-generator
>         <https://github.com/mitreid-connect/json-web-key-generator>
>
>
>         Whenever we deploy a new copy of our server somewhere, we also
>         pull down
>         this program and run it to generate a new JWK key set (with
>         public and
>         private keys) that we use to start up the server. The
>         alternative, which
>         we used to do, was to use OpenSSL to generate a self-signed X509
>         certificate that we effectively threw away the trust chain for
>         -- lots
>         of extra effort to create information that we didn't want and then
>         ignore it on the far end, all to get a simple keypair. It was
>         unnecessarily complex from all ends, and the switch to JWK has
>         been much
>         nicer to deal with.
>
>     Is the simplicity of making a demo application running fast a major
>     factor of preferring JWK to self-signed X509  ? What about the
>     synchronization between the existing X509-based key storage and the
>     new JWK-aware storages ?
>
>     Thanks, Sergey
>
>            -- Justin
>
>         On 08/14/2014 09:25 AM, Richard Barnes wrote:
>
>             Hey Sergey,
>
>             JWK isn't necessarily tied to JWE or JWS.  It can be used to
>             represent
>             the public key that was used to encrypt a JWE (so that the
>             recipient
>             can look up the private key), or the public key that should
>             be used to
>             verify a JWS.  But it can also be used in other contexts.  For
>             example, WebCrypto uses JWK (among others) as a format for
>             serializing
>             keys.
>             https://dvcs.w3.org/hg/__webcrypto-api/raw-file/tip/__spec/Overview.html#__subtlecrypto-interface-__datatypes
>             <https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes>
>
>             As that link suggests, JWK is effectively the same as the PKCS#8
>             format for private keys and the SubjectPublicKeyInfo format
>             for public
>             keys -- just in JSON instead of ASN.1.  It's a way to ship a
>             key from
>             one place to another, for whatever reason you need to do that.
>
>             Hope that helps,
>             --Richard
>
>
>
>
>
>             On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>             <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>
>             <mailto:sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>>>
>             wrote:
>
>                  Hi,
>
>                  This is very likely a newbie question. What is the role
>             of JWK ?
>                  According to [1] it is "... a (JSON) data structure that
>                  represents a cryptographic key".
>
>                  I can see plenty examples of JWK in the JWE
>             specification. JWS and
>                  JWE headers can have a "jwk" property representing a
>             given JWK.
>
>                  What confuses me is that the examples in JWE use JWK to
>             describe
>                  the private parts of a given key. For example, when we
>             talk about
>                  the RSA OAEP key encryption, JWK would show a private
>             exponent of
>                  a given RSA key (JWE A1). Same for Aes Wrap secret key
>             (JWE A3). Etc.
>
>                  So clearly one would not use a "jwk" JWE header to pass
>             around a
>                  JWK representation of the key which was used to encrypt the
>                  content encryption key.
>
>                  So I'm thinking a JWK is:
>                  - a convenient way to describe a cryptographic key for
>             JWE/JWS
>                  specifications to refer to it in the spec examples.
>                  - perhaps there's a long-term vision that the key
>             stores would
>                  support JWK format directly ?
>                  - JWK is a 'container' for various key properties, some
>             of those
>                  'public' properties can be passed around as a JWE/JWS
>             header;
>
>                  Am I on the right track, can someone please clarify it
>             further ?
>
>                  Thanks, Sergey
>
>
>                  [1]
>             http://tools.ietf.org/html/__draft-ietf-jose-json-web-key-__31#section-1
>             <http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1>
>
>                  _________________________________________________
>                  jose mailing list
>             jose@ietf.org <mailto:jose@ietf.org> <mailto:jose@ietf.org
>             <mailto:jose@ietf.org>>
>
>             https://www.ietf.org/mailman/__listinfo/jose
>             <https://www.ietf.org/mailman/listinfo/jose>
>
>
>
>
>             _________________________________________________
>             jose mailing list
>             jose@ietf.org <mailto:jose@ietf.org>
>             https://www.ietf.org/mailman/__listinfo/jose
>             <https://www.ietf.org/mailman/listinfo/jose>
>
>
>
>     _________________________________________________
>     jose mailing list
>     jose@ietf.org <mailto:jose@ietf.org>
>     https://www.ietf.org/mailman/__listinfo/jose
>     <https://www.ietf.org/mailman/listinfo/jose>
>
>


From nobody Fri Aug 15 14:45:40 2014
Return-Path: <odonoghue@isoc.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D3A11A02E8 for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 14:45:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level: 
X-Spam-Status: No, score=-2.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_BAD_LINEBREAK=0.5, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 e6QRTLtFpysE for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 14:45:36 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0211.outbound.protection.outlook.com [207.46.163.211]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5D7D11A0358 for <jose@ietf.org>; Fri, 15 Aug 2014 14:45:36 -0700 (PDT)
Received: from [192.168.1.101] (74.214.41.17) by CO2PR06MB588.namprd06.prod.outlook.com (10.141.229.154) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Fri, 15 Aug 2014 21:45:26 +0000
Message-ID: <53EE7F71.4020205@isoc.org>
Date: Fri, 15 Aug 2014 17:45:21 -0400
From: Karen ODonoghue <odonoghue@isoc.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "jose@ietf.org" <jose@ietf.org>
X-Enigmail-Version: 1.6
Content-Type: multipart/mixed; boundary="------------070205030604050508080208"
X-Originating-IP: [74.214.41.17]
X-ClientProxiedBy: BN3PR09CA0016.namprd09.prod.outlook.com (25.160.111.154) To CO2PR06MB588.namprd06.prod.outlook.com (10.141.229.154)
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-Forefront-PRVS: 0304E36CA3
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009004)(6009001)(6049001)(189002)(164054003)(199003)(80022001)(71186001)(20776003)(65816999)(229853001)(87976001)(50986999)(564344004)(36756003)(79102001)(64706001)(99396002)(77096002)(86362001)(74502001)(81342001)(74662001)(106356001)(65956001)(31966008)(83072002)(110136001)(65806001)(117156001)(83322001)(19580395003)(87266999)(107046002)(77982001)(107886001)(84326002)(101416001)(92726001)(4396001)(512934002)(80316001)(92566001)(54356999)(64126003)(2351001)(83506001)(46102001)(33656002)(42186005)(76482001)(512874002)(85306004)(66066001)(105586002)(21056001)(85852003)(568964001)(81542001)(95666004)(59896002)(102836001)(2501001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR06MB588; H:[192.168.1.101]; FPR:; MLV:sfv;  PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
X-OriginatorOrg: isoc.org
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/jZSF0AvBK73enQYtvyxuEELjxsw
Subject: [jose] draft minutes have been uploaded
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Aug 2014 21:45:39 -0000

--------------070205030604050508080208
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

If you have any changes or corrections, please get them to me soon.

Thanks,
Karen


--------------070205030604050508080208
Content-Type: text/plain; charset="UTF-8"; name="ietf90-jose-minutes-v2.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ietf90-jose-minutes-v2.txt"

Sk9TRSBXRyBAIElFVEYgOTANMjAxNC0wNy0yMSAoMTMwMC0xNTAwKQ0NVGhlIG1lZXRpbmcg
d2FzIGNhbGxlZCB0byBvcmRlciBieSB0aGUgY28tY2hhaXJzLCBKaW0gU2NoYWFkIGFuZCBL
YXJlbiANT9VEb25vZ2h1ZS4gUGV0ZXIgWWVlIGdyYWNpb3VzbHkgYWdyZWVkIHRvIHRha2Ug
bWludXRlcy4gVGhlIG5vdGUgd2VsbCB3YXMgDXJldmlld2VkLCBhbmQgdGhlcmUgd2VyZSBu
byBwcm9wb3NlZCBjaGFuZ2VzIHRvIHRoZSBhZ2VuZGEuIA0NQWdlbmRhOiAgaHR0cHM6Ly93
d3cuaWV0Zi5vcmcvcHJvY2VlZGluZ3MvOTAvYWdlbmRhL2FnZW5kYS05MC1qb3NlDUNoYWly
IHNsaWRlczogaHR0cHM6Ly93d3cuaWV0Zi5vcmcvcHJvY2VlZGluZ3MvOTAvc2xpZGVzL3Ns
aWRlcy05MC1qb3NlLTEucGRmDQ0yLiBPcGVuIGlzc3VlcyBvbiBmb3VyIGNvcmUgZG9jdW1l
bnRzIChDaGFpcnMpCmRyYWZ0LWlldGYtam9zZS1qc29uLXdlYi1hbGdvcml0aG1zLTMxCmRy
YWZ0LWlldGYtam9zZS1qc29uLXdlYi1lbmNyeXB0aW9uLTMxCmRyYWZ0LWlldGYtam9zZS1q
c29uLXdlYi1rZXktMzEKZHJhZnQtaWV0Zi1qb3NlLWpzb24td2ViLXNpZ25hdHVyZS0zMQ0N
QWxsIGRvY3VtZW50cyBoYXZlIGJlZW4gcmV2aWV3ZWQgYnkgS2F0aGxlZW4gTW9yaWFydHkg
KFNlY3VyaXR5IEFEKS4gIFRoZXJlIA1hcmUgdHdvIGlzc3VlcyByZW1haW5pbmc6IA0xKSB0
aGUgcmVmZXJlbmNlIGRyYWZ0LW1jZ3Jldy1hZWFkLWFlcy1jYmMtaG1hYy1zaGEyIGluc3Rl
YWQgb2YgcmVwZWF0aW5nIA10ZXh0IGluIHRoZSBqb3NlIGRvY3VtZW50czsgYW5kIA0yKSB0
aGUgY2xhcml0eSBvZiB0aGUgd29yZGluZzogb3IgdXNlIGEgSlNPTiBwYXJzZXIgdGhhdCBy
ZXR1cm5zIG9ubHkgdGhlIGxleGljYWxseSANbGFzdCBkdXBsaWNhdGUgbWVtYmVyIG5hbWUs
IGFzIHNwZWNpZmllZCBpbiBTZWN0aW9uIDE1LjEyIChUaGUgSlNPTiBPYmplY3QpIG9mIA1F
Q01BU2NyaXB0IDUuMSBbRUNNQVNjcmlwdF0NQXQgdGhpcyBwb2ludCB0aGUgZG9jdW1lbnRz
IGNhbiBnbyB0byBsYXN0IGNhbGwsIGFuZCB3ZSB3aWxsIHJlc29sdmUgdGhvc2UgDXJlbWFp
bmluZyB0b3BpY3MgYXQgdGhhdCB0aW1lLiANDTMuIENvb2tib29rIChNYXR0IE1pbGxlcikN
ZHJhZnQtaWV0Zi1qb3NlLWNvb2tib29rLTAzDQ1NYXR0IE1pbGxlciB1cGRhdGVkIHRoZSBk
cmFmdCBjb29rYm9vay4gIEJyaWFuIENhbXBiZWxsIGFuZCBvdGhlcnMgaGF2ZSBkb25lIA1l
eGFtcGxlIHZlcmlmaWNhdGlvbnMuICBCcmlhbiBDYW1wYmVsbCBoYXMgYWxzbyBwcm92aWRl
ZCBzb21lIHRleHQgdXBkYXRlcyB0aGF0IA1NYXR0IGhhc27VdCBoYWQgYSBjaGFuY2UgdG8g
aW5zZXJ0IHlldCwgYnV0IGhlIHdpbGwgZG8gc28gc2hvcnRseSAodGltZWZyYW1lIGlzIA10
YmQpLiAgVGhlbiB0aGUgZG9jdW1lbnQgd2lsbCBiZSByZWFkeSBmb3IgV0dMQy4NIA00LiBK
U09OIFdlYiBLZXkgVGh1bWJwcmludCAoTWlrZSBKb25lcykNZHJhZnQtam9uZXMtam9zZS1q
d2stdGh1bWJwcmludC0wMA1TbGlkZXM6IGh0dHBzOi8vd3d3LmlldGYub3JnL3Byb2NlZWRp
bmdzLzkwL3NsaWRlcy9zbGlkZXMtOTAtam9zZS0wLnBkZg0NTWlrZSBKb25lcyBwcmVzZW50
ZWQgaGlzIGRyYWZ0IG9uIEpXSyB0aHVtYnByaW50cy4gVGhlcmUgaGFzIGJlZW4gYSBuZWVk
IA1pZGVudGlmaWVkIGZvciBhIHRodW1icHJpbnQgZm9yIGtleXMgdGhhdCB3ZXJlIGluIG5v
bi1YLjUwOSBmb3JtYXQuICBUaGlzIA13b3VsZG7VdCBiZSBhZGRlZCB0byB0aGUgY3VycmVu
dCBkb2N1bWVudHMsIGJ1dCBhcyBhbiBhZGp1bmN0LiAgVGhlIGRyYWZ0IHVzZXMgDVNIQS0y
NTYgb3ZlciBKV0sgd2l0aCByZXF1aXJlZCBrZXkgZmllbGRzIGluIFVURi04IGZvcm1hdCwg
d2l0aCBmaWVsZHMgcGxhY2VkIA1pbiBsZXhpY29ncmFwaGljYWwgb3JkZXIuICBPcmRlcmlu
ZyBvZiBjaGFyYWN0ZXJzIHJlcXVpcmluZyBlc2NhcGluZyBpcyB0aGUgb25seSANdHJpY2t5
IGFyZWEg0CBzb21lIHNvcnQgb2YgY2Fub25pY2FsaXphdGlvbiB3b3VsZCBoYXZlIHRvIGJl
IGRvbmUuICBPciB0aGUgDXByb2JsZW0gY291bGQgYmUgc29sdmVkIGJ5IG5vdCBhbGxvd2lu
ZyB0aGUgdXNlIG9mIGVzY2FwZWQgY2hhcmFjdGVycyBpbiBmaWVsZCANbmFtZXMuICANDURp
c2N1c3Npb246IA1DYXJzdGVuIEJvcm1hbm4gc3VnZ2VzdGVkIHRoZSBKU09OIFdHIGNvdWxk
IHNvbHZlIHRoaXMgcHJvYmxlbS4gIA1UaGUgSlNPTiBXRyBjaGFpciAoTWF0dCBNaWxsZXIp
IG5vdGVkIHRoYXQgdGhpcyBpc3N1ZSBoYXMgYmVlbiBkaXNjdXNzZWQgYmVmb3JlIA1idXQg
dGhlcmUgd2FzIGluc3VmZmljaWVudCBlbmVyZ3kgdG8gd29yayBvbiB0aGUgcHJvYmxlbSBh
bmQgbm8gY29uc2Vuc3VzIHdhcyANZm9ydGhjb21pbmcuICANQ2Fyc3RlbiBCb3JtYW5uIGJl
bGlldmVzIHRoYXQgYSBzaW5nbGUgc29sdXRpb24gZm9yIGFsbCBKU09OLXVzaW5nIFdHcyB3
b3VsZCANYmUgYmVzdCwgaGVuY2UgYXJndWluZyBmb3IgdGhlIEpTT04gV0cgdG8gc29sdmUg
aXQgY2Fub25pY2FsbHkuICANTWlrZSBKb25lcyBicm91Z2h0IHVwIHRoZSBwb2ludCB0aGF0
IHNvIGZhciB0YWcgdmFsdWVzIGFyZSBhbGwgQVNDSUkgYW5kIGRvbtV0IA1ydW4gaW50byB0
aGUgcHJvYmxlbS4gIA1DYXJzdGVuIEJvcm1hbm4gbGlrZXMgYSBydWxlIGZvciBjYW5vbmlj
YWxpemF0aW9uIHRoYXQgc2F5cyB1c2UgdGhlIHNob3J0ZXN0IA1yZXByZXNlbnRhdGlvbiBh
bmQgd2hlcmUgdGhlcmUgYXJlIGNhc2UgaXNzdWVzLCBhbHdheXMgcmVxdWlyZSB1cHBlciBj
YXNlLiAgQSANcG9pbnRlciB0byBSRkMgNzE1OSB3b3VsZCBoZWxwIHNvbWV3aGF0LiAgDVBo
aWwgSHVudCBzYXlzIHRoYXQgdGhlIFBSRUNJUyBXRyBoYXMgYW4gYWxnb3JpdGhtIHRoYXQg
cHJvZHVjZXMgY29tcGFyYWJsZSANc3RyaW5ncy4gIA1NaWtlIEpvbmVzIHNheXMgd2XVdmUg
YmVlbiBwcmV0dHkgY2xlYXIgdGhhdCBuYW1lcyBzaG91bGQgbm90IGJlIHRyYW5zZm9ybWVk
IA1mb3IgY29tcGFyaXNvbi4gIA1NYXR0IE1pbGxlcjogYnJpbmdpbmcgaW4gUFJFQ0lTIGJl
eW9uZCB3aGF0IHdl1XZlIGRvbmUgd2l0aCBwYXNzd29yZCANdHJhbnNmb3JtcyBpcyBub3Qg
YSBnb29kIGlkZWEuICANTWlrZSBKb25lczogU2VjdXJpdHkgQUQgc2F5cyB0aGF0IGJlY2F1
c2Ugbm8gc3RyaW5ncyAoZXhjZXB0IGZvciBwYXNzd29yZHMpIGFyZSANaW50ZW5kZWQgZm9y
IGh1bWFuIGNvbnN1bXB0aW9uLCBub3IgYXJlIHRoZXkgbm9ybWFsbHkgZ2VuZXJhdGVkIGJ5
IGh1bWFuLCANd2UgZG9u1XQgaGF2ZSBhIHJlYWwgcHJvYmxlbSBoZXJlLiAgDUppbSBTY2hh
YWQ6IGFub3RoZXIgc29sdXRpb246IHlvdSBjb3VsZCBqdXN0IG9taXQgYW55dGhpbmcgdGhh
dCBpcyBlc2NhcGVkIGZyb20gDXlvdXIgb3V0cHV0LCBzaW5jZSB0aGUgbWFwcGluZyBpc27V
dCBndWFyYW50ZWVkIHRvIGJlIHVuaXF1ZS4gIA1NaWtlIEpvbmVzOiBJIHByZWZlciB1bmRl
ZmluZWQgcmVwcmVzZW50YXRpb24gKHBvc3NpYmx5IHRvIGJlIGRlZmluZWQgbGF0ZXIpIA10
aGFuIHVzaW5nIHRoYXQgc2NoZW1lLiAgDU1hdHQgTWlsbGVyOiB0aGF01XMgYW4gaW50ZXJl
c3RpbmcgYW4gaWRlYS4gIE9yIHdlIGNvdWxkIGp1c3QgdXNlIGEgd2hpdGVsaXN0INAgDXdo
YXRldmVyIGlzIHJlZ2lzdGVyZWQgZm9yIGEgZ2l2ZW4ga2V5IGlzIGFjY2VwdGFibGUsIGFu
eXRoaW5nIGVsc2UgaXMgbm90LiAgDUppbSBTY2hhYWQ6IHF1ZXN0aW9uOiB5b3XVcmUgdXNp
bmcgcmVxdWlyZWQgZmllbGRzIGZyb20gdGhlIEpXSy4gIFRoYXQgbWVhbnMgDXlvdSBtYXkg
YmUgbWlzc2luZyBzb21lIG9mIHRoZSBjb25zdHJhaW50cyBJIG1pZ2h0IHdhbnQgdG8gcHV0
IG9uIHRoZSANSldLLiAgV2h5IGlzbtV0IHRoYXQgYSBwcm9ibGVtPyAgDU1pa2UgSm9uZXM6
IHRoaXMgaXMganVzdCBhYm91dCBpZGVudGlmeWluZyB0aGUga2V5LCBub3QgY29udmV5aW5n
IGFsbCBvZiB0aGUgDW1ldGFkYXRhIHZhbHVlcyB0aGF0IG1heSBhY2NvbXBhbnkgdGhlIGtl
eS4gIFdpdGggdGhlIHRodW1icHJpbnQsIHlvdSBzaG91bGQgDWJlIGFibGUgdG8gcmV0cmll
dmUgdGhlIGtleSBhbmQgZ2V0IGFsbCBvZiB0aG9zZSBjb25zdHJhaW50cy4gDUppbSBTY2hh
YWQ6IHlvdSBtaWdodCBoYXZlIHR3byBKV0tzIHdpdGggdGhlIHNhbWUga2V5IHZhbHVlIGJ1
dCBkaWZmZXJlbnQgDWNvbnN0cmFpbnRzLiAgDU1pa2UgSm9uZXM6IHRoZSBDRlJHIHNheXMg
dGhhdCB1c2luZyBhIGtleSBmb3IgdHdvIGRpZmZlcmVudCBhbGdvcml0aG1zL3VzZXMgaXMg
DW5vdCBnb29kIGh5Z2llbmUuICANTWF0dCBNaWxsZXI6IGxpbWl0aW5nIHRoZSB0aHVtYnBy
aW50IHRvIHZlcnkgc3BlY2lmaWMgZmllbGRzIHNlZW1zIGxpa2UgYSBnb29kIA1pZGVhIHRv
IG1lLiAgDU1pa2UgSm9uZXMsIGNvbnRpbnVpbmc6IGNhbiB3ZSBhZGQgYSBjaGFydGVyIGl0
ZW0gZm9yIHRoaXMgYW5kIG1vdmUgaXQgaW50byB0aGUgDVdHPyAgSXQgd291bGQgc2VlbSBs
aWtlIHNvbWV0aGluZyB0aGF0IGNvdWxkIG1vdmUgdGhyb3VnaCB0aGUgV0cgdmVyeSANcXVp
Y2tseS4gIA1KaW0gU2NoYWFkOiBUaGUgY2hhaXJzIGFuZCBBRCBuZWVkIHRvIHZlcmlmeSB3
aGV0aGVyIHRoaXMgd29yayBpcyB3aXRoaW4gdGhlIA1zY29wZSBvZiB0aGUgV0cuICANS2F0
aGxlZW4gTW9yaWFydHk6IGhvdyBtYW55IHJldmlld2VycyB3b3VsZCB0aGVyZSBiZT8gIE1p
bGxlciBpcyB3aWxsaW5nIHRvIGRvIA1zby4gIEx1a2V3YXJtIHN1cHBvcnQgZnJvbSB0aGUg
V0cgZm9yIHRha2luZyB0aGlzIG9uLiAgDUthcmVuIE/VRG9ub2dodWU6IHBlcmhhcHMgd2Ug
c2hvdWxkIHRha2UgdGhpcyB0byB0aGUgbGlzdC4gIEluIGFueSBldmVudCwgdGhlIA1jaGFp
cnMgYW5kIFNlY3VyaXR5IEFEIHdpbGwgZGlzY3VzcyBpdCBmdXJ0aGVyLiANTWlrZSBKb25l
czogSSBoYXZlIHJlY2VpdmVkIGVub3VnaCBpbnB1dCB0byBkbyBhbm90aGVyIHJldmlzaW9u
IG9mIHRoZSBkcmFmdC4NDUFjdGlvbnMgZ29pbmcgZm9yd2FyZDoNLQlNaWtlIEpvbmVzIHdp
bGwgdXBkYXRlIHRoZSBkcmFmdA0tCVRoZSBjaGFpcnMgd2lsbCBxdWVyeSB0aGUgd29ya2lu
ZyBncm91cCBhYm91dCB0YWtpbmcgdXAgdGhpcyB3b3JrLiANIA01LiBKT1NFIHZzLiBDb25z
dHJhaW5lZCBOb2RlIE5ldHdvcmtzIChDYXJzdGVuIEJvcm1hbm4pDWh0dHBzOi8vd3d3Lmll
dGYub3JnL3Byb2NlZWRpbmdzLzkwL3NsaWRlcy9zbGlkZXMtOTAtam9zZS0yLnBkZgoKQ2Fy
c3RlbiBCb3JtYW5uIHByb3ZpZGVkIGFuIGludHJvZHVjdGlvbiB0byBDQk9SLiBNb3Zpbmcg
ZnJvbSBwbGFjZXMsIHRvIA1wZW9wbGUsIHRvIHRoaW5ncywgdGhlIGV4cGVjdGF0aW9uIGlz
IGZvciA1MCBiaWxsaW9uIG5vZGVzIGJ5IDIwMjAuICBOb2RlIHNpemUsIA1jb3N0LCBhbmQg
Y29tcGxleGl0eSBhcmUgYWxsIGdvaW5nIGRvd24uICBOb2RlcyBhcmUgaW4gdGhlIDEwS0Ig
ZGF0YSwgMTAwIEtCIA1jb2RlIHNpemUgKHF1aXRlIGNvbnN0cmFpbmVkKSB0byB0aGUgNTAg
S0IgZGF0YSwgMjUwIEtCIGNvZGUgc2l6ZSAobm90IHNvIA1jb25zdHJhaW5lZCkuICBDaGlw
LWxldmVsIGltcHJvdmVtZW50cyBhcmUgdXNlZCB0byBpbXByb3ZlIGNvc3QgYW5kIHBvd2Vy
IA11c2FnZSwgbm90IHBlcmZvcm1hbmNlLiAgVGhlc2Ugbm9kZXMgdXNlIExvdy1wb3dlciBh
bmQgbG9zc3kgbmV0d29ya3MgKExMTikgDW9mIGFib3V0IDEwMCBLYi9zIGJhbmR3aWR0aCAo
YXQgYSBoaWdoIGxvc3MpIGFuZCAxMDAtYnl0ZSBwYWNrZXQgc2l6ZS4gIFRoZSANcG9pbnQg
aXMgdGhhdCB0aGVzZSB0eXBlcyBvZiBub2RlcyByZXF1aXJlIGEgcmVjYWxpYnJhdGlvbiBv
ZiB3aGF0IHdlIGNvbnNpZGVyIA1ub3JtYWwuICBDb2RlLCBzdGF0ZSwgcGFja2V0IHRyYW5z
bWlzc2lvbiwgYW5kIGxpc3RlbmluZyBhcmUgYWxsINJjb3N0bHnTLiAgQ3J5cHRvLCANYnkg
Y29tcGFyaXNvbiB0byBuZXR3b3JrIHVzYWdlLCBpcyBhbG1vc3QgbmVnbGlnaWJseSBleHBl
bnNpdmUuICBUaGUgSUVURiANYWxyZWFkeSBoYXMgbWFueSByZWxldmFudCBXR3M6IExXSUcs
IDZMbyosIDZUaVNDSCwgUk9MTCwgQ29SRSwgRElDRSwgYW5kIA1BQ0UuICBJbiBpbXByb3Zp
bmcgdGhlIHNpdHVhdGlvbiBhdCB0aGUgYXBwbGljYXRpb24gbGF5ZXIsIGNvbXByZXNzZWQg
SFRUUCBpcyANbm90IGEgcGFydGljdWxhcmx5IHZpYWJsZSBzb2x1dGlvbiDQIHRoZSBnYWlu
cyBhcmVu1XQgc3VmZmljaWVudC4gIENvQVAgcHJvdmlkZXMgYSANbW9yZSB0YWlsb3JlZCBz
b2x1dGlvbiwgd2l0aCBzaW1wbGUgaGVhZGVycyBhbmQgcmVxdWVzdHMuICBDb0FQIGlzIFJF
U1RmdWwgYW5kIA1jYW4gcHJveHkgdG8gSFRUUC4gIFNlY3VyaXR5IGlzIG5vdCBvcHRpb25h
bCBmb3IgQ29BUCwgd2hpY2ggcnVucyBvdmVyIERUTFMgMS4yIA0oYW5kIHBlcmhhcHMgNkxv
V1BBTi1HSEMpIGF0IHRoZSAxMjgtYml0IHNlY3VyaXR5IGxldmVsLiAgRUNDIChQLTI1Nikg
aXMgDWJlaW5nIGVtYnJhY2VkIGZvciBpdHMgZWZmaWNpZW5jeS4gIFRoZSBjb25zdHJhaW5l
ZCBub2RlIGVuZ2luZWVycyBoYXZlIGJlZW4gDWNvbnNpZGVyaW5nIHN1aXRhYmxlIGRhdGEg
Zm9ybWF0cy4gIEpTT04gd2FzIGNvbnNpZGVyZWQuICBDb25zaWRlIEJpbmFyeSBPYmplY3Qg
DVJlcHJlc2VudGF0aW9uIChzb3J0IG9mIGEgYmluYXJ5IEpTT04pIHVzZXMgdGhlIGRhdGEg
bW9kZWwgb2YgSlNPTiB3aXRoIGJpbmFyeSANcmVwcmVzZW50YXRpb25zIGZvciBiaXQgZWZm
aWNpZW5jeS4gIENCT1IgaXMgYSBmYWlybHkgY29tcGFjdCByZXByZXNlbnRhdGlvbiANY29t
cGFyZWQgd2l0aCBvdGhlciBzdGFuZGFyZGl6ZWQgZm9ybWF0cy4gIFNvLCBpZiBDQk9SIGlz
IHRoZSBhbnN3ZXIsIHdoYXQgDWFib3V0IHNlY3VyaXR5IGZvciBpdD8gIFRoZSB0aG91Z2h0
IGlzIHRoYXQgSk9TRSBjb3VsZCBiZSBhZGFwdGVkIGZvciANQ0JPUi4gIFJlcXVpcmVtZW50
cyBpbmNsdWRlIGRlYWxpbmcgd2l0aCB2ZXJ5IHNtYWxsIHBheWxvYWRzLCBtaW5pbWl6YXRp
b24gb2YgDXBvd2VyIHVzYWdlIGZvciB0cmFuc21pc3Npb24vcmVjZXB0aW9uLCBtaW5pbWl6
YXRpb24gb2YgUkFNIHVzYWdlLCBhbmQgDXNpbXBsZSBjb2RlIChvd2luZyB0byB0aGUgbGFj
ayBvZiBjb2RlIHNwYWNlKS4gIFRoaW5ncyB0byBhdm9pZDogYmFzZTY0IGFuZCANSlNPTi1l
bmNvZGluZyBvZiBkYXRhLiAgVGhlINJwcm9wb3NhbNMgaXMgQ09TRSwgaW4gd2hpY2ggZWFj
aCB1c2Ugb2YgSk9TRSBpcyANcmVwbGFjZWQgYnkgYSBDQk9SIGVxdWl2YWxlbnQuICBSZXZp
ZXcgYW5kIGludmVzdGlnYXRpb24gYXJlIHdlbGNvbWVkLiAgDQ1EaXNjdXNzaW9uOg1NaWtl
IEpvbmVzOiB3b3VsZCB5b3UgdXNlIHRoZSByZWdpc3RlcmVkIGFsZ29yaXRobSBuYW1lcyBk
aXJlY3RseSBmcm9tIEpPU0U/ICANQm9ybWFubjogd2UgZG9u1XQgd2FudCB0byByZS1pbnZl
bnQgYW55dGhpbmcsIGJ1dCBpdCBtaWdodCBiZSBhIGdvb2QgaWRlYSB0byANYXNzaWduIG51
bWJlcnMgdG8gdGhvc2UgbmFtZXMgYXMgYSBtb3JlIGNvbXBhY3QgcmVwcmVzZW50YXRpb24u
ICBUaG9zZSANdGhpbmdzIGFyZSB0aGlyZC1vcmRlciBvcHRpbWl6YXRpb25zLCBob3dldmVy
LiAgDUpvbmVzOiBUaW0gQnJheSBoYXMgYXNrZWQgb24gdGhlIGxpc3QgaWYgdGhlIGJlbmVm
aXRzIHdlcmUgc3VmZmljaWVudCB0byBqdXN0aWZ5IHRoZSANd29yay4gIFBlcmhhcHMgYSBz
aWRlLWJ5LXNpZGUgY29tcGFyaXNvbiB3b3VsZCBiZSB1c2VmdWwuICANQm9ybWFubjogVGlt
IGlzIHByb2JhYmx5IGZyb20gdGhlIEJpZyBJcm9uIHdvcmxkIHdoZXJlIHRoaXMgaXMgZmFy
IGxlc3MgDWJlbmVmaWNpYWwuICBJbiB0aGUgY29uc3RyYWluZWQgbm9kZSB3b3JsZCwgQ0JP
UiBpcyBtb3JlIGltcGFjdGZ1bC4gIA1Kb25lczogdGhlIG5ldHdvcmstdXNlIG1pbmltaXph
dGlvbiBpcyBhIGNvbXBlbGxpbmcgYXJndW1lbnQuICANT9VEb25vZ2h1ZTogd2hhdCBhcmUg
eW91ciBwbGFucz8gIA1Cb3JtYW5uOiB3ZSB3YW50IHRvIGltcGxlbWVudCBpdCBpbiBvcmRl
ciB0byBmaW5kIG91dCBob3cgd2VsbCBpdCB3b3JrcyBpbiANcHJhY3RpY2UuICBXZSBhbHNv
IG5lZWQgdG8gZG8gYSBkZWVwIGxvb2sgYXQgdGhlIHNlY3VyaXR5IHByb3BlcnRpZXMgdG8g
ZGV0ZXJtaW5lIA1pZiBzb21ldGhpbmcgYnJlYWtzIHdoZW4gc3dpdGNoaW5nIHRvIENPU0Ug
ZnJvbSBKT1NFLiAgUGVyaGFwcyB0aGlzIFdHIG9yIGEgDW5ldyBvbmUgd291bGQgYmUgdGhl
IHJpZ2h0IHBsYWNlIHRvIHN0YW5kYXJkaXplIHRoZXNlIGVmZm9ydHMuICANSm9uZXM6IHRo
ZSBzZWN1cml0eSBlZmZvcnRzIGluIEpPU0Ugc2hvdWxkIGFwcGx5IGZpbmUgdG8gQ09TRSBp
ZiBpdNVzIGp1c3QgYSBiaW5hcnkgDW1hcHBpbmcgYmVpbmcgZG9uZS4gIE1hbnkgb2YgdGhv
c2UgZWZmb3J0cyB3ZXJlIGFyb3VuZCBkZWxpbWl0ZWQgc3RyaW5ncyBvciANbWFraW5nIHN1
cmUgdGhhdCBjb25jYXRlbmF0aW9ucyBkaWRu1XQgaGF2ZSBvZGQgYmVoYXZpb3JzLiANDUFj
dGlvbjogTm9uZSBhdCB0aGlzIHRpbWUuIFBsZWFzZSByZXBvcnQgYmFjayBvbiBwcm9ncmVz
cy4gDQ1NZWV0aW5nIGFkam91cm5lZDogMTQ6MDAgRURUDSANDQ==
--------------070205030604050508080208--


From nobody Fri Aug 15 15:03:42 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1619D1A06DC for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 15:03:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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 TelIcgDPguZb for <jose@ietfa.amsl.com>; Fri, 15 Aug 2014 15:03:28 -0700 (PDT)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0240.outbound.protection.outlook.com [207.46.163.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 143AE1A06D2 for <jose@ietf.org>; Fri, 15 Aug 2014 15:03:28 -0700 (PDT)
Received: from CH1PR03CA005.namprd03.prod.outlook.com (10.255.156.150) by BL2PR03MB513.namprd03.prod.outlook.com (10.141.94.18) with Microsoft SMTP Server (TLS) id 15.0.1005.10; Fri, 15 Aug 2014 22:03:27 +0000
Received: from BY2FFO11FD044.protection.gbl (10.255.156.132) by CH1PR03CA005.outlook.office365.com (10.255.156.150) with Microsoft SMTP Server (TLS) id 15.0.1010.18 via Frontend Transport; Fri, 15 Aug 2014 22:03:26 +0000
Received: from mail.microsoft.com (131.107.125.37) by BY2FFO11FD044.mail.protection.outlook.com (10.1.14.229) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Fri, 15 Aug 2014 22:03:26 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.03.0195.002; Fri, 15 Aug 2014 22:03:20 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Karen ODonoghue <odonoghue@isoc.org>, "jose@ietf.org" <jose@ietf.org>
Thread-Topic: [jose] draft minutes have been uploaded
Thread-Index: AQHPuNJFul/DtH3qAEC9Q/gqmvnSd5vSNdxw
Date: Fri, 15 Aug 2014 22:03:19 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE1E7B5@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <53EE7F71.4020205@isoc.org>
In-Reply-To: <53EE7F71.4020205@isoc.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.73]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE1E7B5TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(377454003)(199003)(13464003)(189002)(164054003)(66066001)(95666004)(81156004)(106116001)(77096002)(84326002)(16236675004)(71186001)(512954002)(19300405004)(46102001)(64706001)(69596002)(20776003)(86612001)(68736004)(80022001)(79102001)(81542001)(107046002)(106466001)(81342001)(86362001)(55846006)(107886001)(92726001)(4396001)(77982001)(104016003)(97736001)(85852003)(83072002)(26826002)(76482001)(74662001)(2656002)(99396002)(76176999)(15202345003)(87936001)(31966008)(85306004)(15975445006)(50986999)(92566001)(33656002)(19625215002)(6806004)(83322001)(21056001)(44976005)(74502001)(19580405001)(54356999)(84676001)(19580395003)(2501001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB513; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 0304E36CA3
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/Ac9J1O1Q3a8xra6fMIwNeTDo74s
Subject: Re: [jose] draft minutes have been uploaded
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Aug 2014 22:03:40 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE1E7B5TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

"Carsten Bormann suggested the JSON WG could solve this problem" -> "Carste=
n Bormann suggested the JSON WG could solve the JSON canonicalization probl=
em"



"in which each use of JOSE is replaced by a CBOR equivalent" -> "in which e=
ach use of JSON is replaced by a CBOR equivalent"



"the network-use minimization is a compelling argument" -> "the network-use=
 minimization is a compelling argument for power consumption reasons"



-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue
Sent: Friday, August 15, 2014 2:45 PM
To: jose@ietf.org
Subject: [jose] draft minutes have been uploaded



If you have any changes or corrections, please get them to me soon.



Thanks,

Karen



--_000_4E1F6AAD24975D4BA5B16804296739439AE1E7B5TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText">&#8220;Carsten Bormann suggested the JSON WG coul=
d solve this problem&#8221; -&gt; &#8220;Carsten Bormann suggested the JSON=
 WG could solve the
<span style=3D"background:yellow;mso-highlight:yellow">JSON canonicalizatio=
n</span> problem&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&#8220;in which each use of JOSE is replaced by a=
 CBOR equivalent&#8221; -&gt; &#8220;in which each use of
<span style=3D"background:yellow;mso-highlight:yellow">JSON</span> is repla=
ced by a CBOR equivalent&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&#8220;the network-use minimization is a compelli=
ng argument&#8221; -&gt; &#8220;the network-use minimization is a compellin=
g argument
<span style=3D"background:yellow;mso-highlight:yellow">for power consumptio=
n reasons</span>&#8221;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue<br>
Sent: Friday, August 15, 2014 2:45 PM<br>
To: jose@ietf.org<br>
Subject: [jose] draft minutes have been uploaded</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">If you have any changes or corrections, please ge=
t them to me soon.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Thanks,<o:p></o:p></p>
<p class=3D"MsoPlainText">Karen<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE1E7B5TK5EX14MBXC293r_--


From nobody Sat Aug 16 01:34:15 2014
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44DF11A03B3 for <jose@ietfa.amsl.com>; Sat, 16 Aug 2014 01:34:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.4
X-Spam-Level: 
X-Spam-Status: No, score=-0.4 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, FREEMAIL_REPLY=1, J_CHICKENPOX_41=0.6, 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 x8i5DGPHCEMa for <jose@ietfa.amsl.com>; Sat, 16 Aug 2014 01:34:11 -0700 (PDT)
Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C92711A0377 for <jose@ietf.org>; Sat, 16 Aug 2014 01:34:10 -0700 (PDT)
Received: by mail-wi0-f178.google.com with SMTP id hi2so1653322wib.11 for <jose@ietf.org>; Sat, 16 Aug 2014 01:34:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ZFgCF/ivtO1EvsSVu1pekENUGoLobK0N1mMBpWMvEcE=; b=Saboyr1RzGNA2sTJ0ZNh6AE2Fhkitwc+MhC9GTSZixv6wrBdB6co7aqvgt9DNOPp8f G5ASsMnmFODMfEyJyfqWWpwUe2UcP/jzOdiQ4Teed6wq7sqE/A4fHcuSmG+qGYCip0U8 ZKNI1XlUoFoaIjC59QMVlm77XD7JNdenRAJjfjfI8MOZFR4smMWX++WBweO1sTUGz77X pyrPY4CsLAZiobmsSSeFx9H532ZjX82NQRPjUMX98mdhiwSPyGn98rCZCxvSpO/DiTB9 QUYdXOLnEibyZuTpjLtFjGwZFucDKRKVVdZkc/VAIt5FkDjZbZnWB7Z0gCWJsQWQG55t MDQA==
X-Received: by 10.180.74.42 with SMTP id q10mr26808805wiv.39.1408178049369; Sat, 16 Aug 2014 01:34:09 -0700 (PDT)
Received: from [192.168.1.79] (6.196.130.77.rev.sfr.net. [77.130.196.6]) by mx.google.com with ESMTPSA id gi15sm24955064wjc.20.2014.08.16.01.34.08 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 16 Aug 2014 01:34:08 -0700 (PDT)
Message-ID: <53EF1771.9000409@gmail.com>
Date: Sat, 16 Aug 2014 10:33:53 +0200
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Sergey Beryozkin <sberyozkin@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <CA+k3eCRbC=xOhTKOZ5K_i6X6NzYkF3j+X+5JQenLPF6kmpXEwg@mail.gmail.com> <53EDDB85.6070304@gmail.com>
In-Reply-To: <53EDDB85.6070304@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/8d9ZNexmKYlyZlIIZf_OGRWXVbY
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Aug 2014 08:34:14 -0000

On 2014-08-15 12:05, Sergey Beryozkin wrote:
> Sorry for returning to it,
>
> Brian, IMHO, jose4J would do really well in the Apache (Software
> Foundation) landscape, just a thought which you may've heard not once
> already.
>
> In your presentation you referred to JWK being like self-signed certs.
> Yes, Justin explained they are not X509 certs, rather the containers for
> the raw key info. The lack of the associated trust chain does bring an
> analogy to the self-signed certificates.
>
> However I can see JWK can hold X509 related properties. As such it
> appears that it is feasible that browsers could support JWK indirectly
> eventually. That would likely require JWS being supported at the TLS
> level...

Hi Sergey,

May I as developer in this space offer my opinion on this matter?

Browsers will soon support JWK directly through W3C WebCrypto.

However, browser/platform key-stores typically use proprietary formats
and TLS structures are binary.

Although JWK [maybe] could replace PEM and PKCS #12, I don't think that will
happen either.

That is, from my horizon (FWIW), the JOSE standards will probably only be
used in *new* schemes.  This isn't too bad since there are a lot of such in
the workings, including payment systems.

Regarding certificates versus public keys, the FIDO alliance craze seems
to indicate that client-side PKI is not so hot anymore.  Personally, I
would take this with a grain of salt :-)

Anders

>
>
> Thanks, Sergey
>
> On 14/08/14 18:46, Brian Campbell wrote:
>> One pattern that's emerging as popular is to publish (and periodically
>> rotate) a JWK Set at an HTTPS endpoint and reference they key used for
>> individual messages by kid. OpenID Connect uses that model - it's
>> discussed in some more detail in section 10:
>> http://openid.net/specs/openid-connect-core-1_0.html#SigEnc
>>
>> There's not really much more info there but I discussed this a bit in a
>> recent presentation I gave:
>> http://www.slideshare.net/briandavidcampbell/i-left-my-jwt-in-san-jose/29
>>
>>
>>
>>
>> On Thu, Aug 14, 2014 at 10:42 AM, Sergey Beryozkin <sberyozkin@gmail.com
>> <mailto:sberyozkin@gmail.com>> wrote:
>>
>>      Hi Richard and Justin
>>
>>      Very helpful, many thanks !
>>
>>      Richard: thanks for the link, the idea of using JWK as a standard
>>      medium for shipping the key (information) is something that helps to
>>      understand why JWK is referred to so much in the specifications like
>>      JWE/JWS
>>
>>      Justin: I'll try my best not to copy the Java code you linked too :-).
>>
>>      Thanks for links to the examples, let me ask few questions below:
>>
>>
>>      On 14/08/14 16:04, Justin Richer wrote:
>>
>>          Services are starting to publish their public keys as JWK instead of
>>          X509, since a JWK doesn't require a trusted CA and can be much more
>>          easily rotated at runtime.
>>
>>      Sorry if it is off-topic, is JWK representing a public key (the
>>      public exponent) is effectively a self-signed public key/cert ? What
>>      provides the extra trust into such JWK ? I've heard here about JWK
>>      Thumbprints ?
>>
>>
>>          This is the class from our OAuth/OpenID
>>          Connect system that builds signers and validators off of a
>>          public-key
>>          JWK (using the Nimbus-DS JOSE library):
>>
>>          https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jwt/__signer/service/impl/__JWKSetCacheService.java
>>          <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java>
>>
>>
>>          To add to that, with the private/shared key components of JWK,
>>          it can be
>>          a very effective key store. Our OAuth server uses this for its keys,
>>          this is the class that reads the file and makes the keys
>>          available as
>>          Java key objects to the rest of the system:
>>
>>          https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jose/__keystore/JWKSetKeyStore.java
>>          <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java>
>>
>>          As you can see, these are both exceedingly simple classes
>>          because they
>>          simple read the URL (in the first case) or file (in the second
>>          case) and
>>          parse the JSON found there into a JWK set, which is then used to
>>          create
>>          the bare keys in the Java security framework. This is the RSA
>>          public key
>>          parser for example:
>>
>>          https://bitbucket.org/__connect2id/nimbus-jose-jwt/__src/__0d5b12b4d4b84c822bec4af368b3be__a5120cb310/src/main/java/com/__nimbusds/jose/jwk/RSAKey.java?__at=master#cl-1395
>>          <https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395>
>>
>>
>>          Finally, in order to make these keys more easy to deal with, we
>>          wrote a
>>          simple key generator program that will spin up a new RSA, EC, or
>>          Oct key
>>          and print it out as a JWK:
>>
>>          https://github.com/mitreid-__connect/json-web-key-generator
>>          <https://github.com/mitreid-connect/json-web-key-generator>
>>
>>
>>          Whenever we deploy a new copy of our server somewhere, we also
>>          pull down
>>          this program and run it to generate a new JWK key set (with
>>          public and
>>          private keys) that we use to start up the server. The
>>          alternative, which
>>          we used to do, was to use OpenSSL to generate a self-signed X509
>>          certificate that we effectively threw away the trust chain for
>>          -- lots
>>          of extra effort to create information that we didn't want and then
>>          ignore it on the far end, all to get a simple keypair. It was
>>          unnecessarily complex from all ends, and the switch to JWK has
>>          been much
>>          nicer to deal with.
>>
>>      Is the simplicity of making a demo application running fast a major
>>      factor of preferring JWK to self-signed X509  ? What about the
>>      synchronization between the existing X509-based key storage and the
>>      new JWK-aware storages ?
>>
>>      Thanks, Sergey
>>
>>             -- Justin
>>
>>          On 08/14/2014 09:25 AM, Richard Barnes wrote:
>>
>>              Hey Sergey,
>>
>>              JWK isn't necessarily tied to JWE or JWS.  It can be used to
>>              represent
>>              the public key that was used to encrypt a JWE (so that the
>>              recipient
>>              can look up the private key), or the public key that should
>>              be used to
>>              verify a JWS.  But it can also be used in other contexts.  For
>>              example, WebCrypto uses JWK (among others) as a format for
>>              serializing
>>              keys.
>>              https://dvcs.w3.org/hg/__webcrypto-api/raw-file/tip/__spec/Overview.html#__subtlecrypto-interface-__datatypes
>>              <https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes>
>>
>>              As that link suggests, JWK is effectively the same as the PKCS#8
>>              format for private keys and the SubjectPublicKeyInfo format
>>              for public
>>              keys -- just in JSON instead of ASN.1.  It's a way to ship a
>>              key from
>>              one place to another, for whatever reason you need to do that.
>>
>>              Hope that helps,
>>              --Richard
>>
>>
>>
>>
>>
>>              On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>>              <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>
>>              <mailto:sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>>>
>>              wrote:
>>
>>                   Hi,
>>
>>                   This is very likely a newbie question. What is the role
>>              of JWK ?
>>                   According to [1] it is "... a (JSON) data structure that
>>                   represents a cryptographic key".
>>
>>                   I can see plenty examples of JWK in the JWE
>>              specification. JWS and
>>                   JWE headers can have a "jwk" property representing a
>>              given JWK.
>>
>>                   What confuses me is that the examples in JWE use JWK to
>>              describe
>>                   the private parts of a given key. For example, when we
>>              talk about
>>                   the RSA OAEP key encryption, JWK would show a private
>>              exponent of
>>                   a given RSA key (JWE A1). Same for Aes Wrap secret key
>>              (JWE A3). Etc.
>>
>>                   So clearly one would not use a "jwk" JWE header to pass
>>              around a
>>                   JWK representation of the key which was used to encrypt the
>>                   content encryption key.
>>
>>                   So I'm thinking a JWK is:
>>                   - a convenient way to describe a cryptographic key for
>>              JWE/JWS
>>                   specifications to refer to it in the spec examples.
>>                   - perhaps there's a long-term vision that the key
>>              stores would
>>                   support JWK format directly ?
>>                   - JWK is a 'container' for various key properties, some
>>              of those
>>                   'public' properties can be passed around as a JWE/JWS
>>              header;
>>
>>                   Am I on the right track, can someone please clarify it
>>              further ?
>>
>>                   Thanks, Sergey
>>
>>
>>                   [1]
>>              http://tools.ietf.org/html/__draft-ietf-jose-json-web-key-__31#section-1
>>              <http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1>
>>
>>                   _________________________________________________
>>                   jose mailing list
>>              jose@ietf.org <mailto:jose@ietf.org> <mailto:jose@ietf.org
>>              <mailto:jose@ietf.org>>
>>
>>              https://www.ietf.org/mailman/__listinfo/jose
>>              <https://www.ietf.org/mailman/listinfo/jose>
>>
>>
>>
>>
>>              _________________________________________________
>>              jose mailing list
>>              jose@ietf.org <mailto:jose@ietf.org>
>>              https://www.ietf.org/mailman/__listinfo/jose
>>              <https://www.ietf.org/mailman/listinfo/jose>
>>
>>
>>
>>      _________________________________________________
>>      jose mailing list
>>      jose@ietf.org <mailto:jose@ietf.org>
>>      https://www.ietf.org/mailman/__listinfo/jose
>>      <https://www.ietf.org/mailman/listinfo/jose>
>>
>>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>


From nobody Mon Aug 18 02:20:49 2014
Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D4A2D1A0386 for <jose@ietfa.amsl.com>; Mon, 18 Aug 2014 02:20:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.499
X-Spam-Level: 
X-Spam-Status: No, score=0.499 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_41=0.6, 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 3M_0bD3t0Kcg for <jose@ietfa.amsl.com>; Mon, 18 Aug 2014 02:20:45 -0700 (PDT)
Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A01971A0385 for <jose@ietf.org>; Mon, 18 Aug 2014 02:20:44 -0700 (PDT)
Received: by mail-wi0-f174.google.com with SMTP id d1so3376710wiv.13 for <jose@ietf.org>; Mon, 18 Aug 2014 02:20:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=m89ejUqR+iqqXTKET5paCKYiKWQn+c3pcS7H53vW2RE=; b=BXbbsknsEygjMB7LOADmPTjjOoRzrGlMw/hcfxJhwqvmudBe4tg/AdYnfvimTv0wfM MtMFnd5uV5WNXtxCNm+VDdwaFaRLcwjXzl7D80Q0VFZxqd42oKs51D9pFtEK+YPGadWH N53IGgKlBFkFiwzTGx+gdd5UpIqavS0qb5tA7wS8obbYd9WOcguUnxosR8TZn4AYlTUt lCNVjgfAezsSdfCgl241SzJqVVqnCO9zV4JzUkm4s4sESx4nntrwoxPnw/1e+72tYOjl qP91EMWFEEE+0P5Z1ruGrxQxLDGM/y/1w6GTeQmWpMyVT399Gv8yi4FR0gST8NIVEWi1 6ncg==
X-Received: by 10.181.9.104 with SMTP id dr8mr16507913wid.26.1408353643208; Mon, 18 Aug 2014 02:20:43 -0700 (PDT)
Received: from [192.168.2.7] ([109.255.231.6]) by mx.google.com with ESMTPSA id r20sm36053917wik.0.2014.08.18.02.20.42 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 02:20:42 -0700 (PDT)
Message-ID: <53F1C569.2020908@gmail.com>
Date: Mon, 18 Aug 2014 10:20:41 +0100
From: Sergey Beryozkin <sberyozkin@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version: 1.0
To: Anders Rundgren <anders.rundgren.net@gmail.com>
References: <4E1F6AAD24975D4BA5B16804296739439AE1989B@TK5EX14MBXC293.redmond.corp.microsoft.com> <53EC868E.4000000@gmail.com> <CAL02cgS7LxLBWNRdh5EOKwyuiBSsR0jsmMz49c9xztfZehZP_A@mail.gmail.com> <53ECCFF8.9090305@mitre.org> <53ECE6F6.8000400@gmail.com> <CA+k3eCRbC=xOhTKOZ5K_i6X6NzYkF3j+X+5JQenLPF6kmpXEwg@mail.gmail.com> <53EDDB85.6070304@gmail.com> <53EF1771.9000409@gmail.com>
In-Reply-To: <53EF1771.9000409@gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/MyCHa0Gf0zv94ibjIw3eCLkd3uM
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] The role of JWK
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Aug 2014 09:20:47 -0000

Hi Anders,

On 16/08/14 09:33, Anders Rundgren wrote:
> On 2014-08-15 12:05, Sergey Beryozkin wrote:
>> Sorry for returning to it,
>>
>> Brian, IMHO, jose4J would do really well in the Apache (Software
>> Foundation) landscape, just a thought which you may've heard not once
>> already.
>>
>> In your presentation you referred to JWK being like self-signed certs.
>> Yes, Justin explained they are not X509 certs, rather the containers for
>> the raw key info. The lack of the associated trust chain does bring an
>> analogy to the self-signed certificates.
>>
>> However I can see JWK can hold X509 related properties. As such it
>> appears that it is feasible that browsers could support JWK indirectly
>> eventually. That would likely require JWS being supported at the TLS
>> level...
>
> Hi Sergey,
>
> May I as developer in this space offer my opinion on this matter?
>
Sure :-), it's very welcome

> Browsers will soon support JWK directly through W3C WebCrypto.
>
> However, browser/platform key-stores typically use proprietary formats
> and TLS structures are binary.
I ended up reading parts of WebCrypto yesterday, should've done it 
earlier, after Richard's reply. I did not realize using the JOSE 
structures was actually one of Web Crypto use cases (though Web Crypto 
API (key management) making it simpler to use JWE/JWS from the browser)
>
> Although JWK [maybe] could replace PEM and PKCS #12, I don't think that
> will
> happen either.
>
> That is, from my horizon (FWIW), the JOSE standards will probably only be
> used in *new* schemes.  This isn't too bad since there are a lot of such in
> the workings, including payment systems.
>
> Regarding certificates versus public keys, the FIDO alliance craze seems
> to indicate that client-side PKI is not so hot anymore.  Personally, I
> would take this with a grain of salt :-)
>
I'm learning something new with every reply, I was not aware of the FIDO 
alliance at all :-)

Thanks
Sergey

> Anders
>
>>
>>
>> Thanks, Sergey
>>
>> On 14/08/14 18:46, Brian Campbell wrote:
>>> One pattern that's emerging as popular is to publish (and periodically
>>> rotate) a JWK Set at an HTTPS endpoint and reference they key used for
>>> individual messages by kid. OpenID Connect uses that model - it's
>>> discussed in some more detail in section 10:
>>> http://openid.net/specs/openid-connect-core-1_0.html#SigEnc
>>>
>>> There's not really much more info there but I discussed this a bit in a
>>> recent presentation I gave:
>>> http://www.slideshare.net/briandavidcampbell/i-left-my-jwt-in-san-jose/29
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Aug 14, 2014 at 10:42 AM, Sergey Beryozkin <sberyozkin@gmail.com
>>> <mailto:sberyozkin@gmail.com>> wrote:
>>>
>>>      Hi Richard and Justin
>>>
>>>      Very helpful, many thanks !
>>>
>>>      Richard: thanks for the link, the idea of using JWK as a standard
>>>      medium for shipping the key (information) is something that
>>> helps to
>>>      understand why JWK is referred to so much in the specifications
>>> like
>>>      JWE/JWS
>>>
>>>      Justin: I'll try my best not to copy the Java code you linked
>>> too :-).
>>>
>>>      Thanks for links to the examples, let me ask few questions below:
>>>
>>>
>>>      On 14/08/14 16:04, Justin Richer wrote:
>>>
>>>          Services are starting to publish their public keys as JWK
>>> instead of
>>>          X509, since a JWK doesn't require a trusted CA and can be
>>> much more
>>>          easily rotated at runtime.
>>>
>>>      Sorry if it is off-topic, is JWK representing a public key (the
>>>      public exponent) is effectively a self-signed public key/cert ?
>>> What
>>>      provides the extra trust into such JWK ? I've heard here about JWK
>>>      Thumbprints ?
>>>
>>>
>>>          This is the class from our OAuth/OpenID
>>>          Connect system that builds signers and validators off of a
>>>          public-key
>>>          JWK (using the Nimbus-DS JOSE library):
>>>
>>>
>>> https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jwt/__signer/service/impl/__JWKSetCacheService.java
>>>
>>>
>>> <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jwt/signer/service/impl/JWKSetCacheService.java>
>>>
>>>
>>>
>>>          To add to that, with the private/shared key components of JWK,
>>>          it can be
>>>          a very effective key store. Our OAuth server uses this for
>>> its keys,
>>>          this is the class that reads the file and makes the keys
>>>          available as
>>>          Java key objects to the rest of the system:
>>>
>>>
>>> https://github.com/mitreid-__connect/OpenID-Connect-Java-__Spring-Server/blob/master/__openid-connect-common/src/__main/java/org/mitre/jose/__keystore/JWKSetKeyStore.java
>>>
>>>
>>> <https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java>
>>>
>>>
>>>          As you can see, these are both exceedingly simple classes
>>>          because they
>>>          simple read the URL (in the first case) or file (in the second
>>>          case) and
>>>          parse the JSON found there into a JWK set, which is then
>>> used to
>>>          create
>>>          the bare keys in the Java security framework. This is the RSA
>>>          public key
>>>          parser for example:
>>>
>>>
>>> https://bitbucket.org/__connect2id/nimbus-jose-jwt/__src/__0d5b12b4d4b84c822bec4af368b3be__a5120cb310/src/main/java/com/__nimbusds/jose/jwk/RSAKey.java?__at=master#cl-1395
>>>
>>>
>>> <https://bitbucket.org/connect2id/nimbus-jose-jwt/src/0d5b12b4d4b84c822bec4af368b3bea5120cb310/src/main/java/com/nimbusds/jose/jwk/RSAKey.java?at=master#cl-1395>
>>>
>>>
>>>
>>>          Finally, in order to make these keys more easy to deal with, we
>>>          wrote a
>>>          simple key generator program that will spin up a new RSA,
>>> EC, or
>>>          Oct key
>>>          and print it out as a JWK:
>>>
>>>          https://github.com/mitreid-__connect/json-web-key-generator
>>>          <https://github.com/mitreid-connect/json-web-key-generator>
>>>
>>>
>>>          Whenever we deploy a new copy of our server somewhere, we also
>>>          pull down
>>>          this program and run it to generate a new JWK key set (with
>>>          public and
>>>          private keys) that we use to start up the server. The
>>>          alternative, which
>>>          we used to do, was to use OpenSSL to generate a self-signed
>>> X509
>>>          certificate that we effectively threw away the trust chain for
>>>          -- lots
>>>          of extra effort to create information that we didn't want
>>> and then
>>>          ignore it on the far end, all to get a simple keypair. It was
>>>          unnecessarily complex from all ends, and the switch to JWK has
>>>          been much
>>>          nicer to deal with.
>>>
>>>      Is the simplicity of making a demo application running fast a major
>>>      factor of preferring JWK to self-signed X509  ? What about the
>>>      synchronization between the existing X509-based key storage and the
>>>      new JWK-aware storages ?
>>>
>>>      Thanks, Sergey
>>>
>>>             -- Justin
>>>
>>>          On 08/14/2014 09:25 AM, Richard Barnes wrote:
>>>
>>>              Hey Sergey,
>>>
>>>              JWK isn't necessarily tied to JWE or JWS.  It can be
>>> used to
>>>              represent
>>>              the public key that was used to encrypt a JWE (so that the
>>>              recipient
>>>              can look up the private key), or the public key that should
>>>              be used to
>>>              verify a JWS.  But it can also be used in other
>>> contexts.  For
>>>              example, WebCrypto uses JWK (among others) as a format for
>>>              serializing
>>>              keys.
>>>
>>> https://dvcs.w3.org/hg/__webcrypto-api/raw-file/tip/__spec/Overview.html#__subtlecrypto-interface-__datatypes
>>>
>>>
>>> <https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#subtlecrypto-interface-datatypes>
>>>
>>>
>>>              As that link suggests, JWK is effectively the same as
>>> the PKCS#8
>>>              format for private keys and the SubjectPublicKeyInfo format
>>>              for public
>>>              keys -- just in JSON instead of ASN.1.  It's a way to
>>> ship a
>>>              key from
>>>              one place to another, for whatever reason you need to do
>>> that.
>>>
>>>              Hope that helps,
>>>              --Richard
>>>
>>>
>>>
>>>
>>>
>>>              On Thu, Aug 14, 2014 at 5:51 AM, Sergey Beryozkin
>>>              <sberyozkin@gmail.com <mailto:sberyozkin@gmail.com>
>>>              <mailto:sberyozkin@gmail.com
>>> <mailto:sberyozkin@gmail.com>>>
>>>              wrote:
>>>
>>>                   Hi,
>>>
>>>                   This is very likely a newbie question. What is the
>>> role
>>>              of JWK ?
>>>                   According to [1] it is "... a (JSON) data structure
>>> that
>>>                   represents a cryptographic key".
>>>
>>>                   I can see plenty examples of JWK in the JWE
>>>              specification. JWS and
>>>                   JWE headers can have a "jwk" property representing a
>>>              given JWK.
>>>
>>>                   What confuses me is that the examples in JWE use
>>> JWK to
>>>              describe
>>>                   the private parts of a given key. For example, when we
>>>              talk about
>>>                   the RSA OAEP key encryption, JWK would show a private
>>>              exponent of
>>>                   a given RSA key (JWE A1). Same for Aes Wrap secret key
>>>              (JWE A3). Etc.
>>>
>>>                   So clearly one would not use a "jwk" JWE header to
>>> pass
>>>              around a
>>>                   JWK representation of the key which was used to
>>> encrypt the
>>>                   content encryption key.
>>>
>>>                   So I'm thinking a JWK is:
>>>                   - a convenient way to describe a cryptographic key for
>>>              JWE/JWS
>>>                   specifications to refer to it in the spec examples.
>>>                   - perhaps there's a long-term vision that the key
>>>              stores would
>>>                   support JWK format directly ?
>>>                   - JWK is a 'container' for various key properties,
>>> some
>>>              of those
>>>                   'public' properties can be passed around as a JWE/JWS
>>>              header;
>>>
>>>                   Am I on the right track, can someone please clarify it
>>>              further ?
>>>
>>>                   Thanks, Sergey
>>>
>>>
>>>                   [1]
>>>
>>> http://tools.ietf.org/html/__draft-ietf-jose-json-web-key-__31#section-1
>>>
>>> <http://tools.ietf.org/html/draft-ietf-jose-json-web-key-31#section-1>
>>>
>>>                   _________________________________________________
>>>                   jose mailing list
>>>              jose@ietf.org <mailto:jose@ietf.org> <mailto:jose@ietf.org
>>>              <mailto:jose@ietf.org>>
>>>
>>>              https://www.ietf.org/mailman/__listinfo/jose
>>>              <https://www.ietf.org/mailman/listinfo/jose>
>>>
>>>
>>>
>>>
>>>              _________________________________________________
>>>              jose mailing list
>>>              jose@ietf.org <mailto:jose@ietf.org>
>>>              https://www.ietf.org/mailman/__listinfo/jose
>>>              <https://www.ietf.org/mailman/listinfo/jose>
>>>
>>>
>>>
>>>      _________________________________________________
>>>      jose mailing list
>>>      jose@ietf.org <mailto:jose@ietf.org>
>>>      https://www.ietf.org/mailman/__listinfo/jose
>>>      <https://www.ietf.org/mailman/listinfo/jose>
>>>
>>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>>
>


From nobody Wed Aug 20 08:34:41 2014
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D31111A06EC; Wed, 20 Aug 2014 08:34:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 7jPUbddOc_1H; Wed, 20 Aug 2014 08:34:37 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id DCAF81A06AA; Wed, 20 Aug 2014 08:34:37 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p5
Auto-Submitted: auto-generated
Precedence: bulk
Sender: <iesg-secretary@ietf.org>
Message-ID: <20140820153437.29518.27733.idtracker@ietfa.amsl.com>
Date: Wed, 20 Aug 2014 08:34:37 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/6KjJRkq-yTcgGv2AJ4LiNa989hI
Cc: jose@ietf.org
Subject: [jose] Last Call: <draft-ietf-jose-json-web-algorithms-31.txt> (JSON Web Algorithms (JWA)) to Proposed Standard
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Reply-To: ietf@ietf.org
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Aug 2014 15:34:39 -0000

The IESG has received a request from the Javascript Object Signing and
Encryption WG (jose) to consider the following document:
- 'JSON Web Algorithms (JWA)'
  <draft-ietf-jose-json-web-algorithms-31.txt> as Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action. Please send substantive comments to the
ietf@ietf.org mailing lists by 2014-09-03. Exceptionally, comments may be
sent to iesg@ietf.org instead. In either case, please retain the
beginning of the Subject line to allow automated sorting.

Abstract


   The JSON Web Algorithms (JWA) specification registers cryptographic
   algorithms and identifiers to be used with the JSON Web Signature
   (JWS), JSON Web Encryption (JWE), and JSON Web Key (JWK)
   specifications.  It defines several IANA registries for these
   identifiers.




The file can be obtained via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-algorithms/

IESG discussion can be tracked via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-algorithms/ballot/


The following IPR Declarations may be related to this I-D:

   http://datatracker.ietf.org/ipr/1962/
   http://datatracker.ietf.org/ipr/1966/




From nobody Wed Aug 20 08:37:23 2014
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6443F1A06E4; Wed, 20 Aug 2014 08:37:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 gRLQCR1lT0xb; Wed, 20 Aug 2014 08:37:19 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 43EC41A06DB; Wed, 20 Aug 2014 08:37:19 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p5
Auto-Submitted: auto-generated
Precedence: bulk
Sender: <iesg-secretary@ietf.org>
Message-ID: <20140820153719.24107.45528.idtracker@ietfa.amsl.com>
Date: Wed, 20 Aug 2014 08:37:19 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/MciQFGSzRY1crxVleG7H9YWCcSA
Cc: jose@ietf.org
Subject: [jose] Last Call: <draft-ietf-jose-json-web-signature-31.txt> (JSON Web Signature (JWS)) to Proposed Standard
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Reply-To: ietf@ietf.org
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Aug 2014 15:37:20 -0000

The IESG has received a request from the Javascript Object Signing and
Encryption WG (jose) to consider the following document:
- 'JSON Web Signature (JWS)'
  <draft-ietf-jose-json-web-signature-31.txt> as Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action. Please send substantive comments to the
ietf@ietf.org mailing lists by 2014-09-03. Exceptionally, comments may be
sent to iesg@ietf.org instead. In either case, please retain the
beginning of the Subject line to allow automated sorting.

Abstract


   JSON Web Signature (JWS) represents content secured with digital
   signatures or Message Authentication Codes (MACs) using JavaScript
   Object Notation (JSON) based data structures.  Cryptographic
   algorithms and identifiers for use with this specification are
   described in the separate JSON Web Algorithms (JWA) specification and
   an IANA registry defined by that specification.  Related encryption
   capabilities are described in the separate JSON Web Encryption (JWE)
   specification.




The file can be obtained via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-signature/

IESG discussion can be tracked via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-signature/ballot/


The following IPR Declarations may be related to this I-D:

   http://datatracker.ietf.org/ipr/1969/
   http://datatracker.ietf.org/ipr/1963/




From nobody Wed Aug 20 08:38:11 2014
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6431F1A04E8; Wed, 20 Aug 2014 08:38:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 q0paO55hx4qX; Wed, 20 Aug 2014 08:38:03 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 099C71A06DB; Wed, 20 Aug 2014 08:37:56 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p5
Auto-Submitted: auto-generated
Precedence: bulk
Sender: <iesg-secretary@ietf.org>
Message-ID: <20140820153756.29992.83149.idtracker@ietfa.amsl.com>
Date: Wed, 20 Aug 2014 08:37:56 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/AZ8f80fAatec7OB68toYgZ3aq00
Cc: jose@ietf.org
Subject: [jose] Last Call: <draft-ietf-jose-json-web-key-31.txt> (JSON Web Key (JWK)) to Proposed Standard
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Reply-To: ietf@ietf.org
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Aug 2014 15:38:07 -0000

The IESG has received a request from the Javascript Object Signing and
Encryption WG (jose) to consider the following document:
- 'JSON Web Key (JWK)'
  <draft-ietf-jose-json-web-key-31.txt> as Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action. Please send substantive comments to the
ietf@ietf.org mailing lists by 2014-09-03. Exceptionally, comments may be
sent to iesg@ietf.org instead. In either case, please retain the
beginning of the Subject line to allow automated sorting.

Abstract


   A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data
   structure that represents a cryptographic key.  This specification
   also defines a JSON Web Key Set (JWK Set) JSON data structure that
   represents a set of JWKs.  Cryptographic algorithms and identifiers
   for use with this specification are described in the separate JSON
   Web Algorithms (JWA) specification and IANA registries defined by
   that specification.




The file can be obtained via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-key/

IESG discussion can be tracked via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-key/ballot/


No IPR declarations have been submitted directly on this I-D.



From nobody Wed Aug 20 08:38:49 2014
Return-Path: <iesg-secretary@ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7EBA91A04E8; Wed, 20 Aug 2014 08:38:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 9z-3AdBOS6mB; Wed, 20 Aug 2014 08:38:44 -0700 (PDT)
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 2BF2F1A06DC; Wed, 20 Aug 2014 08:38:36 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 5.6.2.p5
Auto-Submitted: auto-generated
Precedence: bulk
Sender: <iesg-secretary@ietf.org>
Message-ID: <20140820153836.24604.14718.idtracker@ietfa.amsl.com>
Date: Wed, 20 Aug 2014 08:38:36 -0700
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/ZRYeb0pSP5eta91BcvcImt2GTAc
Cc: jose@ietf.org
Subject: [jose] Last Call: <draft-ietf-jose-json-web-encryption-31.txt> (JSON Web Encryption (JWE)) to Proposed Standard
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Reply-To: ietf@ietf.org
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Aug 2014 15:38:45 -0000

The IESG has received a request from the Javascript Object Signing and
Encryption WG (jose) to consider the following document:
- 'JSON Web Encryption (JWE)'
  <draft-ietf-jose-json-web-encryption-31.txt> as Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action. Please send substantive comments to the
ietf@ietf.org mailing lists by 2014-09-03. Exceptionally, comments may be
sent to iesg@ietf.org instead. In either case, please retain the
beginning of the Subject line to allow automated sorting.

Abstract


   JSON Web Encryption (JWE) represents encrypted content using
   JavaScript Object Notation (JSON) based data structures.
   Cryptographic algorithms and identifiers for use with this
   specification are described in the separate JSON Web Algorithms (JWA)
   specification and IANA registries defined by that specification.
   Related digital signature and MAC capabilities are described in the
   separate JSON Web Signature (JWS) specification.




The file can be obtained via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-encryption/

IESG discussion can be tracked via
http://datatracker.ietf.org/doc/draft-ietf-jose-json-web-encryption/ballot/


No IPR declarations have been submitted directly on this I-D.



From nobody Mon Aug 25 09:35:32 2014
Return-Path: <ietf@augustcellars.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D99B1A00F2 for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 09:35:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.1
X-Spam-Level: 
X-Spam-Status: No, score=0.1 tagged_above=-999 required=5 tests=[BAYES_50=0.8,  RCVD_IN_DNSWL_LOW=-0.7] 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 jKt2mz5aSJxW for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 09:35:27 -0700 (PDT)
Received: from smtp4.pacifier.net (smtp4.pacifier.net [64.255.237.176]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 23B001A035E for <jose@ietf.org>; Mon, 25 Aug 2014 09:23:52 -0700 (PDT)
Received: from Philemon (c-71-197-143-164.hsd1.wa.comcast.net [71.197.143.164]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jimsch@nwlink.com) by smtp4.pacifier.net (Postfix) with ESMTPSA id B042038F48; Mon, 25 Aug 2014 09:23:50 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: <draft-ietf-jose-use-cases@tools.ietf.org>
References: <53CFC9A4.3000500@isoc.org>
In-Reply-To: <53CFC9A4.3000500@isoc.org>
Date: Mon, 25 Aug 2014 09:21:27 -0700
Message-ID: <02d601cfc080$a27139f0$e753add0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Content-Language: en-us
Thread-Index: AQGFPKiIcwAAEqjcEwinNcWM88lucpx2hnEg
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/ImUBPdcWSfUN-SpOzqVUhc0CvQM
Cc: jose@ietf.org
Subject: Re: [jose] Working Group Last Call (WGLC) for	draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Aug 2014 16:35:30 -0000

I think that you should considering adding one more example to the document.
I would not consider the document as being unable to progress without this
example, I just think it would be a good example to have in the document.

The missing example in the document that I would like to see added would be
one to deal with a password that requires both processing into UTF8 as well
as some PRECIS processing. 

The PRECIS processing could be dealt with by having either some non-ASCII
space characters or having the step of doing some NFC normalization be
applied to the string before it is used as a password.  

I believe that this would be a good example to have in the document because
of the general bias of developers to be in the US and not understand these
types of I18N issues that need to be dealt with.

Jim


-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue
Sent: Wednesday, July 23, 2014 7:42 AM
To: jose@ietf.org
Subject: [jose] Working Group Last Call (WGLC) for
draft-ietf-jose-cookbook-03

Folks,

This message starts a two week working group last call for the jose cookbook
document "Examples of Protecting Content using JavaScript Object Signing and
Encryption (JOSE)"
(https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)

Please review the document and send comments, questions to the Working Group
mailing list < jose at ietf.org > or the co-chairs <jose-chairs at
tools.ietf.org > before the end of the WGLC. 

Please note that suggested changes which include proposed text will be more
strongly considered than those without. Additionally, even if you have no
comments, statements to the effect that "I have read this document and
believe it is ready for publication" are helpful.

Regards,
Karen and Jim

_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose


From nobody Mon Aug 25 09:37:28 2014
Return-Path: <ietf@augustcellars.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1CBEF1A017A for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 09:37:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.701
X-Spam-Level: 
X-Spam-Status: No, score=-0.701 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 OpVo-Td6R0TF for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 09:37:19 -0700 (PDT)
Received: from smtp1.pacifier.net (smtp1.pacifier.net [64.255.237.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70D811A0494 for <jose@ietf.org>; Mon, 25 Aug 2014 09:25:57 -0700 (PDT)
Received: from Philemon (c-71-197-143-164.hsd1.wa.comcast.net [71.197.143.164]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jimsch@nwlink.com) by smtp1.pacifier.net (Postfix) with ESMTPSA id B89262CBA9 for <jose@ietf.org>; Mon, 25 Aug 2014 09:25:56 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: <jose@ietf.org>
References: <53CFC9A4.3000500@isoc.org>
In-Reply-To: <53CFC9A4.3000500@isoc.org>
Date: Mon, 25 Aug 2014 09:23:37 -0700
Message-ID: <02e301cfc080$ed31e250$c795a6f0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Content-Language: en-us
Thread-Index: AQGFPKiIcwAAEqjcEwinNcWM88lucpx2h/Wg
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/srbC4Bn6KiOneqsffCS8mCA2_i8
Subject: Re: [jose] Working Group Last Call (WGLC) for	draft-ietf-jose-cookbook-03
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Aug 2014 16:37:21 -0000

This closes the last call period on this document.

While Brian is right and it would be nice if there was a verification on the
non-compact form of the examples.  I don't believe that this is a blocker
for advancement.

I am not sure that I understand all of Mike's requests, but it appears that
Matt does so this should be able to be incorporated without any problems.

I believe that Matt should be able to issue a new version of the document
and we should be able to progress it to our AD for processing.

Jim


-----Original Message-----
From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Karen ODonoghue
Sent: Wednesday, July 23, 2014 7:42 AM
To: jose@ietf.org
Subject: [jose] Working Group Last Call (WGLC) for
draft-ietf-jose-cookbook-03

Folks,

This message starts a two week working group last call for the jose cookbook
document "Examples of Protecting Content using JavaScript Object Signing and
Encryption (JOSE)"
(https://tools.ietf.org/html/draft-ietf-jose-cookbook-03)

Please review the document and send comments, questions to the Working Group
mailing list < jose at ietf.org > or the co-chairs <jose-chairs at
tools.ietf.org > before the end of the WGLC. 

Please note that suggested changes which include proposed text will be more
strongly considered than those without. Additionally, even if you have no
comments, statements to the effect that "I have read this document and
believe it is ready for publication" are helpful.

Regards,
Karen and Jim

_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose


From nobody Mon Aug 25 18:23:10 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 79BB31A0552 for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 18:23:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.099
X-Spam-Level: ***
X-Spam-Status: No, score=3.099 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HTML_MESSAGE=0.001, MANGLED_LIST=2.3, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 g6kjszDdfNdX for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 18:22:59 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0188.outbound.protection.outlook.com [207.46.163.188]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0E9421A0535 for <jose@ietf.org>; Mon, 25 Aug 2014 18:22:59 -0700 (PDT)
Received: from BY2PR03CA072.namprd03.prod.outlook.com (10.141.249.45) by CH1PR03MB623.namprd03.prod.outlook.com (10.255.156.170) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Tue, 26 Aug 2014 01:22:56 +0000
Received: from BY2FFO11FD058.protection.gbl (2a01:111:f400:7c0c::109) by BY2PR03CA072.outlook.office365.com (2a01:111:e400:2c5d::45) with Microsoft SMTP Server (TLS) id 15.0.1015.19 via Frontend Transport; Tue, 26 Aug 2014 01:22:56 +0000
Received: from mail.microsoft.com (131.107.125.37) by BY2FFO11FD058.mail.protection.outlook.com (10.1.15.178) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Tue, 26 Aug 2014 01:22:56 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC102.redmond.corp.microsoft.com ([157.54.7.154]) with mapi id 14.03.0195.002; Tue, 26 Aug 2014 01:22:11 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Russ Housley <housley@vigilsec.com>
Thread-Topic: Gen-ART review of draft-ietf-jose-json-web-signature-31
Thread-Index: AQHPv9ECk81UIBSPuUyJNF9LPTtocJvh7EOw
Date: Tue, 26 Aug 2014 01:22:10 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE40DC4@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <D4999910-8500-4114-9670-08436D64FF28@vigilsec.com>
In-Reply-To: <D4999910-8500-4114-9670-08436D64FF28@vigilsec.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.21]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE40DC4TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(377454003)(199003)(13464003)(51444003)(43784003)(132844002)(189002)(377424004)(51914003)(77982001)(83322001)(66066001)(106116001)(44976005)(81342001)(4396001)(85852003)(19300405004)(85306004)(83072002)(87936001)(19273905006)(71186001)(69596002)(81156004)(81542001)(64706001)(110136001)(80022001)(107046002)(15202345003)(19580405001)(20776003)(19580395003)(99396002)(106466001)(46102001)(50986999)(16236675004)(54356999)(76176999)(230783001)(84676001)(95666004)(16297215004)(84326002)(19617315012)(15975445006)(104016003)(74502001)(77096002)(76482001)(19625215002)(21056001)(92566001)(26826002)(68736004)(33656002)(92726001)(79102001)(512954002)(55846006)(86362001)(2656002)(86612001)(90102001)(31966008)(97736001)(74662001)(6806004)(561944003); DIR:OUT; SFP:; SCL:1; SRVR:CH1PR03MB623; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 03152A99FF
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/GIUBnqoTQuFnfjoNVbxfMUQcQMg
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Aug 2014 01:23:04 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE40DC4TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks for the useful review, Russ.  Proposed resolutions to your comments =
follow inline.  Please let me know if you agree.  Also, working group membe=
rs, please follow this discussion, as these comments will likely result in =
changes to the current drafts.



-----Original Message-----
From: ietf [mailto:ietf-bounces@ietf.org] On Behalf Of Russ Housley
Sent: Sunday, August 24, 2014 12:23 PM
To: draft-ietf-jose-json-web-signature.all@tools.ietf.org
Cc: IETF Gen-ART; IETF
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31



I am the assigned Gen-ART reviewer for this draft. For background on Gen-AR=
T, please see the FAQ at <http://wiki.tools.ietf.org/area/gen/trac/wiki/Gen=
Artfaq>.



Please resolve these comments along with any other Last Call comments you m=
ay receive.



Document: draft-ietf-jose-json-web-signature-31

Reviewer: Russ Housley

Review Date: 2014-08-24

IETF LC End Date: 2014-09-03

IESG Telechat date: unknown



Summary:  Not quite ready.  Some issues to resolve.



Major Concerns:



- At first reading, I thought that Sections 2 and 3 were defining the

  same terms.  On the second or third reading, I figured it out.

  I think it would be more clear in Section 3 to state that a JWS is

  constructed from a sequence of the things that are already defined

  in Section 2.



I understand that there is some repetition between the Terminology section =
and the JWS Overview section.  I will plan to eliminate this duplication in=
 the manner you suggested - by simply using, rather restating the definitio=
ns of, the terms, and saying that they are defined above.  (Jim Schaad - no=
te that this will condense some of the text that you'd requested be added t=
o Section 3 to explicitly spell out the parts of a JWS, and will result in =
a parallel change to JWE.  Is that OK with you?)



- In Section 5.2, it says that in some cases, all must successfully

  validate, but in other cases, only a specific signature, MAC, or

  plaintext value needs to be successfully validated. How does the

  recipient know which case applies?



The recipient knows what application it is part of, and so knows the applic=
ation decisions described in 5.2, paragraph 2 about whether all or some sig=
natures must validate.



I do agree that the text in step 9 (signature validation) could be read as =
being in conflict with paragraph 2.   I'll plan to modify this to say that =
the step records whether the signature validated, rather than saying that i=
t must validate.  Then I'll add a step 11 saying to reject the input if no =
signature validated and a step 12 saying to return a result indicating whic=
h signatures were successfully validated, so that the application can deter=
mine whether to accept the input and which signatures to trust.  Will that =
work for you?



It's more complicated a description, but a more general description of the =
things that can happen in the multiple signatures case, in which some signa=
tures validate and some don't and you may need to tell the application whic=
h ones were good and which were bad.  (It's much simpler in the single sign=
ature case, in which you can make a simple accept/reject decision.)



- In Section 8, why not say that TLS 1.2 or later MUST be supported?



This text is modelled after http://tools.ietf.org/html/rfc6749#section-1.6,=
 but updated to remove the reference to TLS 1.0.  I don't believe the worki=
ng group felt that it had sufficient data on TLS 1.2 deployment to understa=
nd whether it could now safely mandate 1.2 or whether this would effectivel=
y mean that many deployments would be non-conformant.  Is there data saying=
 that greater than N% of devices in common use now support TLS 1.2 - where =
N% is preferably over 90%?  It would be good have such data about commonly =
used platforms such OS X, iOS, Android, Linux, and Windows to help inform t=
his decision.



- Section 10 says, "The entire list of security considerations is

  beyond the scope of this document..."  This reads like a red flag to

  me.  While it is not possible to discuss every possible implementation

  consideration that impacts security, the document should cover the

  topics discussed in RFC 3552.  At a minimum, I think the following

  need to be discussed:

    -- the consequences of compromise of the signer's private key

    -- the consequences of compromise of the MAC key

    -- the consequences of poor random numbers, which are needed for

       more than just key entropy with some algorithms like ECDSA

    -- awareness that cryptographic algorithms become weaker with time



I agree that the phrase "The entire list of security considerations is beyo=
nd the scope of this document..." adds no or negative value.  I'll remove i=
t.



I'll also plan to explicitly make sure that we address the topics in your l=
ist above and go through RFC 3552 looking for others that we need to cover.



Minor Concerns:



- Section 1, 1st paragraph says: "The JWS cryptographic mechanisms

  provide integrity protection for an arbitrary sequence of octets."

  This is true, but this is not the whole story.  A sentence or two

  should be added about when a signature mechanism is appropriate

  and when a MAC mechanism is appropriate.  Alternatively, a pointer

  to Section 10.4 could be included.



I will plan to add the pointer to Section 10.4.



- In Section 4.1.4, should the value match the subject key identifier

  if an X.509 certificate is used?



That was not an intended usage of this field, although nothing precludes pa=
rticular applications from specifying its use in that manner.  Its intended=
 usage is to match JWK "kid" values, as described.  I don't plan to make a =
change to the document in response to this comment unless you believe that =
one is truly necessary.



- In Section 4.1.5, why is TLS required to fetch digitally signed

  X.509 certificates?



This question was explicitly discussed by the working group at IETF 87.  Th=
e discussion is recorded in the minutes<http://www.ietf.org/proceedings/87/=
minutes/minutes-87-jose> as follows:

If there is an x5u pointing to a certification issued by a major CA, is TLS=
 required for the HTTP query used to retrieve this certificate?  TLS should=
n't be needed since the certificate is a signed object.  Therefore, the "MU=
ST" use TLS for cert retrieval should be changed to "SHOULD".  This is an a=
pplication decision.  Mike Jones doesn't want removal of TLS in the case wh=
ere there's no external means to verify the retrieved key.  Matt Miller: ag=
rees with the jku case, but argues that for x5u, there is a class of applic=
ations where it isn't known if the retrieved object is self-protecting (lik=
e a certificate) until after it is retrieved.  Even if the object appears t=
o be self-protecting, if the retriever doesn't have a trusted root for that=
 object, it might not be able to verify the protection anyhow.  So it use o=
f TLS might still be preferable instead of having to potentially retrieve a=
n object twice, once over HTTP and then over HTTPS.  Joe Hildebrand wanted =
to know what the upside of this proposal is.  Richard says it saves on TLS =
handshakes; Hildebrand envisions a world where TLS is ubiquitous.  Paul Hof=
fman said that a similar issue in DANE ended up being dropped after a coupl=
e of months of discussion.  Richard agreed to drop the TLS MUST to SHOULD p=
roposal.



- Section 10.2 talks about chosen plaintext attacks.  However, there

  are much worse things than chosen plaintext attacks that will result

  if a third party can get a signer to sign a content of its choosing.



What's there now is about attackers getting to choose part of the plaintext=
.  I think you're talking about attacks in which the attacker gets to choos=
e the whole plaintext, which is clearly far worse.  At that point, the sign=
ature of the signer obviously becomes pretty worthless.  Is that your point=
 here?  If so, I could take a stab at writing something about this, or you =
could suggest some text if you'd like.



Other Comments:



- I suggest a rewording for a part of Section 2:



  OLD:



   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The members of the JOSE

      Header are Header Parameters.



  NEW:



   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The JOSE Header is composed

      of a set of Header Parameters.



OK



- I think that Section 3.1 would be more clear by saying:



   In the JWS Compact Serialization, a JWS object is represented as:



      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      BASE64URL(JWS Payload)  || "." ||

      BASE64URL(JWS Signature)



OK



- I think that Section 3.1 would be more clear by saying:



   In the JWS JSON Serialization, a JWS object is represented as:



      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      JWS Unprotected Header || "." ||

      BASE64URL(JWS Payload) || "." ||

      BASE64URL(JWS Signature)



This isn't accurate.  Assuming you're talking about 3.2, the representation=
 isn't the concatenation above - it's a JSON object containing some or all =
of the values above.  Nonetheless, I can try to revise the text to be more =
direct here as well.



   Then, the text needs to say that whitespace may appear anywhere.



OK



- Some additional whitespace would make Section 7.2 easier to read.



OK



- The IANA Considerations section requires the establishment of a new

  mail list: jose-reg-review@ietf.org<mailto:jose-reg-review@ietf.org>.  Th=
e process for setting up the

  list is described at the bottom of this web page:

  http://www.ietf.org/list/nonwg.html.



This text was taken from RFC 6749 and the list is modelled after the oauth-=
ext-review@ietf.org<mailto:oauth-ext-review@ietf.org> list described therei=
n.  It's not clear to me whether you want a change to the draft (if so plea=
se specify) or whether you were just being helpful (which is appreciated).



                                                                Thanks agai=
n,

                                                                -- Mike



--_000_4E1F6AAD24975D4BA5B16804296739439AE40DC4TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">Thanks for the usef=
ul review, Russ.&nbsp; Proposed resolutions to your comments follow inline.=
&nbsp; Please let me know if you agree.&nbsp; Also, working group members, =
please follow this discussion, as these comments will
 likely result in changes to the current drafts.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: ietf [mailto:ietf-bounces@ietf.org] On Behalf Of Russ Housley<br>
Sent: Sunday, August 24, 2014 12:23 PM<br>
To: draft-ietf-jose-json-web-signature.all@tools.ietf.org<br>
Cc: IETF Gen-ART; IETF<br>
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I am the assigned Gen-ART reviewer for this draft=
. For background on Gen-ART, please see the FAQ at &lt;<a href=3D"http://wi=
ki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq"><span style=3D"color:window=
text;text-decoration:none">http://wiki.tools.ietf.org/area/gen/trac/wiki/Ge=
nArtfaq</span></a>&gt;.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Please resolve these comments along with any othe=
r Last Call comments you may receive.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Document: draft-ietf-jose-json-web-signature-31<o=
:p></o:p></p>
<p class=3D"MsoPlainText">Reviewer: Russ Housley<o:p></o:p></p>
<p class=3D"MsoPlainText">Review Date: 2014-08-24<o:p></o:p></p>
<p class=3D"MsoPlainText">IETF LC End Date: 2014-09-03<o:p></o:p></p>
<p class=3D"MsoPlainText">IESG Telechat date: unknown<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Summary:&nbsp; Not quite ready.&nbsp; Some issues=
 to resolve.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Major Concerns:&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- At first reading, I thought that Sections 2 and=
 3 were defining the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; same terms.&nbsp; On the second or third r=
eading, I figured it out.<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; I think it would be more clear in Section =
3 to state that a JWS is<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; constructed from a sequence of the things =
that are already defined<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; in Section 2.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I understand that t=
here is some repetition between the Terminology section and the JWS Overvie=
w section.&nbsp; I will plan to eliminate this duplication in the manner yo=
u suggested &#8211; by simply using, rather restating
 the definitions of, the terms, and saying that they are defined above.&nbs=
p; (Jim Schaad &#8211; note that this will condense some of the text that y=
ou&#8217;d requested be added to Section 3 to explicitly spell out the part=
s of a JWS, and will result in a parallel change
 to JWE.&nbsp; Is that OK with you?)<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- In Section 5.2, it says that in some cases, all=
 must successfully<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; validate, but in other cases, only a speci=
fic signature, MAC, or<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; plaintext value needs to be successfully v=
alidated. How does the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; recipient know which case applies?<o:p></o=
:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">The recipient knows=
 what application it is part of, and so knows the application decisions des=
cribed in 5.2, paragraph 2 about whether all or some signatures must valida=
te.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I do agree that the=
 text in step 9 (signature validation) could be read as being in conflict w=
ith paragraph 2. &nbsp;&nbsp;I&#8217;ll plan to modify this to say that the=
 step records whether the signature validated, rather
 than saying that it must validate.&nbsp; Then I&#8217;ll add a step 11 say=
ing to reject the input if no signature validated and a step 12 saying to r=
eturn a result indicating which signatures were successfully validated, so =
that the application can determine whether
 to accept the input and which signatures to trust.&nbsp; Will that work fo=
r you?<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">It&#8217;s more com=
plicated a description, but a more general description of the things that c=
an happen in the multiple signatures case, in which some signatures validat=
e and some don&#8217;t and you may need to tell
 the application which ones were good and which were bad.&nbsp; (It&#8217;s=
 much simpler in the single signature case, in which you can make a simple =
accept/reject decision.)<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText">- In Section 8, why not say that TLS 1.2 or later=
 MUST be supported?<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This text is modell=
ed after <a href=3D"http://tools.ietf.org/html/rfc6749#section-1.6">
http://tools.ietf.org/html/rfc6749#section-1.6</a>, but updated to remove t=
he reference to TLS 1.0.&nbsp; I don&#8217;t believe the working group felt=
 that it had sufficient data on TLS 1.2 deployment to understand whether it=
 could now safely mandate 1.2 or whether this
 would effectively mean that many deployments would be non-conformant.&nbsp=
; Is there data saying that greater than N% of devices in common use now su=
pport TLS 1.2 &#8211; where N% is preferably over 90%?&nbsp; It would be go=
od have such data about commonly used platforms
 such OS X, iOS, Android, Linux, and Windows to help inform this decision.<=
o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Section 10 says, &quot;The entire list of secur=
ity considerations is<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; beyond the scope of this document...&quot;=
&nbsp; This reads like a red flag to<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; me.&nbsp; While it is not possible to disc=
uss every possible implementation<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; consideration that impacts security, the d=
ocument should cover the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; topics discussed in RFC 3552.&nbsp; At a m=
inimum, I think the following<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; need to be discussed:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of comprom=
ise of the signer's private key<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of comprom=
ise of the MAC key<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of poor ra=
ndom numbers, which are needed for<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; more than ju=
st key entropy with some algorithms like ECDSA<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- awareness that cryptographi=
c algorithms become weaker with time<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I agree that the ph=
rase &#8220;</span>The entire list of security considerations is beyond the=
 scope of this document...<span style=3D"color:#0070C0">&#8221; adds no or =
negative value.&nbsp; I&#8217;ll remove it.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I&#8217;ll also pla=
n to explicitly make sure that we address the topics in your list above and=
 go through RFC 3552 looking for others that we need to cover.<o:p></o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">Minor Concerns:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- Section 1, 1st paragraph says: &quot;The JWS cr=
yptographic mechanisms<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; provide integrity protection for an arbitr=
ary sequence of octets.&quot;<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; This is true, but this is not the whole st=
ory.&nbsp; A sentence or two<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; should be added about when a signature mec=
hanism is appropriate<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; and when a MAC mechanism is appropriate.&n=
bsp; Alternatively, a pointer<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; to Section 10.4 could be included.<o:p></o=
:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I will plan to add =
the pointer to Section 10.4.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- In Section 4.1.4, should the value match the su=
bject key identifier<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; if an X.509 certificate is used?<o:p></o:p=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">That was not an int=
ended usage of this field, although nothing precludes particular applicatio=
ns from specifying its use in that manner.&nbsp; Its intended usage is to m=
atch JWK &#8220;kid&#8221; values, as described.&nbsp; I don&#8217;t
 plan to make a change to the document in response to this comment unless y=
ou believe that one is truly necessary.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- In Section 4.1.5, why is TLS required to fetch =
digitally signed<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; X.509 certificates?<o:p></o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This question was e=
xplicitly discussed by the working group at IETF 87.&nbsp; The discussion i=
s recorded in
<a href=3D"http://www.ietf.org/proceedings/87/minutes/minutes-87-jose">the =
minutes</a> as follows:<o:p></o:p></span></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in"><span style=3D"color:#=
0070C0">If there is an x5u pointing to a certification issued by a major CA=
, is TLS required for the HTTP query used to retrieve this certificate?&nbs=
p; TLS shouldn't be needed since the certificate
 is a signed object.&nbsp; Therefore, the &quot;MUST&quot; use TLS for cert=
 retrieval should be changed to &quot;SHOULD&quot;.&nbsp; This is an applic=
ation decision.&nbsp; Mike Jones doesn't want removal of TLS in the case wh=
ere there's no external means to verify the retrieved key.&nbsp; Matt Mille=
r:
 agrees with the jku case, but argues that for x5u, there is a class of app=
lications where it isn't known if the retrieved object is self-protecting (=
like a certificate) until after it is retrieved.&nbsp; Even if the object a=
ppears to be self-protecting, if the
 retriever doesn't have a trusted root for that object, it might not be abl=
e to verify the protection anyhow.&nbsp; So it use of TLS might still be pr=
eferable instead of having to potentially retrieve an object twice, once ov=
er HTTP and then over HTTPS.&nbsp; Joe Hildebrand
 wanted to know what the upside of this proposal is.&nbsp; Richard says it =
saves on TLS handshakes; Hildebrand envisions a world where TLS is ubiquito=
us.&nbsp; Paul Hoffman said that a similar issue in DANE ended up being dro=
pped after a couple of months of discussion.&nbsp;
 Richard agreed to drop the TLS MUST to SHOULD proposal.<o:p></o:p></span><=
/p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Section 10.2 talks about chosen plaintext attac=
ks.&nbsp; However, there<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; are much worse things than chosen plaintex=
t attacks that will result<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; if a third party can get a signer to sign =
a content of its choosing.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">What&#8217;s there =
now is about attackers getting to choose part of the plaintext.&nbsp; I thi=
nk you&#8217;re talking about attacks in which the attacker gets to choose =
the whole plaintext, which is clearly far worse.&nbsp; At
 that point, the signature of the signer obviously becomes pretty worthless=
.&nbsp; Is that your point here?&nbsp; If so, I could take a stab at writin=
g something about this, or you could suggest some text if you&#8217;d like.=
<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">Other Comments:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- I suggest a rewording for a part of Section 2:<=
o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp; OLD:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; JOSE Header<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object contai=
ning the parameters describing the cryptographic<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and par=
ameters employed.&nbsp; The members of the JOSE<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Header are Header =
Parameters.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp; NEW:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; JOSE Header<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object contai=
ning the parameters describing the cryptographic<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and par=
ameters employed.&nbsp; The JOSE Header is composed<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of a set of Header=
 Parameters.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- I think that Section 3.1 would be more clear by=
 saying:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; In the JWS Compact Serialization, a =
JWS object is represented as:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF=
8(JWS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Payl=
oad)&nbsp; || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Sign=
ature)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- I think that Section 3.1 would be more clear by=
 saying:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; In the JWS JSON Serialization, a JWS=
 object is represented as:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF=
8(JWS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JWS Unprotected He=
ader || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Payl=
oad) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Sign=
ature)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This isn&#8217;t ac=
curate.&nbsp; Assuming you&#8217;re talking about 3.2, the representation i=
sn&#8217;t the concatenation above &#8211; it&#8217;s a JSON object contain=
ing some or all of the values above.&nbsp; Nonetheless, I can try to revise
 the text to be more direct here as well.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; Then, the text needs to say that whi=
tespace may appear anywhere.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Some additional whitespace would make Section 7=
.2 easier to read.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- The IANA Considerations section requires the es=
tablishment of a new<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; mail list: <a href=3D"mailto:jose-reg-revi=
ew@ietf.org"><span style=3D"color:windowtext;text-decoration:none">jose-reg=
-review@ietf.org</span></a>.&nbsp; The process for setting up the<o:p></o:p=
></p>
<p class=3D"MsoPlainText">&nbsp; list is described at the bottom of this we=
b page:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; <a href=3D"http://www.ietf.org/list/nonwg.=
html"><span style=3D"color:windowtext;text-decoration:none">http://www.ietf=
.org/list/nonwg.html</span></a>.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This text was taken=
 from RFC 6749 and the list is modelled after the
<a href=3D"mailto:oauth-ext-review@ietf.org">oauth-ext-review@ietf.org</a> =
list described therein.&nbsp; It&#8217;s not clear to me whether you want a=
 change to the draft (if so please specify) or whether you were just being =
helpful (which is appreciated).<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks again,<o=
:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mike<o:p></o=
:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE40DC4TK5EX14MBXC293r_--


From nobody Mon Aug 25 21:15:25 2014
Return-Path: <ietf@augustcellars.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 547291A071D for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 21:15:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.401
X-Spam-Level: **
X-Spam-Status: No, score=2.401 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HTML_MESSAGE=0.001, MANGLED_LIST=2.3, RCVD_IN_DNSWL_LOW=-0.7] 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 aI5r4l61qrjj for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 21:15:11 -0700 (PDT)
Received: from smtp4.pacifier.net (smtp4.pacifier.net [64.255.237.176]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C30591A0717 for <jose@ietf.org>; Mon, 25 Aug 2014 21:15:10 -0700 (PDT)
Received: from Philemon (unknown [50.38.74.159]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jimsch@nwlink.com) by smtp4.pacifier.net (Postfix) with ESMTPSA id 94B0438F04; Mon, 25 Aug 2014 21:15:08 -0700 (PDT)
From: "Jim Schaad" <ietf@augustcellars.com>
To: "'Mike Jones'" <Michael.Jones@microsoft.com>, "'Russ Housley'" <housley@vigilsec.com>
References: <D4999910-8500-4114-9670-08436D64FF28@vigilsec.com> <4E1F6AAD24975D4BA5B16804296739439AE40DC4@TK5EX14MBXC293.redmond.corp.microsoft.com>
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE40DC4@TK5EX14MBXC293.redmond.corp.microsoft.com>
Date: Mon, 25 Aug 2014 21:12:37 -0700
Message-ID: <035801cfc0e4$002fe8d0$008fba70$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0359_01CFC0A9.53D49340"
X-Mailer: Microsoft Outlook 14.0
Content-Language: en-us
Thread-Index: AQK5aY5f/hfsX4HiE2ddG+a8wQQE6wIbBecjmf4cKOA=
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/FTNFwfXTFWyeYwb0JS7dZSIE37M
Cc: jose@ietf.org
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Aug 2014 04:15:19 -0000

This is a multipart message in MIME format.

------=_NextPart_000_0359_01CFC0A9.53D49340
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

 

 

From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Mike Jones
Sent: Monday, August 25, 2014 6:22 PM
To: Russ Housley
Cc: jose@ietf.org
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31

 

Thanks for the useful review, Russ.  Proposed resolutions to your comments
follow inline.  Please let me know if you agree.  Also, working group
members, please follow this discussion, as these comments will likely result
in changes to the current drafts.

 

-----Original Message-----
From: ietf [mailto:ietf-bounces@ietf.org] On Behalf Of Russ Housley
Sent: Sunday, August 24, 2014 12:23 PM
To: draft-ietf-jose-json-web-signature.all@tools.ietf.org
Cc: IETF Gen-ART; IETF
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31

 

I am the assigned Gen-ART reviewer for this draft. For background on
Gen-ART, please see the FAQ at <
<http://wiki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq>
http://wiki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq>.

 

Please resolve these comments along with any other Last Call comments you
may receive.

 

Document: draft-ietf-jose-json-web-signature-31

Reviewer: Russ Housley

Review Date: 2014-08-24

IETF LC End Date: 2014-09-03

IESG Telechat date: unknown

 

Summary:  Not quite ready.  Some issues to resolve.

 

Major Concerns:  

 

- At first reading, I thought that Sections 2 and 3 were defining the

  same terms.  On the second or third reading, I figured it out.

  I think it would be more clear in Section 3 to state that a JWS is

  constructed from a sequence of the things that are already defined

  in Section 2.

 

I understand that there is some repetition between the Terminology section
and the JWS Overview section.  I will plan to eliminate this duplication in
the manner you suggested - by simply using, rather restating the definitions
of, the terms, and saying that they are defined above.  (Jim Schaad - note
that this will condense some of the text that you'd requested be added to
Section 3 to explicitly spell out the parts of a JWS, and will result in a
parallel change to JWE.  Is that OK with you?)

 

Given that I would expect the text to be in section 2, this is not an issue
for me.

 

- In Section 5.2, it says that in some cases, all must successfully

  validate, but in other cases, only a specific signature, MAC, or

  plaintext value needs to be successfully validated. How does the

  recipient know which case applies?

 

The recipient knows what application it is part of, and so knows the
application decisions described in 5.2, paragraph 2 about whether all or
some signatures must validate.

 

I do agree that the text in step 9 (signature validation) could be read as
being in conflict with paragraph 2.   I'll plan to modify this to say that
the step records whether the signature validated, rather than saying that it
must validate.  Then I'll add a step 11 saying to reject the input if no
signature validated and a step 12 saying to return a result indicating which
signatures were successfully validated, so that the application can
determine whether to accept the input and which signatures to trust.  Will
that work for you?

 

It's more complicated a description, but a more general description of the
things that can happen in the multiple signatures case, in which some
signatures validate and some don't and you may need to tell the application
which ones were good and which were bad.  (It's much simpler in the single
signature case, in which you can make a simple accept/reject decision.)

 

- In Section 8, why not say that TLS 1.2 or later MUST be supported?

 

This text is modelled after http://tools.ietf.org/html/rfc6749#section-1.6,
but updated to remove the reference to TLS 1.0.  I don't believe the working
group felt that it had sufficient data on TLS 1.2 deployment to understand
whether it could now safely mandate 1.2 or whether this would effectively
mean that many deployments would be non-conformant.  Is there data saying
that greater than N% of devices in common use now support TLS 1.2 - where N%
is preferably over 90%?  It would be good have such data about commonly used
platforms such OS X, iOS, Android, Linux, and Windows to help inform this
decision.

 

- Section 10 says, "The entire list of security considerations is

  beyond the scope of this document..."  This reads like a red flag to

  me.  While it is not possible to discuss every possible implementation

  consideration that impacts security, the document should cover the

  topics discussed in RFC 3552.  At a minimum, I think the following

  need to be discussed:

    -- the consequences of compromise of the signer's private key

    -- the consequences of compromise of the MAC key

    -- the consequences of poor random numbers, which are needed for

       more than just key entropy with some algorithms like ECDSA

    -- awareness that cryptographic algorithms become weaker with time

 

I agree that the phrase "The entire list of security considerations is
beyond the scope of this document..." adds no or negative value.  I'll
remove it.

 

I'll also plan to explicitly make sure that we address the topics in your
list above and go through RFC 3552 looking for others that we need to cover.

 

Minor Concerns:

 

- Section 1, 1st paragraph says: "The JWS cryptographic mechanisms

  provide integrity protection for an arbitrary sequence of octets."

  This is true, but this is not the whole story.  A sentence or two

  should be added about when a signature mechanism is appropriate

  and when a MAC mechanism is appropriate.  Alternatively, a pointer

  to Section 10.4 could be included.

 

I will plan to add the pointer to Section 10.4.

 

- In Section 4.1.4, should the value match the subject key identifier

  if an X.509 certificate is used?

 

That was not an intended usage of this field, although nothing precludes
particular applications from specifying its use in that manner.  Its
intended usage is to match JWK "kid" values, as described.  I don't plan to
make a change to the document in response to this comment unless you believe
that one is truly necessary.

 

- In Section 4.1.5, why is TLS required to fetch digitally signed

  X.509 certificates?

 

This question was explicitly discussed by the working group at IETF 87.  The
discussion is recorded in the minutes
<http://www.ietf.org/proceedings/87/minutes/minutes-87-jose>  as follows:

If there is an x5u pointing to a certification issued by a major CA, is TLS
required for the HTTP query used to retrieve this certificate?  TLS
shouldn't be needed since the certificate is a signed object.  Therefore,
the "MUST" use TLS for cert retrieval should be changed to "SHOULD".  This
is an application decision.  Mike Jones doesn't want removal of TLS in the
case where there's no external means to verify the retrieved key.  Matt
Miller: agrees with the jku case, but argues that for x5u, there is a class
of applications where it isn't known if the retrieved object is
self-protecting (like a certificate) until after it is retrieved.  Even if
the object appears to be self-protecting, if the retriever doesn't have a
trusted root for that object, it might not be able to verify the protection
anyhow.  So it use of TLS might still be preferable instead of having to
potentially retrieve an object twice, once over HTTP and then over HTTPS.
Joe Hildebrand wanted to know what the upside of this proposal is.  Richard
says it saves on TLS handshakes; Hildebrand envisions a world where TLS is
ubiquitous.  Paul Hoffman said that a similar issue in DANE ended up being
dropped after a couple of months of discussion.  Richard agreed to drop the
TLS MUST to SHOULD proposal.

 

- Section 10.2 talks about chosen plaintext attacks.  However, there

  are much worse things than chosen plaintext attacks that will result

  if a third party can get a signer to sign a content of its choosing.

 

What's there now is about attackers getting to choose part of the plaintext.
I think you're talking about attacks in which the attacker gets to choose
the whole plaintext, which is clearly far worse.  At that point, the
signature of the signer obviously becomes pretty worthless.  Is that your
point here?  If so, I could take a stab at writing something about this, or
you could suggest some text if you'd like.

 

Other Comments:

 

- I suggest a rewording for a part of Section 2:

 

  OLD:

 

   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The members of the JOSE

      Header are Header Parameters.

 

  NEW:

 

   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The JOSE Header is composed

      of a set of Header Parameters.

 

OK

 

- I think that Section 3.1 would be more clear by saying:

 

   In the JWS Compact Serialization, a JWS object is represented as:

   

      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      BASE64URL(JWS Payload)  || "." ||

      BASE64URL(JWS Signature)

 

OK

 

- I think that Section 3.1 would be more clear by saying:

 

   In the JWS JSON Serialization, a JWS object is represented as:

   

      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      JWS Unprotected Header || "." ||

      BASE64URL(JWS Payload) || "." ||

      BASE64URL(JWS Signature)

 

This isn't accurate.  Assuming you're talking about 3.2, the representation
isn't the concatenation above - it's a JSON object containing some or all of
the values above.  Nonetheless, I can try to revise the text to be more
direct here as well.

 

   Then, the text needs to say that whitespace may appear anywhere.

 

OK

 

- Some additional whitespace would make Section 7.2 easier to read.

 

OK

 

- The IANA Considerations section requires the establishment of a new

  mail list:  <mailto:jose-reg-review@ietf.org> jose-reg-review@ietf.org.
The process for setting up the

  list is described at the bottom of this web page:

   <http://www.ietf.org/list/nonwg.html>
http://www.ietf.org/list/nonwg.html.

 

This text was taken from RFC 6749 and the list is modelled after the
oauth-ext-review@ietf.org list described therein.  It's not clear to me
whether you want a change to the draft (if so please specify) or whether you
were just being helpful (which is appreciated).

 

                                                                Thanks
again,

                                                                -- Mike

 


------=_NextPart_000_0359_01CFC0A9.53D49340
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
jose [mailto:jose-bounces@ietf.org] <b>On Behalf Of </b>Mike =
Jones<br><b>Sent:</b> Monday, August 25, 2014 6:22 PM<br><b>To:</b> Russ =
Housley<br><b>Cc:</b> jose@ietf.org<br><b>Subject:</b> Re: [jose] =
Gen-ART review of =
draft-ietf-jose-json-web-signature-31<o:p></o:p></span></p></div></div><p=
 class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>Thanks for the useful review, Russ.&nbsp; =
Proposed resolutions to your comments follow inline.&nbsp; Please let me =
know if you agree.&nbsp; Also, working group members, please follow this =
discussion, as these comments will likely result in changes to the =
current drafts.<o:p></o:p></span></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>-----Original Message-----<br>From: ietf [<a =
href=3D"mailto:ietf-bounces@ietf.org">mailto:ietf-bounces@ietf.org</a>] =
On Behalf Of Russ Housley<br>Sent: Sunday, August 24, 2014 12:23 =
PM<br>To: <a =
href=3D"mailto:draft-ietf-jose-json-web-signature.all@tools.ietf.org">dra=
ft-ietf-jose-json-web-signature.all@tools.ietf.org</a><br>Cc: IETF =
Gen-ART; IETF<br>Subject: Gen-ART review of =
draft-ietf-jose-json-web-signature-31<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>I am =
the assigned Gen-ART reviewer for this draft. For background on Gen-ART, =
please see the FAQ at &lt;<a =
href=3D"http://wiki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq"><span =
style=3D'color:windowtext;text-decoration:none'>http://wiki.tools.ietf.or=
g/area/gen/trac/wiki/GenArtfaq</span></a>&gt;.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>Please =
resolve these comments along with any other Last Call comments you may =
receive.<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>Document: =
draft-ietf-jose-json-web-signature-31<o:p></o:p></p><p =
class=3DMsoPlainText>Reviewer: Russ Housley<o:p></o:p></p><p =
class=3DMsoPlainText>Review Date: 2014-08-24<o:p></o:p></p><p =
class=3DMsoPlainText>IETF LC End Date: 2014-09-03<o:p></o:p></p><p =
class=3DMsoPlainText>IESG Telechat date: unknown<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>Summary:&nbsp; Not quite ready.&nbsp; Some issues =
to resolve.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>Major =
Concerns:&nbsp; <o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>- At =
first reading, I thought that Sections 2 and 3 were defining =
the<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; same terms.&nbsp; On =
the second or third reading, I figured it out.<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; I think it would be more clear in Section 3 =
to state that a JWS is<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; =
constructed from a sequence of the things that are already =
defined<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; in Section =
2.<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>I understand that =
there is some repetition between the Terminology section and the JWS =
Overview section.&nbsp; I will plan to eliminate this duplication in the =
manner you suggested &#8211; by simply using, rather restating the =
definitions of, the terms, and saying that they are defined above.&nbsp; =
(Jim Schaad &#8211; note that this will condense some of the text that =
you&#8217;d requested be added to Section 3 to explicitly spell out the =
parts of a JWS, and will result in a parallel change to JWE.&nbsp; Is =
that OK with you?)<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span style=3D'color:#00B050'>Given that I would =
expect the text to be in section 2, this is not an issue for =
me.<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- In Section 5.2, it says that in some cases, all =
must successfully<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; validate, =
but in other cases, only a specific signature, MAC, or<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; plaintext value needs to be successfully =
validated. How does the<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; =
recipient know which case applies?<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>The recipient knows what application it is part =
of, and so knows the application decisions described in 5.2, paragraph 2 =
about whether all or some signatures must =
validate.<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>I do agree that the =
text in step 9 (signature validation) could be read as being in conflict =
with paragraph 2. &nbsp;&nbsp;I&#8217;ll plan to modify this to say that =
the step records whether the signature validated, rather than saying =
that it must validate.&nbsp; Then I&#8217;ll add a step 11 saying to =
reject the input if no signature validated and a step 12 saying to =
return a result indicating which signatures were successfully validated, =
so that the application can determine whether to accept the input and =
which signatures to trust.&nbsp; Will that work for =
you?<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>It&#8217;s more =
complicated a description, but a more general description of the things =
that can happen in the multiple signatures case, in which some =
signatures validate and some don&#8217;t and you may need to tell the =
application which ones were good and which were bad.&nbsp; (It&#8217;s =
much simpler in the single signature case, in which you can make a =
simple accept/reject decision.)<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- In Section 8, why not say that TLS 1.2 or later =
MUST be supported?<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>This text is modelled after <a =
href=3D"http://tools.ietf.org/html/rfc6749#section-1.6">http://tools.ietf=
.org/html/rfc6749#section-1.6</a>, but updated to remove the reference =
to TLS 1.0.&nbsp; I don&#8217;t believe the working group felt that it =
had sufficient data on TLS 1.2 deployment to understand whether it could =
now safely mandate 1.2 or whether this would effectively mean that many =
deployments would be non-conformant.&nbsp; Is there data saying that =
greater than N% of devices in common use now support TLS 1.2 &#8211; =
where N% is preferably over 90%?&nbsp; It would be good have such data =
about commonly used platforms such OS X, iOS, Android, Linux, and =
Windows to help inform this decision.<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- Section 10 says, &quot;The entire list of =
security considerations is<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; =
beyond the scope of this document...&quot;&nbsp; This reads like a red =
flag to<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; me.&nbsp; While it =
is not possible to discuss every possible =
implementation<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; =
consideration that impacts security, the document should cover =
the<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; topics discussed in RFC =
3552.&nbsp; At a minimum, I think the following<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; need to be discussed:<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp; -- the consequences of =
compromise of the signer's private key<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp; -- the consequences of =
compromise of the MAC key<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp; -- the consequences of poor =
random numbers, which are needed for<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; more than just =
key entropy with some algorithms like ECDSA<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp; -- awareness that cryptographic =
algorithms become weaker with time<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>I agree that the phrase &#8220;</span>The entire =
list of security considerations is beyond the scope of this =
document...<span style=3D'color:#0070C0'>&#8221; adds no or negative =
value.&nbsp; I&#8217;ll remove it.<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>I&#8217;ll also plan =
to explicitly make sure that we address the topics in your list above =
and go through RFC 3552 looking for others that we need to =
cover.<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>Minor Concerns:<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>- =
Section 1, 1st paragraph says: &quot;The JWS cryptographic =
mechanisms<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; provide =
integrity protection for an arbitrary sequence of =
octets.&quot;<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; This is true, =
but this is not the whole story.&nbsp; A sentence or =
two<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; should be added about =
when a signature mechanism is appropriate<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; and when a MAC mechanism is =
appropriate.&nbsp; Alternatively, a pointer<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; to Section 10.4 could be =
included.<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>I will plan to add =
the pointer to Section 10.4.<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- In Section 4.1.4, should the value match the =
subject key identifier<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; if =
an X.509 certificate is used?<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>That was not an intended usage of this field, =
although nothing precludes particular applications from specifying its =
use in that manner.&nbsp; Its intended usage is to match JWK =
&#8220;kid&#8221; values, as described.&nbsp; I don&#8217;t plan to make =
a change to the document in response to this comment unless you believe =
that one is truly necessary.<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- In Section 4.1.5, why is TLS required to fetch =
digitally signed<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; X.509 =
certificates?<o:p></o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>This question was =
explicitly discussed by the working group at IETF 87.&nbsp; The =
discussion is recorded in <a =
href=3D"http://www.ietf.org/proceedings/87/minutes/minutes-87-jose">the =
minutes</a> as follows:<o:p></o:p></span></p><p class=3DMsoPlainText =
style=3D'margin-left:.5in'><span style=3D'color:#0070C0'>If there is an =
x5u pointing to a certification issued by a major CA, is TLS required =
for the HTTP query used to retrieve this certificate?&nbsp; TLS =
shouldn't be needed since the certificate is a signed object.&nbsp; =
Therefore, the &quot;MUST&quot; use TLS for cert retrieval should be =
changed to &quot;SHOULD&quot;.&nbsp; This is an application =
decision.&nbsp; Mike Jones doesn't want removal of TLS in the case where =
there's no external means to verify the retrieved key.&nbsp; Matt =
Miller: agrees with the jku case, but argues that for x5u, there is a =
class of applications where it isn't known if the retrieved object is =
self-protecting (like a certificate) until after it is retrieved.&nbsp; =
Even if the object appears to be self-protecting, if the retriever =
doesn't have a trusted root for that object, it might not be able to =
verify the protection anyhow.&nbsp; So it use of TLS might still be =
preferable instead of having to potentially retrieve an object twice, =
once over HTTP and then over HTTPS.&nbsp; Joe Hildebrand wanted to know =
what the upside of this proposal is.&nbsp; Richard says it saves on TLS =
handshakes; Hildebrand envisions a world where TLS is ubiquitous.&nbsp; =
Paul Hoffman said that a similar issue in DANE ended up being dropped =
after a couple of months of discussion.&nbsp; Richard agreed to drop the =
TLS MUST to SHOULD proposal.<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- Section 10.2 talks about chosen plaintext =
attacks.&nbsp; However, there<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; are much worse things than chosen plaintext =
attacks that will result<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; if =
a third party can get a signer to sign a content of its =
choosing.<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>What&#8217;s there =
now is about attackers getting to choose part of the plaintext.&nbsp; I =
think you&#8217;re talking about attacks in which the attacker gets to =
choose the whole plaintext, which is clearly far worse.&nbsp; At that =
point, the signature of the signer obviously becomes pretty =
worthless.&nbsp; Is that your point here?&nbsp; If so, I could take a =
stab at writing something about this, or you could suggest some text if =
you&#8217;d like.<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>Other Comments:<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>- I =
suggest a rewording for a part of Section 2:<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>&nbsp; =
OLD:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; JOSE Header<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object =
containing the parameters describing the cryptographic<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and =
parameters employed.&nbsp; The members of the JOSE<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Header are Header =
Parameters.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>&nbsp; =
NEW:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; JOSE Header<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object =
containing the parameters describing the cryptographic<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and =
parameters employed.&nbsp; The JOSE Header is composed<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of a set of Header =
Parameters.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>OK<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- I think that Section 3.1 would be more clear by =
saying:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; In the JWS Compact Serialization, a =
JWS object is represented as:<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; <o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF8(J=
WS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS =
Payload)&nbsp; || &quot;.&quot; ||<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS =
Signature)<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'>OK<o:p></o:p></span></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>- I =
think that Section 3.1 would be more clear by saying:<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; In the JWS JSON Serialization, a JWS =
object is represented as:<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; <o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF8(J=
WS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JWS Unprotected =
Header || &quot;.&quot; ||<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS =
Payload) || &quot;.&quot; ||<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS =
Signature)<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText><span style=3D'color:#0070C0'>This isn&#8217;t =
accurate.&nbsp; Assuming you&#8217;re talking about 3.2, the =
representation isn&#8217;t the concatenation above &#8211; it&#8217;s a =
JSON object containing some or all of the values above.&nbsp; =
Nonetheless, I can try to revise the text to be more direct here as =
well.<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>&nbsp;&nbsp; Then, the text needs to say that =
whitespace may appear anywhere.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>OK<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:black'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText>- Some additional whitespace would make Section 7.2 =
easier to read.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>OK<o:p></o:p></span></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText>- The =
IANA Considerations section requires the establishment of a =
new<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; mail list: <a =
href=3D"mailto:jose-reg-review@ietf.org"><span =
style=3D'color:windowtext;text-decoration:none'>jose-reg-review@ietf.org<=
/span></a>.&nbsp; The process for setting up the<o:p></o:p></p><p =
class=3DMsoPlainText>&nbsp; list is described at the bottom of this web =
page:<o:p></o:p></p><p class=3DMsoPlainText>&nbsp; <a =
href=3D"http://www.ietf.org/list/nonwg.html"><span =
style=3D'color:windowtext;text-decoration:none'>http://www.ietf.org/list/=
nonwg.html</span></a>.<o:p></o:p></p><p =
class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>This text was taken from RFC 6749 and the list =
is modelled after the <a =
href=3D"mailto:oauth-ext-review@ietf.org">oauth-ext-review@ietf.org</a> =
list described therein.&nbsp; It&#8217;s not clear to me whether you =
want a change to the draft (if so please specify) or whether you were =
just being helpful (which is appreciated).<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks =
again,<o:p></o:p></span></p><p class=3DMsoPlainText><span =
style=3D'color:#0070C0'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mike<o:p></o:p></span></p><p =
class=3DMsoPlainText><span =
style=3D'color:#0070C0'><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_000_0359_01CFC0A9.53D49340--


From nobody Mon Aug 25 23:49:36 2014
Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D0C41A04B9 for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 23:49:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.499
X-Spam-Level: **
X-Spam-Status: No, score=2.499 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RELAY_IS_203=0.994] 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 xGVXfeExR2Lj for <jose@ietfa.amsl.com>; Mon, 25 Aug 2014 23:49:34 -0700 (PDT)
Received: from ipxcno.tcif.telstra.com.au (ipxcno.tcif.telstra.com.au [203.35.82.208]) by ietfa.amsl.com (Postfix) with ESMTP id B36D91A0266 for <jose@ietf.org>; Mon, 25 Aug 2014 23:49:33 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.04,402,1406556000";  d="scan'208,217";a="207628539"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipocni.tcif.telstra.com.au with ESMTP; 26 Aug 2014 16:39:18 +1000
X-IronPort-AV: E=McAfee;i="5600,1067,7541"; a="195500855"
Received: from wsmsg3755.srv.dir.telstra.com ([172.49.40.196]) by ipcani.tcif.telstra.com.au with ESMTP; 26 Aug 2014 16:49:32 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3755.srv.dir.telstra.com ([172.49.40.196]) with mapi; Tue, 26 Aug 2014 16:49:31 +1000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: "jose@ietf.org" <jose@ietf.org>, "cmortimore@salesforce.com" <cmortimore@salesforce.com>
Date: Tue, 26 Aug 2014 16:49:30 +1000
Thread-Topic: JWK glitches in deployment
Thread-Index: Ac/A+eKYNRa6AT3ORduHKtSlXvbGfA==
Message-ID: <255B9BB34FB7D647A506DC292726F6E127C6DE46FD@WSMSG3153V.srv.dir.telstra.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-AU
Content-Type: multipart/alternative; boundary="_000_255B9BB34FB7D647A506DC292726F6E127C6DE46FDWSMSG3153Vsrv_"
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/AotAc2XL-AsxLF7C33or8up4GRs
Subject: [jose] JWK glitches in deployment
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Aug 2014 06:49:35 -0000

--_000_255B9BB34FB7D647A506DC292726F6E127C6DE46FDWSMSG3153Vsrv_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

In March, Google's JWK file https://www.googleapis.com/oauth2/v2/certs (use=
d for OpenID Connect) had 3 bugs: base64 instead of base64url; 1024-bit ins=
tead of >=3D2048-bit; leading zero byte on moduli.
Today Google's JWK file has 1 different bug: the base64url encoding has a t=
railing "=3D".
Salesforce's JWK file https://login.salesforce.com/id/keys has 1 bug: a lea=
ding zero byte on the RSA moduli.

Are these just teething problems, or do we need a stronger warning in the s=
pec. These bugs also change the JWK's thumbprint (another reminder not to b=
ase security on thumbprints being unique for a given key).

--
James Manger


--_000_255B9BB34FB7D647A506DC292726F6E127C6DE46FDWSMSG3153Vsrv_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-AU link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>In March, Google=
&#8217;s JWK file <a href=3D"https://www.googleapis.com/oauth2/v2/certs">ht=
tps://www.googleapis.com/oauth2/v2/certs</a> (used for OpenID Connect) had =
3 bugs: base64 instead of base64url; 1024-bit instead of &gt;=3D2048-bit; l=
eading zero byte on moduli.<o:p></o:p></p><p class=3DMsoNormal>Today Google=
&#8217;s JWK file has 1 different bug: the base64url encoding has a trailin=
g &#8220;=3D&#8221;.<o:p></o:p></p><p class=3DMsoNormal>Salesforce&#8217;s =
JWK file <a href=3D"https://login.salesforce.com/id/keys">https://login.sal=
esforce.com/id/keys</a> has 1 bug: a leading zero byte on the RSA moduli.<o=
:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal=
>Are these just teething problems, or do we need a stronger warning in the =
spec. These bugs also change the JWK&#8217;s thumbprint (another reminder n=
ot to base security on thumbprints being unique for a given key).<o:p></o:p=
></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>--<o:p>=
</o:p></p><p class=3DMsoNormal>James Manger<o:p></o:p></p><p class=3DMsoNor=
mal><o:p>&nbsp;</o:p></p></div></body></html>=

--_000_255B9BB34FB7D647A506DC292726F6E127C6DE46FDWSMSG3153Vsrv_--


From nobody Tue Aug 26 09:56:47 2014
Return-Path: <cmortimore@salesforce.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DABBE1A01D8 for <jose@ietfa.amsl.com>; Tue, 26 Aug 2014 09:56:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.722
X-Spam-Level: 
X-Spam-Status: No, score=0.722 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 nvHZCRqljBhe for <jose@ietfa.amsl.com>; Tue, 26 Aug 2014 09:56:44 -0700 (PDT)
Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E0D551A017D for <jose@ietf.org>; Tue, 26 Aug 2014 09:56:43 -0700 (PDT)
Received: by mail-ob0-f175.google.com with SMTP id wp18so11897191obc.20 for <jose@ietf.org>; Tue, 26 Aug 2014 09:56:43 -0700 (PDT)
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:date :message-id:subject:from:to:cc:content-type; bh=e5CJlinfOuVXUqEzZU0msczmjY8ho/lgR4mKTcgAwyc=; b=FxUQq4JLVLIwZHgo0DjxUrud99dLa5DEHEANu9gJ2pWYy8b//I/xLNwyewZi17TjQL CgI6UwyRe2hDB+BvKLVoIM/JBSqMu5c7iYRD5QeuJzAAgacbCLiFvHGNvi4hc/xWDj7W v85Dd8pbZAJnXnM/QFnWIpz59gaZ2Ds4Oqwk/av3ovP0rwBLsXW7bp+BS/f+0NlTkUQ0 0L5q9U9C/gEzcpb1qPGB4G6fvmRvdsLu91zVbkd18LAZMwMKUAiofwmQJafzuIT/lyev MbvpvSz/AknSzkSXfJlfnM09Zfxs4qgmJEBa7N8vyCdacsOxpPwUlppkaGWFuGQ0u4Z1 dNeQ==
X-Gm-Message-State: ALoCoQmMpk8mw9d7+ZGITDavX72z0btecIb4Xkh7bQUYuxLr/ZOVuysECaXflaEYq5OTZiaeIhpR
MIME-Version: 1.0
X-Received: by 10.182.236.225 with SMTP id ux1mr14827378obc.57.1409072203183;  Tue, 26 Aug 2014 09:56:43 -0700 (PDT)
Received: by 10.76.175.234 with HTTP; Tue, 26 Aug 2014 09:56:43 -0700 (PDT)
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E127C6DE46FD@WSMSG3153V.srv.dir.telstra.com>
References: <255B9BB34FB7D647A506DC292726F6E127C6DE46FD@WSMSG3153V.srv.dir.telstra.com>
Date: Tue, 26 Aug 2014 09:56:43 -0700
Message-ID: <CA+wnMn_PO5i-A4AK2CYG-XHOgUti5R6yMPMiTH4yoH7M=iXdEA@mail.gmail.com>
From: Chuck Mortimore <cmortimore@salesforce.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Content-Type: multipart/alternative; boundary=001a11c2fad0224bba05018b3030
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/XCFE9shztF1HK7fTj8TAeX44mho
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK glitches in deployment
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Aug 2014 16:56:46 -0000

--001a11c2fad0224bba05018b3030
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

We probably could have benefited from language in the spec calling out the
leading zero byte as an area of concern.    That said our ecosystem
detected it pretty quickly and after some collaborate with Microsoft, we
have a fix due out this week, so the growing pains are sorting themselves
out rather quickly.

-cmort


On Mon, Aug 25, 2014 at 11:49 PM, Manger, James <
James.H.Manger@team.telstra.com> wrote:

> In March, Google=E2=80=99s JWK file https://www.googleapis.com/oauth2/v2/=
certs
> (used for OpenID Connect) had 3 bugs: base64 instead of base64url; 1024-b=
it
> instead of >=3D2048-bit; leading zero byte on moduli.
>
> Today Google=E2=80=99s JWK file has 1 different bug: the base64url encodi=
ng has a
> trailing =E2=80=9C=3D=E2=80=9D.
>
> Salesforce=E2=80=99s JWK file https://login.salesforce.com/id/keys has 1 =
bug: a
> leading zero byte on the RSA moduli.
>
>
>
> Are these just teething problems, or do we need a stronger warning in the
> spec. These bugs also change the JWK=E2=80=99s thumbprint (another remind=
er not to
> base security on thumbprints being unique for a given key).
>
>
>
> --
>
> James Manger
>
>
>

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

<div dir=3D"ltr">We probably could have benefited from language in the spec=
 calling out the leading zero byte as an area of concern. =C2=A0 =C2=A0That=
 said our ecosystem detected it pretty quickly and after some collaborate w=
ith Microsoft, we have a fix due out this week, so the growing pains are so=
rting themselves out rather quickly.<div>
<br></div><div>-cmort</div></div><div class=3D"gmail_extra"><br><br><div cl=
ass=3D"gmail_quote">On Mon, Aug 25, 2014 at 11:49 PM, Manger, James <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:James.H.Manger@team.telstra.com" target=3D=
"_blank">James.H.Manger@team.telstra.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div lang=3D"EN-AU" link=3D"blue" vlink=3D"p=
urple"><div><p class=3D"MsoNormal">In March, Google=E2=80=99s JWK file <a h=
ref=3D"https://www.googleapis.com/oauth2/v2/certs" target=3D"_blank">https:=
//www.googleapis.com/oauth2/v2/certs</a> (used for OpenID Connect) had 3 bu=
gs: base64 instead of base64url; 1024-bit instead of &gt;=3D2048-bit; leadi=
ng zero byte on moduli.<u></u><u></u></p>
<p class=3D"MsoNormal">Today Google=E2=80=99s JWK file has 1 different bug:=
 the base64url encoding has a trailing =E2=80=9C=3D=E2=80=9D.<u></u><u></u>=
</p><p class=3D"MsoNormal">Salesforce=E2=80=99s JWK file <a href=3D"https:/=
/login.salesforce.com/id/keys" target=3D"_blank">https://login.salesforce.c=
om/id/keys</a> has 1 bug: a leading zero byte on the RSA moduli.<u></u><u><=
/u></p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal">Are t=
hese just teething problems, or do we need a stronger warning in the spec. =
These bugs also change the JWK=E2=80=99s thumbprint (another reminder not t=
o base security on thumbprints being unique for a given key).<u></u><u></u>=
</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal">--<u>=
</u><u></u></p><p class=3D"MsoNormal">James Manger<u></u><u></u></p><p clas=
s=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div></div></blockquote></div><br>=
</div>

--001a11c2fad0224bba05018b3030--


From nobody Tue Aug 26 15:00:44 2014
Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0FF2E1A0025 for <jose@ietfa.amsl.com>; Tue, 26 Aug 2014 15:00:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.399
X-Spam-Level: 
X-Spam-Status: No, score=0.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MANGLED_LIST=2.3, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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 PGuMIhsravWZ for <jose@ietfa.amsl.com>; Tue, 26 Aug 2014 15:00:30 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0144.outbound.protection.outlook.com [207.46.163.144]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9313E1A00A6 for <jose@ietf.org>; Tue, 26 Aug 2014 15:00:29 -0700 (PDT)
Received: from BN3PR0301CA0066.namprd03.prod.outlook.com (25.160.152.162) by BY2PR03MB254.namprd03.prod.outlook.com (10.242.37.17) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Tue, 26 Aug 2014 22:00:25 +0000
Received: from BL2FFO11FD040.protection.gbl (2a01:111:f400:7c09::106) by BN3PR0301CA0066.outlook.office365.com (2a01:111:e400:401e::34) with Microsoft SMTP Server (TLS) id 15.0.1015.19 via Frontend Transport; Tue, 26 Aug 2014 22:00:25 +0000
Received: from mail.microsoft.com (131.107.125.37) by BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Tue, 26 Aug 2014 22:00:24 +0000
Received: from TK5EX14MBXC293.redmond.corp.microsoft.com ([169.254.2.111]) by TK5EX14HUBC101.redmond.corp.microsoft.com ([157.54.7.153]) with mapi id 14.03.0195.002; Tue, 26 Aug 2014 22:00:11 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Jim Schaad <ietf@augustcellars.com>, 'Russ Housley' <housley@vigilsec.com>
Thread-Topic: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31
Thread-Index: AQHPv9ECk81UIBSPuUyJNF9LPTtocJvh7EOwgABcC4CAASelcA==
Date: Tue, 26 Aug 2014 22:00:10 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739439AE44472@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <D4999910-8500-4114-9670-08436D64FF28@vigilsec.com> <4E1F6AAD24975D4BA5B16804296739439AE40DC4@TK5EX14MBXC293.redmond.corp.microsoft.com> <035801cfc0e4$002fe8d0$008fba70$@augustcellars.com>
In-Reply-To: <035801cfc0e4$002fe8d0$008fba70$@augustcellars.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.72]
Content-Type: multipart/alternative; boundary="_000_4E1F6AAD24975D4BA5B16804296739439AE44472TK5EX14MBXC293r_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(438002)(377454003)(199003)(51444003)(43784003)(13464003)(189002)(51914003)(377424004)(132844002)(71186001)(69596002)(66066001)(106116001)(19580405001)(20776003)(83322001)(44976005)(81342001)(81156004)(4396001)(85852003)(77982001)(6806004)(81542001)(80022001)(68736004)(19580395003)(15202345003)(106466001)(64706001)(54356999)(87936001)(16236675004)(107046002)(99396002)(95666004)(230783001)(84676001)(15975445006)(84326002)(19617315012)(104016003)(16297215004)(74502001)(76482001)(55846006)(21056001)(512954002)(86612001)(33656002)(77096002)(85306004)(92726001)(76176999)(74662001)(50986999)(83072002)(19273905006)(46102001)(79102001)(19300405004)(561944003)(2656002)(86362001)(92566001)(31966008)(19625215002)(26826002)(97736001)(90102001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB254; H:mail.microsoft.com; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; 
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:;
X-O365ENT-EOP-Header: Message processed by -  O365_ENT: Allow from ranges (Engineering ONLY)
X-Forefront-PRVS: 03152A99FF
Received-SPF: Pass (protection.outlook.com: domain of microsoft.com designates 131.107.125.37 as permitted sender) receiver=protection.outlook.com;  client-ip=131.107.125.37; helo=mail.microsoft.com;
Authentication-Results: spf=pass (sender IP is 131.107.125.37) smtp.mailfrom=Michael.Jones@microsoft.com; 
X-OriginatorOrg: microsoft.onmicrosoft.com
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/MMhmPd5Gcx0xGCximyjWqGTjuis
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Aug 2014 22:00:42 -0000

--_000_4E1F6AAD24975D4BA5B16804296739439AE44472TK5EX14MBXC293r_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

So that there are no surprises, I'm also annotating the proposed resolution=
s below to say which of them will also result in parallel changes other dra=
fts.

From: Jim Schaad [mailto:ietf@augustcellars.com]
Sent: Monday, August 25, 2014 9:13 PM
To: Mike Jones; 'Russ Housley'
Cc: jose@ietf.org
Subject: RE: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31



From: jose [mailto:jose-bounces@ietf.org] On Behalf Of Mike Jones
Sent: Monday, August 25, 2014 6:22 PM
To: Russ Housley
Cc: jose@ietf.org<mailto:jose@ietf.org>
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31


Thanks for the useful review, Russ.  Proposed resolutions to your comments =
follow inline.  Please let me know if you agree.  Also, working group membe=
rs, please follow this discussion, as these comments will likely result in =
changes to the current drafts.



-----Original Message-----
From: ietf [mailto:ietf-bounces@ietf.org] On Behalf Of Russ Housley
Sent: Sunday, August 24, 2014 12:23 PM
To: draft-ietf-jose-json-web-signature.all@tools.ietf.org<mailto:draft-ietf=
-jose-json-web-signature.all@tools.ietf.org>
Cc: IETF Gen-ART; IETF
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31



I am the assigned Gen-ART reviewer for this draft. For background on Gen-AR=
T, please see the FAQ at <http://wiki.tools.ietf.org/area/gen/trac/wiki/Gen=
Artfaq>.



Please resolve these comments along with any other Last Call comments you m=
ay receive.



Document: draft-ietf-jose-json-web-signature-31

Reviewer: Russ Housley

Review Date: 2014-08-24

IETF LC End Date: 2014-09-03

IESG Telechat date: unknown



Summary:  Not quite ready.  Some issues to resolve.



Major Concerns:



- At first reading, I thought that Sections 2 and 3 were defining the

  same terms.  On the second or third reading, I figured it out.

  I think it would be more clear in Section 3 to state that a JWS is

  constructed from a sequence of the things that are already defined

  in Section 2.



I understand that there is some repetition between the Terminology section =
and the JWS Overview section.  I will plan to eliminate this duplication in=
 the manner you suggested - by simply using, rather restating the definitio=
ns of, the terms, and saying that they are defined above.  (Jim Schaad - no=
te that this will condense some of the text that you'd requested be added t=
o Section 3 to explicitly spell out the parts of a JWS, and will result in =
a parallel change to JWE.  Is that OK with you?)



Given that I would expect the text to be in section 2, this is not an issue=
 for me.



Note that this proposed resolution will also result in parallel changes to =
the JWE spec.



- In Section 5.2, it says that in some cases, all must successfully

  validate, but in other cases, only a specific signature, MAC, or

  plaintext value needs to be successfully validated. How does the

  recipient know which case applies?



The recipient knows what application it is part of, and so knows the applic=
ation decisions described in 5.2, paragraph 2 about whether all or some sig=
natures must validate.



I do agree that the text in step 9 (signature validation) could be read as =
being in conflict with paragraph 2.   I'll plan to modify this to say that =
the step records whether the signature validated, rather than saying that i=
t must validate.  Then I'll add a step 11 saying to reject the input if no =
signature validated and a step 12 saying to return a result indicating whic=
h signatures were successfully validated, so that the application can deter=
mine whether to accept the input and which signatures to trust.  Will that =
work for you?



It's more complicated a description, but a more general description of the =
things that can happen in the multiple signatures case, in which some signa=
tures validate and some don't and you may need to tell the application whic=
h ones were good and which were bad.  (It's much simpler in the single sign=
ature case, in which you can make a simple accept/reject decision.)



Note that this proposed resolution will also result in parallel changes to =
the JWE spec.



- In Section 8, why not say that TLS 1.2 or later MUST be supported?



This text is modelled after http://tools.ietf.org/html/rfc6749#section-1.6,=
 but updated to remove the reference to TLS 1.0.  I don't believe the worki=
ng group felt that it had sufficient data on TLS 1.2 deployment to understa=
nd whether it could now safely mandate 1.2 or whether this would effectivel=
y mean that many deployments would be non-conformant.  Is there data saying=
 that greater than N% of devices in common use now support TLS 1.2 - where =
N% is preferably over 90%?  It would be good have such data about commonly =
used platforms such OS X, iOS, Android, Linux, and Windows to help inform t=
his decision.



- Section 10 says, "The entire list of security considerations is

  beyond the scope of this document..."  This reads like a red flag to

  me.  While it is not possible to discuss every possible implementation

  consideration that impacts security, the document should cover the

  topics discussed in RFC 3552.  At a minimum, I think the following

  need to be discussed:

    -- the consequences of compromise of the signer's private key

    -- the consequences of compromise of the MAC key

    -- the consequences of poor random numbers, which are needed for

       more than just key entropy with some algorithms like ECDSA

    -- awareness that cryptographic algorithms become weaker with time



I agree that the phrase "The entire list of security considerations is beyo=
nd the scope of this document..." adds no or negative value.  I'll remove i=
t.



I'll also plan to explicitly make sure that we address the topics in your l=
ist above and go through RFC 3552 looking for others that we need to cover.



Note that this proposed resolution will also result in parallel changes to =
the JWE, JWK, JWA, and JWT specs.



Minor Concerns:



- Section 1, 1st paragraph says: "The JWS cryptographic mechanisms

  provide integrity protection for an arbitrary sequence of octets."

  This is true, but this is not the whole story.  A sentence or two

  should be added about when a signature mechanism is appropriate

  and when a MAC mechanism is appropriate.  Alternatively, a pointer

  to Section 10.4 could be included.



I will plan to add the pointer to Section 10.4.



- In Section 4.1.4, should the value match the subject key identifier

  if an X.509 certificate is used?



That was not an intended usage of this field, although nothing precludes pa=
rticular applications from specifying its use in that manner.  Its intended=
 usage is to match JWK "kid" values, as described.  I don't plan to make a =
change to the document in response to this comment unless you believe that =
one is truly necessary.



- In Section 4.1.5, why is TLS required to fetch digitally signed

  X.509 certificates?



This question was explicitly discussed by the working group at IETF 87.  Th=
e discussion is recorded in the minutes<http://www.ietf.org/proceedings/87/=
minutes/minutes-87-jose> as follows:

If there is an x5u pointing to a certification issued by a major CA, is TLS=
 required for the HTTP query used to retrieve this certificate?  TLS should=
n't be needed since the certificate is a signed object.  Therefore, the "MU=
ST" use TLS for cert retrieval should be changed to "SHOULD".  This is an a=
pplication decision.  Mike Jones doesn't want removal of TLS in the case wh=
ere there's no external means to verify the retrieved key.  Matt Miller: ag=
rees with the jku case, but argues that for x5u, there is a class of applic=
ations where it isn't known if the retrieved object is self-protecting (lik=
e a certificate) until after it is retrieved.  Even if the object appears t=
o be self-protecting, if the retriever doesn't have a trusted root for that=
 object, it might not be able to verify the protection anyhow.  So it use o=
f TLS might still be preferable instead of having to potentially retrieve a=
n object twice, once over HTTP and then over HTTPS.  Joe Hildebrand wanted =
to know what the upside of this proposal is.  Richard says it saves on TLS =
handshakes; Hildebrand envisions a world where TLS is ubiquitous.  Paul Hof=
fman said that a similar issue in DANE ended up being dropped after a coupl=
e of months of discussion.  Richard agreed to drop the TLS MUST to SHOULD p=
roposal.



- Section 10.2 talks about chosen plaintext attacks.  However, there

  are much worse things than chosen plaintext attacks that will result

  if a third party can get a signer to sign a content of its choosing.



What's there now is about attackers getting to choose part of the plaintext=
.  I think you're talking about attacks in which the attacker gets to choos=
e the whole plaintext, which is clearly far worse.  At that point, the sign=
ature of the signer obviously becomes pretty worthless.  Is that your point=
 here?  If so, I could take a stab at writing something about this, or you =
could suggest some text if you'd like.



Other Comments:



- I suggest a rewording for a part of Section 2:



  OLD:



   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The members of the JOSE

      Header are Header Parameters.



  NEW:



   JOSE Header

      JSON object containing the parameters describing the cryptographic

      operations and parameters employed.  The JOSE Header is composed

      of a set of Header Parameters.



OK



- I think that Section 3.1 would be more clear by saying:



   In the JWS Compact Serialization, a JWS object is represented as:



      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      BASE64URL(JWS Payload)  || "." ||

      BASE64URL(JWS Signature)



OK



Note that this proposed resolution will also result in parallel changes to =
the JWE spec.



- I think that Section 3.1 would be more clear by saying:



   In the JWS JSON Serialization, a JWS object is represented as:



      BASE64URL(UTF8(JWS Protected Header)) || "." ||

      JWS Unprotected Header || "." ||

      BASE64URL(JWS Payload) || "." ||

      BASE64URL(JWS Signature)



This isn't accurate.  Assuming you're talking about 3.2, the representation=
 isn't the concatenation above - it's a JSON object containing some or all =
of the values above.  Nonetheless, I can try to revise the text to be more =
direct here as well.



Note that this proposed resolution will also result in parallel changes to =
the JWE spec.



   Then, the text needs to say that whitespace may appear anywhere.



OK



Note that this proposed resolution will also result in parallel changes to =
the JWE spec.



- Some additional whitespace would make Section 7.2 easier to read.



OK



- The IANA Considerations section requires the establishment of a new

  mail list: jose-reg-review@ietf.org<mailto:jose-reg-review@ietf.org>.  Th=
e process for setting up the

  list is described at the bottom of this web page:

  http://www.ietf.org/list/nonwg.html.



This text was taken from RFC 6749 and the list is modelled after the oauth-=
ext-review@ietf.org<mailto:oauth-ext-review@ietf.org> list described therei=
n.  It's not clear to me whether you want a change to the draft (if so plea=
se specify) or whether you were just being helpful (which is appreciated).



                                                                Thanks agai=
n,

                                                                -- Mike



--_000_4E1F6AAD24975D4BA5B16804296739439AE44472TK5EX14MBXC293r_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"color:#7030A0">So that there are no s=
urprises, I&#8217;m also annotating the proposed resolutions below to say w=
hich of them will also result in parallel changes other drafts.<o:p></o:p><=
/span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Jim Scha=
ad [mailto:ietf@augustcellars.com]
<br>
<b>Sent:</b> Monday, August 25, 2014 9:13 PM<br>
<b>To:</b> Mike Jones; 'Russ Housley'<br>
<b>Cc:</b> jose@ietf.org<br>
<b>Subject:</b> RE: [jose] Gen-ART review of draft-ietf-jose-json-web-signa=
ture-31<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></spa=
n></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> jose [<a=
 href=3D"mailto:jose-bounces@ietf.org">mailto:jose-bounces@ietf.org</a>]
<b>On Behalf Of </b>Mike Jones<br>
<b>Sent:</b> Monday, August 25, 2014 6:22 PM<br>
<b>To:</b> Russ Housley<br>
<b>Cc:</b> <a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<b>Subject:</b> Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signa=
ture-31<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">Thanks for the usef=
ul review, Russ.&nbsp; Proposed resolutions to your comments follow inline.=
&nbsp; Please let me know if you agree.&nbsp; Also, working group members, =
please follow this discussion, as these comments will
 likely result in changes to the current drafts.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">-----Original Message-----<br>
From: ietf [<a href=3D"mailto:ietf-bounces@ietf.org">mailto:ietf-bounces@ie=
tf.org</a>] On Behalf Of Russ Housley<br>
Sent: Sunday, August 24, 2014 12:23 PM<br>
To: <a href=3D"mailto:draft-ietf-jose-json-web-signature.all@tools.ietf.org=
">draft-ietf-jose-json-web-signature.all@tools.ietf.org</a><br>
Cc: IETF Gen-ART; IETF<br>
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31<o:p></o:p>=
</p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">I am the assigned Gen-ART reviewer for this draft=
. For background on Gen-ART, please see the FAQ at &lt;<a href=3D"http://wi=
ki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq"><span style=3D"color:window=
text;text-decoration:none">http://wiki.tools.ietf.org/area/gen/trac/wiki/Ge=
nArtfaq</span></a>&gt;.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Please resolve these comments along with any othe=
r Last Call comments you may receive.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Document: draft-ietf-jose-json-web-signature-31<o=
:p></o:p></p>
<p class=3D"MsoPlainText">Reviewer: Russ Housley<o:p></o:p></p>
<p class=3D"MsoPlainText">Review Date: 2014-08-24<o:p></o:p></p>
<p class=3D"MsoPlainText">IETF LC End Date: 2014-09-03<o:p></o:p></p>
<p class=3D"MsoPlainText">IESG Telechat date: unknown<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Summary:&nbsp; Not quite ready.&nbsp; Some issues=
 to resolve.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Major Concerns:&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- At first reading, I thought that Sections 2 and=
 3 were defining the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; same terms.&nbsp; On the second or third r=
eading, I figured it out.<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; I think it would be more clear in Section =
3 to state that a JWS is<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; constructed from a sequence of the things =
that are already defined<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; in Section 2.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I understand that t=
here is some repetition between the Terminology section and the JWS Overvie=
w section.&nbsp; I will plan to eliminate this duplication in the manner yo=
u suggested &#8211; by simply using, rather restating
 the definitions of, the terms, and saying that they are defined above.&nbs=
p; (Jim Schaad &#8211; note that this will condense some of the text that y=
ou&#8217;d requested be added to Section 3 to explicitly spell out the part=
s of a JWS, and will result in a parallel change
 to JWE.&nbsp; Is that OK with you?)<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#00B050">Given that I would =
expect the text to be in section 2, this is not an issue for me.<o:p></o:p>=
</span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE spec.<o:p><=
/o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText">- In Section 5.2, it says that in some cases, all=
 must successfully<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; validate, but in other cases, only a speci=
fic signature, MAC, or<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; plaintext value needs to be successfully v=
alidated. How does the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; recipient know which case applies?<o:p></o=
:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">The recipient knows=
 what application it is part of, and so knows the application decisions des=
cribed in 5.2, paragraph 2 about whether all or some signatures must valida=
te.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I do agree that the=
 text in step 9 (signature validation) could be read as being in conflict w=
ith paragraph 2. &nbsp;&nbsp;I&#8217;ll plan to modify this to say that the=
 step records whether the signature validated, rather
 than saying that it must validate.&nbsp; Then I&#8217;ll add a step 11 say=
ing to reject the input if no signature validated and a step 12 saying to r=
eturn a result indicating which signatures were successfully validated, so =
that the application can determine whether
 to accept the input and which signatures to trust.&nbsp; Will that work fo=
r you?<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">It&#8217;s more com=
plicated a description, but a more general description of the things that c=
an happen in the multiple signatures case, in which some signatures validat=
e and some don&#8217;t and you may need to tell
 the application which ones were good and which were bad.&nbsp; (It&#8217;s=
 much simpler in the single signature case, in which you can make a simple =
accept/reject decision.)<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE spec.<o:p><=
/o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText">- In Section 8, why not say that TLS 1.2 or later=
 MUST be supported?<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This text is modell=
ed after <a href=3D"http://tools.ietf.org/html/rfc6749#section-1.6">
http://tools.ietf.org/html/rfc6749#section-1.6</a>, but updated to remove t=
he reference to TLS 1.0.&nbsp; I don&#8217;t believe the working group felt=
 that it had sufficient data on TLS 1.2 deployment to understand whether it=
 could now safely mandate 1.2 or whether this
 would effectively mean that many deployments would be non-conformant.&nbsp=
; Is there data saying that greater than N% of devices in common use now su=
pport TLS 1.2 &#8211; where N% is preferably over 90%?&nbsp; It would be go=
od have such data about commonly used platforms
 such OS X, iOS, Android, Linux, and Windows to help inform this decision.<=
o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Section 10 says, &quot;The entire list of secur=
ity considerations is<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; beyond the scope of this document...&quot;=
&nbsp; This reads like a red flag to<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; me.&nbsp; While it is not possible to disc=
uss every possible implementation<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; consideration that impacts security, the d=
ocument should cover the<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; topics discussed in RFC 3552.&nbsp; At a m=
inimum, I think the following<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; need to be discussed:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of comprom=
ise of the signer's private key<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of comprom=
ise of the MAC key<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- the consequences of poor ra=
ndom numbers, which are needed for<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; more than ju=
st key entropy with some algorithms like ECDSA<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp; -- awareness that cryptographi=
c algorithms become weaker with time<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I agree that the ph=
rase &#8220;</span>The entire list of security considerations is beyond the=
 scope of this document...<span style=3D"color:#0070C0">&#8221; adds no or =
negative value.&nbsp; I&#8217;ll remove it.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I&#8217;ll also pla=
n to explicitly make sure that we address the topics in your list above and=
 go through RFC 3552 looking for others that we need to cover.<o:p></o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE, JWK, JWA, =
and JWT specs.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">Minor Concerns:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- Section 1, 1st paragraph says: &quot;The JWS cr=
yptographic mechanisms<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; provide integrity protection for an arbitr=
ary sequence of octets.&quot;<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; This is true, but this is not the whole st=
ory.&nbsp; A sentence or two<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; should be added about when a signature mec=
hanism is appropriate<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; and when a MAC mechanism is appropriate.&n=
bsp; Alternatively, a pointer<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; to Section 10.4 could be included.<o:p></o=
:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">I will plan to add =
the pointer to Section 10.4.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- In Section 4.1.4, should the value match the su=
bject key identifier<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; if an X.509 certificate is used?<o:p></o:p=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">That was not an int=
ended usage of this field, although nothing precludes particular applicatio=
ns from specifying its use in that manner.&nbsp; Its intended usage is to m=
atch JWK &#8220;kid&#8221; values, as described.&nbsp; I don&#8217;t
 plan to make a change to the document in response to this comment unless y=
ou believe that one is truly necessary.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- In Section 4.1.5, why is TLS required to fetch =
digitally signed<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; X.509 certificates?<o:p></o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This question was e=
xplicitly discussed by the working group at IETF 87.&nbsp; The discussion i=
s recorded in
<a href=3D"http://www.ietf.org/proceedings/87/minutes/minutes-87-jose">the =
minutes</a> as follows:<o:p></o:p></span></p>
<p class=3D"MsoPlainText" style=3D"margin-left:.5in"><span style=3D"color:#=
0070C0">If there is an x5u pointing to a certification issued by a major CA=
, is TLS required for the HTTP query used to retrieve this certificate?&nbs=
p; TLS shouldn't be needed since the certificate
 is a signed object.&nbsp; Therefore, the &quot;MUST&quot; use TLS for cert=
 retrieval should be changed to &quot;SHOULD&quot;.&nbsp; This is an applic=
ation decision.&nbsp; Mike Jones doesn't want removal of TLS in the case wh=
ere there's no external means to verify the retrieved key.&nbsp; Matt Mille=
r:
 agrees with the jku case, but argues that for x5u, there is a class of app=
lications where it isn't known if the retrieved object is self-protecting (=
like a certificate) until after it is retrieved.&nbsp; Even if the object a=
ppears to be self-protecting, if the
 retriever doesn't have a trusted root for that object, it might not be abl=
e to verify the protection anyhow.&nbsp; So it use of TLS might still be pr=
eferable instead of having to potentially retrieve an object twice, once ov=
er HTTP and then over HTTPS.&nbsp; Joe Hildebrand
 wanted to know what the upside of this proposal is.&nbsp; Richard says it =
saves on TLS handshakes; Hildebrand envisions a world where TLS is ubiquito=
us.&nbsp; Paul Hoffman said that a similar issue in DANE ended up being dro=
pped after a couple of months of discussion.&nbsp;
 Richard agreed to drop the TLS MUST to SHOULD proposal.<o:p></o:p></span><=
/p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Section 10.2 talks about chosen plaintext attac=
ks.&nbsp; However, there<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; are much worse things than chosen plaintex=
t attacks that will result<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; if a third party can get a signer to sign =
a content of its choosing.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">What&#8217;s there =
now is about attackers getting to choose part of the plaintext.&nbsp; I thi=
nk you&#8217;re talking about attacks in which the attacker gets to choose =
the whole plaintext, which is clearly far worse.&nbsp; At
 that point, the signature of the signer obviously becomes pretty worthless=
.&nbsp; Is that your point here?&nbsp; If so, I could take a stab at writin=
g something about this, or you could suggest some text if you&#8217;d like.=
<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">Other Comments:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- I suggest a rewording for a part of Section 2:<=
o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp; OLD:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; JOSE Header<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object contai=
ning the parameters describing the cryptographic<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and par=
ameters employed.&nbsp; The members of the JOSE<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Header are Header =
Parameters.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp; NEW:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; JOSE Header<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JSON object contai=
ning the parameters describing the cryptographic<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operations and par=
ameters employed.&nbsp; The JOSE Header is composed<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of a set of Header=
 Parameters.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- I think that Section 3.1 would be more clear by=
 saying:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; In the JWS Compact Serialization, a =
JWS object is represented as:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF=
8(JWS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Payl=
oad)&nbsp; || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Sign=
ature)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE spec.<o:p><=
/o:p></span></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- I think that Section 3.1 would be more clear by=
 saying:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; In the JWS JSON Serialization, a JWS=
 object is represented as:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; <o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE64URL(UTF=
8(JWS Protected Header)) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JWS Unprotected He=
ader || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Payl=
oad) || &quot;.&quot; ||<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BASE64URL(JWS Sign=
ature)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This isn&#8217;t ac=
curate.&nbsp; Assuming you&#8217;re talking about 3.2, the representation i=
sn&#8217;t the concatenation above &#8211; it&#8217;s a JSON object contain=
ing some or all of the values above.&nbsp; Nonetheless, I can try to revise
 the text to be more direct here as well.<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE spec.<o:p><=
/o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; Then, the text needs to say that whi=
tespace may appear anywhere.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><span style=3D"color:#1F497D"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#7030A0">Note that this prop=
osed resolution will also result in parallel changes to the JWE spec.<o:p><=
/o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:black"><o:p>&nbsp;</o:p></sp=
an></p>
<p class=3D"MsoPlainText">- Some additional whitespace would make Section 7=
.2 easier to read.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">OK<o:p></o:p></span=
></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">- The IANA Considerations section requires the es=
tablishment of a new<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; mail list: <a href=3D"mailto:jose-reg-revi=
ew@ietf.org"><span style=3D"color:windowtext;text-decoration:none">jose-reg=
-review@ietf.org</span></a>.&nbsp; The process for setting up the<o:p></o:p=
></p>
<p class=3D"MsoPlainText">&nbsp; list is described at the bottom of this we=
b page:<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp; <a href=3D"http://www.ietf.org/list/nonwg.=
html"><span style=3D"color:windowtext;text-decoration:none">http://www.ietf=
.org/list/nonwg.html</span></a>.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">This text was taken=
 from RFC 6749 and the list is modelled after the
<a href=3D"mailto:oauth-ext-review@ietf.org">oauth-ext-review@ietf.org</a> =
list described therein.&nbsp; It&#8217;s not clear to me whether you want a=
 change to the draft (if so please specify) or whether you were just being =
helpful (which is appreciated).<o:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks again,<o=
:p></o:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0">&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mike<o:p></o=
:p></span></p>
<p class=3D"MsoPlainText"><span style=3D"color:#0070C0"><o:p>&nbsp;</o:p></=
span></p>
</div>
</body>
</html>

--_000_4E1F6AAD24975D4BA5B16804296739439AE44472TK5EX14MBXC293r_--


From nobody Wed Aug 27 11:55:30 2014
Return-Path: <kathleen.moriarty.ietf@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5B851A00FC; Wed, 27 Aug 2014 11:55:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.001
X-Spam-Level: ***
X-Spam-Status: No, score=3.001 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, HTML_MESSAGE=0.001, MANGLED_LIST=2.3, 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 8sJuMxR4kK0L; Wed, 27 Aug 2014 11:55:21 -0700 (PDT)
Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EE0A1A00DB; Wed, 27 Aug 2014 11:55:20 -0700 (PDT)
Received: by mail-la0-f46.google.com with SMTP id gl10so440076lab.33 for <multiple recipients>; Wed, 27 Aug 2014 11:55:18 -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=jqLwEVIOHjqKx846PFEa0n7x6P+cjnbNipHif/Gutck=; b=AikKxZsJvCdHu9uqKYEzyQ46qvVP4vMVl6azUtSh2vcyvwTOwktRfQjPuBkYpCMYRd WeNbf9iOvXDsLwgeazVo5DxOdL7GwxSG8zalrwJkx8vFmFZYnu/R8PaUjOtatNGJ7ZtA jDd4NodYCE7PFdW6Lk3tr8KbWFDJ5mDfCUEMifBWdjLR2aUvxeXG9KDcr56gcgGsnOqQ xlh7HCGNLoKQEldh6Pp3zzguZ2PSNNe35zMnrRZKeWBSs40RgKsswlm0hY6363mp840+ /Bemgq8nOGuhACBKQovi3jSUqv9gbJReo5uNqIKQm3fcdTp6pxIQp1wkGIXl61rpQkmf CpmQ==
MIME-Version: 1.0
X-Received: by 10.112.173.136 with SMTP id bk8mr5123836lbc.88.1409165718730; Wed, 27 Aug 2014 11:55:18 -0700 (PDT)
Received: by 10.112.64.170 with HTTP; Wed, 27 Aug 2014 11:55:18 -0700 (PDT)
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739439AE44472@TK5EX14MBXC293.redmond.corp.microsoft.com>
References: <D4999910-8500-4114-9670-08436D64FF28@vigilsec.com> <4E1F6AAD24975D4BA5B16804296739439AE40DC4@TK5EX14MBXC293.redmond.corp.microsoft.com> <035801cfc0e4$002fe8d0$008fba70$@augustcellars.com> <4E1F6AAD24975D4BA5B16804296739439AE44472@TK5EX14MBXC293.redmond.corp.microsoft.com>
Date: Wed, 27 Aug 2014 14:55:18 -0400
Message-ID: <CAHbuEH4m6wV_=LWqM_ix4vwytpsk=qRbzmB9veDE5VZXGo52xQ@mail.gmail.com>
From: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
To: Mike Jones <Michael.Jones@microsoft.com>,  draft-ietf-jose-json-web-signature.all@tools.ietf.org, IETF <ietf@ietf.org>,  gen-art@ietf.org
Content-Type: multipart/alternative; boundary=001a11c221ae183d730501a0f6c4
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/bk6VRm443vMwXHtPOTdoI0MlVMA
Cc: Jim Schaad <ietf@augustcellars.com>, Russ Housley <housley@vigilsec.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signature-31
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Aug 2014 18:55:25 -0000

--001a11c221ae183d730501a0f6c4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I just noticed the responses were not sent to Gen-art, IETF, or
draft-ietf-jose-json-web-signature.all@tools.ietf.org.  Forwarded thread
for transparency on review.



On Tue, Aug 26, 2014 at 6:00 PM, Mike Jones <Michael.Jones@microsoft.com>
wrote:

>  So that there are no surprises, I=E2=80=99m also annotating the proposed
> resolutions below to say which of them will also result in parallel chang=
es
> other drafts.
>
>
>
> *From:* Jim Schaad [mailto:ietf@augustcellars.com]
> *Sent:* Monday, August 25, 2014 9:13 PM
> *To:* Mike Jones; 'Russ Housley'
> *Cc:* jose@ietf.org
> *Subject:* RE: [jose] Gen-ART review of
> draft-ietf-jose-json-web-signature-31
>
>
>
>
>
>
>
> *From:* jose [mailto:jose-bounces@ietf.org <jose-bounces@ietf.org>] *On
> Behalf Of *Mike Jones
> *Sent:* Monday, August 25, 2014 6:22 PM
> *To:* Russ Housley
> *Cc:* jose@ietf.org
> *Subject:* Re: [jose] Gen-ART review of
> draft-ietf-jose-json-web-signature-31
>
>
>
> Thanks for the useful review, Russ.  Proposed resolutions to your comment=
s
> follow inline.  Please let me know if you agree.  Also, working group
> members, please follow this discussion, as these comments will likely
> result in changes to the current drafts.
>
>
>
> -----Original Message-----
> From: ietf [mailto:ietf-bounces@ietf.org <ietf-bounces@ietf.org>] On
> Behalf Of Russ Housley
> Sent: Sunday, August 24, 2014 12:23 PM
> To: draft-ietf-jose-json-web-signature.all@tools.ietf.org
> Cc: IETF Gen-ART; IETF
> Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31
>
>
>
> I am the assigned Gen-ART reviewer for this draft. For background on
> Gen-ART, please see the FAQ at <
> http://wiki.tools.ietf.org/area/gen/trac/wiki/GenArtfaq>.
>
>
>
> Please resolve these comments along with any other Last Call comments you
> may receive.
>
>
>
> Document: draft-ietf-jose-json-web-signature-31
>
> Reviewer: Russ Housley
>
> Review Date: 2014-08-24
>
> IETF LC End Date: 2014-09-03
>
> IESG Telechat date: unknown
>
>
>
> Summary:  Not quite ready.  Some issues to resolve.
>
>
>
> Major Concerns:
>
>
>
> - At first reading, I thought that Sections 2 and 3 were defining the
>
>   same terms.  On the second or third reading, I figured it out.
>
>   I think it would be more clear in Section 3 to state that a JWS is
>
>   constructed from a sequence of the things that are already defined
>
>   in Section 2.
>
>
>
> I understand that there is some repetition between the Terminology sectio=
n
> and the JWS Overview section.  I will plan to eliminate this duplication =
in
> the manner you suggested =E2=80=93 by simply using, rather restating the
> definitions of, the terms, and saying that they are defined above.  (Jim
> Schaad =E2=80=93 note that this will condense some of the text that you=
=E2=80=99d requested
> be added to Section 3 to explicitly spell out the parts of a JWS, and wil=
l
> result in a parallel change to JWE.  Is that OK with you?)
>
>
>
> Given that I would expect the text to be in section 2, this is not an
> issue for me.
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE spec.
>
>
>
> - In Section 5.2, it says that in some cases, all must successfully
>
>   validate, but in other cases, only a specific signature, MAC, or
>
>   plaintext value needs to be successfully validated. How does the
>
>   recipient know which case applies?
>
>
>
> The recipient knows what application it is part of, and so knows the
> application decisions described in 5.2, paragraph 2 about whether all or
> some signatures must validate.
>
>
>
> I do agree that the text in step 9 (signature validation) could be read a=
s
> being in conflict with paragraph 2.   I=E2=80=99ll plan to modify this to=
 say that
> the step records whether the signature validated, rather than saying that
> it must validate.  Then I=E2=80=99ll add a step 11 saying to reject the i=
nput if no
> signature validated and a step 12 saying to return a result indicating
> which signatures were successfully validated, so that the application can
> determine whether to accept the input and which signatures to trust.  Wil=
l
> that work for you?
>
>
>
> It=E2=80=99s more complicated a description, but a more general descripti=
on of the
> things that can happen in the multiple signatures case, in which some
> signatures validate and some don=E2=80=99t and you may need to tell the a=
pplication
> which ones were good and which were bad.  (It=E2=80=99s much simpler in t=
he single
> signature case, in which you can make a simple accept/reject decision.)
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE spec.
>
>
>
> - In Section 8, why not say that TLS 1.2 or later MUST be supported?
>
>
>
> This text is modelled after http://tools.ietf.org/html/rfc6749#section-1.=
6,
> but updated to remove the reference to TLS 1.0.  I don=E2=80=99t believe =
the
> working group felt that it had sufficient data on TLS 1.2 deployment to
> understand whether it could now safely mandate 1.2 or whether this would
> effectively mean that many deployments would be non-conformant.  Is there
> data saying that greater than N% of devices in common use now support TLS
> 1.2 =E2=80=93 where N% is preferably over 90%?  It would be good have suc=
h data
> about commonly used platforms such OS X, iOS, Android, Linux, and Windows
> to help inform this decision.
>
>
>
> - Section 10 says, "The entire list of security considerations is
>
>   beyond the scope of this document..."  This reads like a red flag to
>
>   me.  While it is not possible to discuss every possible implementation
>
>   consideration that impacts security, the document should cover the
>
>   topics discussed in RFC 3552.  At a minimum, I think the following
>
>   need to be discussed:
>
>     -- the consequences of compromise of the signer's private key
>
>     -- the consequences of compromise of the MAC key
>
>     -- the consequences of poor random numbers, which are needed for
>
>        more than just key entropy with some algorithms like ECDSA
>
>     -- awareness that cryptographic algorithms become weaker with time
>
>
>
> I agree that the phrase =E2=80=9CThe entire list of security consideratio=
ns is
> beyond the scope of this document...=E2=80=9D adds no or negative value. =
 I=E2=80=99ll
> remove it.
>
>
>
> I=E2=80=99ll also plan to explicitly make sure that we address the topics=
 in your
> list above and go through RFC 3552 looking for others that we need to cov=
er.
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE, JWK, JWA, and JWT specs.
>
>
>
> Minor Concerns:
>
>
>
> - Section 1, 1st paragraph says: "The JWS cryptographic mechanisms
>
>   provide integrity protection for an arbitrary sequence of octets."
>
>   This is true, but this is not the whole story.  A sentence or two
>
>   should be added about when a signature mechanism is appropriate
>
>   and when a MAC mechanism is appropriate.  Alternatively, a pointer
>
>   to Section 10.4 could be included.
>
>
>
> I will plan to add the pointer to Section 10.4.
>
>
>
> - In Section 4.1.4, should the value match the subject key identifier
>
>   if an X.509 certificate is used?
>
>
>
> That was not an intended usage of this field, although nothing precludes
> particular applications from specifying its use in that manner.  Its
> intended usage is to match JWK =E2=80=9Ckid=E2=80=9D values, as described=
.  I don=E2=80=99t plan to
> make a change to the document in response to this comment unless you
> believe that one is truly necessary.
>
>
>
> - In Section 4.1.5, why is TLS required to fetch digitally signed
>
>   X.509 certificates?
>
>
>
> This question was explicitly discussed by the working group at IETF 87.
> The discussion is recorded in the minutes
> <http://www.ietf.org/proceedings/87/minutes/minutes-87-jose> as follows:
>
> If there is an x5u pointing to a certification issued by a major CA, is
> TLS required for the HTTP query used to retrieve this certificate?  TLS
> shouldn't be needed since the certificate is a signed object.  Therefore,
> the "MUST" use TLS for cert retrieval should be changed to "SHOULD".  Thi=
s
> is an application decision.  Mike Jones doesn't want removal of TLS in th=
e
> case where there's no external means to verify the retrieved key.  Matt
> Miller: agrees with the jku case, but argues that for x5u, there is a cla=
ss
> of applications where it isn't known if the retrieved object is
> self-protecting (like a certificate) until after it is retrieved.  Even i=
f
> the object appears to be self-protecting, if the retriever doesn't have a
> trusted root for that object, it might not be able to verify the protecti=
on
> anyhow.  So it use of TLS might still be preferable instead of having to
> potentially retrieve an object twice, once over HTTP and then over HTTPS.
> Joe Hildebrand wanted to know what the upside of this proposal is.  Richa=
rd
> says it saves on TLS handshakes; Hildebrand envisions a world where TLS i=
s
> ubiquitous.  Paul Hoffman said that a similar issue in DANE ended up bein=
g
> dropped after a couple of months of discussion.  Richard agreed to drop t=
he
> TLS MUST to SHOULD proposal.
>
>
>
> - Section 10.2 talks about chosen plaintext attacks.  However, there
>
>   are much worse things than chosen plaintext attacks that will result
>
>   if a third party can get a signer to sign a content of its choosing.
>
>
>
> What=E2=80=99s there now is about attackers getting to choose part of the
> plaintext.  I think you=E2=80=99re talking about attacks in which the att=
acker gets
> to choose the whole plaintext, which is clearly far worse.  At that point=
,
> the signature of the signer obviously becomes pretty worthless.  Is that
> your point here?  If so, I could take a stab at writing something about
> this, or you could suggest some text if you=E2=80=99d like.
>
>
>
> Other Comments:
>
>
>
> - I suggest a rewording for a part of Section 2:
>
>
>
>   OLD:
>
>
>
>    JOSE Header
>
>       JSON object containing the parameters describing the cryptographic
>
>       operations and parameters employed.  The members of the JOSE
>
>       Header are Header Parameters.
>
>
>
>   NEW:
>
>
>
>    JOSE Header
>
>       JSON object containing the parameters describing the cryptographic
>
>       operations and parameters employed.  The JOSE Header is composed
>
>       of a set of Header Parameters.
>
>
>
> OK
>
>
>
> - I think that Section 3.1 would be more clear by saying:
>
>
>
>    In the JWS Compact Serialization, a JWS object is represented as:
>
>
>
>       BASE64URL(UTF8(JWS Protected Header)) || "." ||
>
>       BASE64URL(JWS Payload)  || "." ||
>
>       BASE64URL(JWS Signature)
>
>
>
> OK
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE spec.
>
>
>
> - I think that Section 3.1 would be more clear by saying:
>
>
>
>    In the JWS JSON Serialization, a JWS object is represented as:
>
>
>
>       BASE64URL(UTF8(JWS Protected Header)) || "." ||
>
>       JWS Unprotected Header || "." ||
>
>       BASE64URL(JWS Payload) || "." ||
>
>       BASE64URL(JWS Signature)
>
>
>
> This isn=E2=80=99t accurate.  Assuming you=E2=80=99re talking about 3.2, =
the
> representation isn=E2=80=99t the concatenation above =E2=80=93 it=E2=80=
=99s a JSON object
> containing some or all of the values above.  Nonetheless, I can try to
> revise the text to be more direct here as well.
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE spec.
>
>
>
>    Then, the text needs to say that whitespace may appear anywhere.
>
>
>
> OK
>
>
>
> Note that this proposed resolution will also result in parallel changes t=
o
> the JWE spec.
>
>
>
> - Some additional whitespace would make Section 7.2 easier to read.
>
>
>
> OK
>
>
>
> - The IANA Considerations section requires the establishment of a new
>
>   mail list: jose-reg-review@ietf.org.  The process for setting up the
>
>   list is described at the bottom of this web page:
>
>   http://www.ietf.org/list/nonwg.html.
>
>
>
> This text was taken from RFC 6749 and the list is modelled after the
> oauth-ext-review@ietf.org list described therein.  It=E2=80=99s not clear=
 to me
> whether you want a change to the draft (if so please specify) or whether
> you were just being helpful (which is appreciated).
>
>
>
>                                                                 Thanks
> again,
>
>                                                                 -- Mike
>
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>
>


--=20

Best regards,
Kathleen

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

<div dir=3D"ltr">I just noticed the responses were not sent to Gen-art, IET=
F, or=C2=A0<a href=3D"mailto:draft-ietf-jose-json-web-signature.all@tools.i=
etf.org" target=3D"_blank" style=3D"font-size:13px;font-family:arial,sans-s=
erif">draft-ietf-jose-json-web-signature.all@tools.ietf.org</a>. =C2=A0Forw=
arded thread for transparency on review.<br>
<div><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Tue, Aug 26, 2014 at 6:00 PM, Mike Jones <span dir=3D"ltr">&lt;<=
a href=3D"mailto:Michael.Jones@microsoft.com" target=3D"_blank">Michael.Jon=
es@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">





<div lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div>
<p class=3D"MsoNormal"><span style=3D"color:#7030a0">So that there are no s=
urprises, I=E2=80=99m also annotating the proposed resolutions below to say=
 which of them will also result in parallel changes other drafts.<u></u><u>=
</u></span></p>

<p class=3D"MsoNormal"><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></=
span></p>
<div>
<div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Jim Scha=
ad [mailto:<a href=3D"mailto:ietf@augustcellars.com" target=3D"_blank">ietf=
@augustcellars.com</a>]
<br>
<b>Sent:</b> Monday, August 25, 2014 9:13 PM<br>
<b>To:</b> Mike Jones; &#39;Russ Housley&#39;<br>
<b>Cc:</b> <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org=
</a><br>
<b>Subject:</b> RE: [jose] Gen-ART review of draft-ietf-jose-json-web-signa=
ture-31<u></u><u></u></span></p>
</div>
</div><div><div class=3D"h5">
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal"><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></=
span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></=
span></p>
<div>
<div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> jose [<a=
 href=3D"mailto:jose-bounces@ietf.org" target=3D"_blank">mailto:jose-bounce=
s@ietf.org</a>]
<b>On Behalf Of </b>Mike Jones<br>
<b>Sent:</b> Monday, August 25, 2014 6:22 PM<br>
<b>To:</b> Russ Housley<br>
<b>Cc:</b> <a href=3D"mailto:jose@ietf.org" target=3D"_blank">jose@ietf.org=
</a><br>
<b>Subject:</b> Re: [jose] Gen-ART review of draft-ietf-jose-json-web-signa=
ture-31<u></u><u></u></span></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">Thanks for the useful review, Russ.=C2=A0 =
Proposed resolutions to your comments follow inline.=C2=A0 Please let me kn=
ow if you agree.=C2=A0 Also, working group members, please follow this disc=
ussion, as these comments will
 likely result in changes to the current drafts.<u></u><u></u></span></p>
<p><u></u>=C2=A0<u></u></p>
<p>-----Original Message-----<br>
From: ietf [<a href=3D"mailto:ietf-bounces@ietf.org" target=3D"_blank">mail=
to:ietf-bounces@ietf.org</a>] On Behalf Of Russ Housley<br>
Sent: Sunday, August 24, 2014 12:23 PM<br>
To: <a href=3D"mailto:draft-ietf-jose-json-web-signature.all@tools.ietf.org=
" target=3D"_blank">draft-ietf-jose-json-web-signature.all@tools.ietf.org</=
a><br>
Cc: IETF Gen-ART; IETF<br>
Subject: Gen-ART review of draft-ietf-jose-json-web-signature-31<u></u><u><=
/u></p>
<p><u></u>=C2=A0<u></u></p>
<p>I am the assigned Gen-ART reviewer for this draft. For background on Gen=
-ART, please see the FAQ at &lt;<a href=3D"http://wiki.tools.ietf.org/area/=
gen/trac/wiki/GenArtfaq" target=3D"_blank"><span style=3D"color:windowtext;=
text-decoration:none">http://wiki.tools.ietf.org/area/gen/trac/wiki/GenArtf=
aq</span></a>&gt;.<u></u><u></u></p>

<p><u></u>=C2=A0<u></u></p>
<p>Please resolve these comments along with any other Last Call comments yo=
u may receive.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>Document: draft-ietf-jose-json-web-signature-31<u></u><u></u></p>
<p>Reviewer: Russ Housley<u></u><u></u></p>
<p>Review Date: 2014-08-24<u></u><u></u></p>
<p>IETF LC End Date: 2014-09-03<u></u><u></u></p>
<p>IESG Telechat date: unknown<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>Summary:=C2=A0 Not quite ready.=C2=A0 Some issues to resolve.<u></u><u><=
/u></p>
<p><u></u>=C2=A0<u></u></p>
<p>Major Concerns:=C2=A0 <u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>- At first reading, I thought that Sections 2 and 3 were defining the<u>=
</u><u></u></p>
<p>=C2=A0 same terms.=C2=A0 On the second or third reading, I figured it ou=
t.<u></u><u></u></p>
<p>=C2=A0 I think it would be more clear in Section 3 to state that a JWS i=
s<u></u><u></u></p>
<p>=C2=A0 constructed from a sequence of the things that are already define=
d<u></u><u></u></p>
<p>=C2=A0 in Section 2.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">I understand that there is some repetition=
 between the Terminology section and the JWS Overview section.=C2=A0 I will=
 plan to eliminate this duplication in the manner you suggested =E2=80=93 b=
y simply using, rather restating
 the definitions of, the terms, and saying that they are defined above.=C2=
=A0 (Jim Schaad =E2=80=93 note that this will condense some of the text tha=
t you=E2=80=99d requested be added to Section 3 to explicitly spell out the=
 parts of a JWS, and will result in a parallel change
 to JWE.=C2=A0 Is that OK with you?)<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#00b050">Given that I would expect the text to be i=
n section 2, this is not an issue for me.<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div></div><p><span style=3D"color:#7030a0">Note that this proposed resolu=
tion will also result in parallel changes to the JWE spec.<u></u><u></u></s=
pan></p><div class=3D"">
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
<p>- In Section 5.2, it says that in some cases, all must successfully<u></=
u><u></u></p>
<p>=C2=A0 validate, but in other cases, only a specific signature, MAC, or<=
u></u><u></u></p>
<p>=C2=A0 plaintext value needs to be successfully validated. How does the<=
u></u><u></u></p>
<p>=C2=A0 recipient know which case applies?<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">The recipient knows what application it is=
 part of, and so knows the application decisions described in 5.2, paragrap=
h 2 about whether all or some signatures must validate.<u></u><u></u></span=
></p>

<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#0070c0">I do agree that the text in step 9 (signat=
ure validation) could be read as being in conflict with paragraph 2. =C2=A0=
=C2=A0I=E2=80=99ll plan to modify this to say that the step records whether=
 the signature validated, rather
 than saying that it must validate.=C2=A0 Then I=E2=80=99ll add a step 11 s=
aying to reject the input if no signature validated and a step 12 saying to=
 return a result indicating which signatures were successfully validated, s=
o that the application can determine whether
 to accept the input and which signatures to trust.=C2=A0 Will that work fo=
r you?<u></u><u></u></span></p>
<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#0070c0">It=E2=80=99s more complicated a descriptio=
n, but a more general description of the things that can happen in the mult=
iple signatures case, in which some signatures validate and some don=E2=80=
=99t and you may need to tell
 the application which ones were good and which were bad.=C2=A0 (It=E2=80=
=99s much simpler in the single signature case, in which you can make a sim=
ple accept/reject decision.)<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div><p><span style=3D"color:#7030a0">Note that this proposed resolution w=
ill also result in parallel changes to the JWE spec.<u></u><u></u></span></=
p><div class=3D"">
<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p>- In Section 8, why not say that TLS 1.2 or later MUST be supported?<u><=
/u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">This text is modelled after <a href=3D"htt=
p://tools.ietf.org/html/rfc6749#section-1.6" target=3D"_blank">
http://tools.ietf.org/html/rfc6749#section-1.6</a>, but updated to remove t=
he reference to TLS 1.0.=C2=A0 I don=E2=80=99t believe the working group fe=
lt that it had sufficient data on TLS 1.2 deployment to understand whether =
it could now safely mandate 1.2 or whether this
 would effectively mean that many deployments would be non-conformant.=C2=
=A0 Is there data saying that greater than N% of devices in common use now =
support TLS 1.2 =E2=80=93 where N% is preferably over 90%?=C2=A0 It would b=
e good have such data about commonly used platforms
 such OS X, iOS, Android, Linux, and Windows to help inform this decision.<=
u></u><u></u></span></p>
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- Section 10 says, &quot;The entire list of security considerations is<u=
></u><u></u></p>
<p>=C2=A0 beyond the scope of this document...&quot;=C2=A0 This reads like =
a red flag to<u></u><u></u></p>
<p>=C2=A0 me.=C2=A0 While it is not possible to discuss every possible impl=
ementation<u></u><u></u></p>
<p>=C2=A0 consideration that impacts security, the document should cover th=
e<u></u><u></u></p>
<p>=C2=A0 topics discussed in RFC 3552.=C2=A0 At a minimum, I think the fol=
lowing<u></u><u></u></p>
<p>=C2=A0 need to be discussed:<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0 -- the consequences of compromise of the signer&#39;s=
 private key<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0 -- the consequences of compromise of the MAC key<u></=
u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0 -- the consequences of poor random numbers, which are=
 needed for<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 more than just key entropy with som=
e algorithms like ECDSA<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0 -- awareness that cryptographic algorithms become wea=
ker with time<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">I agree that the phrase =E2=80=9C</span>Th=
e entire list of security considerations is beyond the scope of this docume=
nt...<span style=3D"color:#0070c0">=E2=80=9D adds no or negative value.=C2=
=A0 I=E2=80=99ll remove it.<u></u><u></u></span></p>

<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#0070c0">I=E2=80=99ll also plan to explicitly make =
sure that we address the topics in your list above and go through RFC 3552 =
looking for others that we need to cover.<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div><p><span style=3D"color:#7030a0">Note that this proposed resolution w=
ill also result in parallel changes to the JWE, JWK, JWA, and JWT specs.<u>=
</u><u></u></span></p><div><div class=3D"h5">
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>Minor Concerns:<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>- Section 1, 1st paragraph says: &quot;The JWS cryptographic mechanisms<=
u></u><u></u></p>
<p>=C2=A0 provide integrity protection for an arbitrary sequence of octets.=
&quot;<u></u><u></u></p>
<p>=C2=A0 This is true, but this is not the whole story.=C2=A0 A sentence o=
r two<u></u><u></u></p>
<p>=C2=A0 should be added about when a signature mechanism is appropriate<u=
></u><u></u></p>
<p>=C2=A0 and when a MAC mechanism is appropriate.=C2=A0 Alternatively, a p=
ointer<u></u><u></u></p>
<p>=C2=A0 to Section 10.4 could be included.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">I will plan to add the pointer to Section =
10.4.<u></u><u></u></span></p>
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- In Section 4.1.4, should the value match the subject key identifier<u>=
</u><u></u></p>
<p>=C2=A0 if an X.509 certificate is used?<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">That was not an intended usage of this fie=
ld, although nothing precludes particular applications from specifying its =
use in that manner.=C2=A0 Its intended usage is to match JWK =E2=80=9Ckid=
=E2=80=9D values, as described.=C2=A0 I don=E2=80=99t
 plan to make a change to the document in response to this comment unless y=
ou believe that one is truly necessary.<u></u><u></u></span></p>
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- In Section 4.1.5, why is TLS required to fetch digitally signed<u></u>=
<u></u></p>
<p>=C2=A0 X.509 certificates?<u></u><u></u></p>
<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#0070c0">This question was explicitly discussed by =
the working group at IETF 87.=C2=A0 The discussion is recorded in
<a href=3D"http://www.ietf.org/proceedings/87/minutes/minutes-87-jose" targ=
et=3D"_blank">the minutes</a> as follows:<u></u><u></u></span></p>
<p style=3D"margin-left:.5in"><span style=3D"color:#0070c0">If there is an =
x5u pointing to a certification issued by a major CA, is TLS required for t=
he HTTP query used to retrieve this certificate?=C2=A0 TLS shouldn&#39;t be=
 needed since the certificate
 is a signed object.=C2=A0 Therefore, the &quot;MUST&quot; use TLS for cert=
 retrieval should be changed to &quot;SHOULD&quot;.=C2=A0 This is an applic=
ation decision.=C2=A0 Mike Jones doesn&#39;t want removal of TLS in the cas=
e where there&#39;s no external means to verify the retrieved key.=C2=A0 Ma=
tt Miller:
 agrees with the jku case, but argues that for x5u, there is a class of app=
lications where it isn&#39;t known if the retrieved object is self-protecti=
ng (like a certificate) until after it is retrieved.=C2=A0 Even if the obje=
ct appears to be self-protecting, if the
 retriever doesn&#39;t have a trusted root for that object, it might not be=
 able to verify the protection anyhow.=C2=A0 So it use of TLS might still b=
e preferable instead of having to potentially retrieve an object twice, onc=
e over HTTP and then over HTTPS.=C2=A0 Joe Hildebrand
 wanted to know what the upside of this proposal is.=C2=A0 Richard says it =
saves on TLS handshakes; Hildebrand envisions a world where TLS is ubiquito=
us.=C2=A0 Paul Hoffman said that a similar issue in DANE ended up being dro=
pped after a couple of months of discussion.=C2=A0
 Richard agreed to drop the TLS MUST to SHOULD proposal.<u></u><u></u></spa=
n></p>
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- Section 10.2 talks about chosen plaintext attacks.=C2=A0 However, ther=
e<u></u><u></u></p>
<p>=C2=A0 are much worse things than chosen plaintext attacks that will res=
ult<u></u><u></u></p>
<p>=C2=A0 if a third party can get a signer to sign a content of its choosi=
ng.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">What=E2=80=99s there now is about attacker=
s getting to choose part of the plaintext.=C2=A0 I think you=E2=80=99re tal=
king about attacks in which the attacker gets to choose the whole plaintext=
, which is clearly far worse.=C2=A0 At
 that point, the signature of the signer obviously becomes pretty worthless=
.=C2=A0 Is that your point here?=C2=A0 If so, I could take a stab at writin=
g something about this, or you could suggest some text if you=E2=80=99d lik=
e.<u></u><u></u></span></p>

<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>Other Comments:<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>- I suggest a rewording for a part of Section 2:<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0 OLD:<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0=C2=A0 JOSE Header<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 JSON object containing the parameters des=
cribing the cryptographic<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 operations and parameters employed.=C2=A0=
 The members of the JOSE<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Header are Header Parameters.<u></u><u></=
u></p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0 NEW:<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0=C2=A0 JOSE Header<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 JSON object containing the parameters des=
cribing the cryptographic<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 operations and parameters employed.=C2=A0=
 The JOSE Header is composed<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 of a set of Header Parameters.<u></u><u><=
/u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">OK<u></u><u></u></span></p>
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- I think that Section 3.1 would be more clear by saying:<u></u><u></u><=
/p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0=C2=A0 In the JWS Compact Serialization, a JWS object is represent=
ed as:<u></u><u></u></p>
<p>=C2=A0=C2=A0 <u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0BASE64URL(UTF8(JWS Protected Header)=
) || &quot;.&quot; ||<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 BASE64URL(JWS Payload)=C2=A0 || &quot;.&q=
uot; ||<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 BASE64URL(JWS Signature)<u></u><u></u></p=
>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">OK<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div></div><p><span style=3D"color:#7030a0">Note that this proposed resolu=
tion will also result in parallel changes to the JWE spec.<u></u><u></u></s=
pan></p><div class=3D"">
<p><u></u>=C2=A0<u></u></p>
<p>- I think that Section 3.1 would be more clear by saying:<u></u><u></u><=
/p>
<p><u></u>=C2=A0<u></u></p>
<p>=C2=A0=C2=A0 In the JWS JSON Serialization, a JWS object is represented =
as:<u></u><u></u></p>
<p>=C2=A0=C2=A0 <u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0BASE64URL(UTF8(JWS Protected Header)=
) || &quot;.&quot; ||<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 JWS Unprotected Header || &quot;.&quot; |=
|<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 BASE64URL(JWS Payload) || &quot;.&quot; |=
|<u></u><u></u></p>
<p>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 BASE64URL(JWS Signature)<u></u><u></u></p=
>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">This isn=E2=80=99t accurate.=C2=A0 Assumin=
g you=E2=80=99re talking about 3.2, the representation isn=E2=80=99t the co=
ncatenation above =E2=80=93 it=E2=80=99s a JSON object containing some or a=
ll of the values above.=C2=A0 Nonetheless, I can try to revise
 the text to be more direct here as well.<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div><p><span style=3D"color:#7030a0">Note that this proposed resolution w=
ill also result in parallel changes to the JWE spec.<u></u><u></u></span></=
p><div class=3D"">
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>=C2=A0=C2=A0 Then, the text needs to say that whitespace may appear anyw=
here.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">OK<u></u><u></u></span></p>
<p><span style=3D"color:#1f497d"><u></u>=C2=A0<u></u></span></p>
</div><p><span style=3D"color:#7030a0">Note that this proposed resolution w=
ill also result in parallel changes to the JWE spec.<u></u><u></u></span></=
p><div class=3D"">
<p><span style=3D"color:black"><u></u>=C2=A0<u></u></span></p>
<p>- Some additional whitespace would make Section 7.2 easier to read.<u></=
u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">OK<u></u><u></u></span></p>
<p><u></u>=C2=A0<u></u></p>
<p>- The IANA Considerations section requires the establishment of a new<u>=
</u><u></u></p>
<p>=C2=A0 mail list: <a href=3D"mailto:jose-reg-review@ietf.org" target=3D"=
_blank"><span style=3D"color:windowtext;text-decoration:none">jose-reg-revi=
ew@ietf.org</span></a>.=C2=A0 The process for setting up the<u></u><u></u><=
/p>
<p>=C2=A0 list is described at the bottom of this web page:<u></u><u></u></=
p>
<p>=C2=A0 <a href=3D"http://www.ietf.org/list/nonwg.html" target=3D"_blank"=
><span style=3D"color:windowtext;text-decoration:none">http://www.ietf.org/=
list/nonwg.html</span></a>.<u></u><u></u></p>
<p><u></u>=C2=A0<u></u></p>
<p><span style=3D"color:#0070c0">This text was taken from RFC 6749 and the =
list is modelled after the
<a href=3D"mailto:oauth-ext-review@ietf.org" target=3D"_blank">oauth-ext-re=
view@ietf.org</a> list described therein.=C2=A0 It=E2=80=99s not clear to m=
e whether you want a change to the draft (if so please specify) or whether =
you were just being helpful (which is appreciated).<u></u><u></u></span></p=
>

<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
<p><span style=3D"color:#0070c0">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Thanks again,<u></u><u></u></span></p>
<p><span style=3D"color:#0070c0">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -- Mike<u></u><u></u></span></p>
<p><span style=3D"color:#0070c0"><u></u>=C2=A0<u></u></span></p>
</div></div>
</div>

<br>_______________________________________________<br>
jose mailing list<br>
<a href=3D"mailto:jose@ietf.org">jose@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/jose" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/jose</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div dir=
=3D"ltr"><br><div>Best regards,</div><div>Kathleen</div></div>
</div>

--001a11c221ae183d730501a0f6c4--

