[jose] #12: x5c incorrect in JWE

"jose issue tracker" <trac+jose@trac.tools.ietf.org> Tue, 12 March 2013 21:16 UTC

Return-Path: <trac+jose@trac.tools.ietf.org>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 73E6121F8AD4 for <jose@ietfa.amsl.com>; Tue, 12 Mar 2013 14:16:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level:
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MiFBLdfBTb9r for <jose@ietfa.amsl.com>; Tue, 12 Mar 2013 14:16:01 -0700 (PDT)
Received: from grenache.tools.ietf.org (grenache.tools.ietf.org [IPv6:2a01:3f0:1:2::30]) by ietfa.amsl.com (Postfix) with ESMTP id A3DEE21F8ABA for <jose@ietf.org>; Tue, 12 Mar 2013 14:15:59 -0700 (PDT)
Received: from localhost ([127.0.0.1]:57944 helo=grenache.tools.ietf.org ident=www-data) by grenache.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac+jose@trac.tools.ietf.org>) id 1UFWY2-0006P2-MA; Tue, 12 Mar 2013 22:15:50 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: jose issue tracker <trac+jose@trac.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-encryption@tools.ietf.org, bcampbell@pingidentity.com
X-Trac-Project: jose
Date: Tue, 12 Mar 2013 21:15:50 -0000
X-URL: http://tools.ietf.org/jose/
X-Trac-Ticket-URL: http://tools.ietf.org/wg/jose/trac/ticket/12
Message-ID: <065.7762ca21750ef2a07382e66a81acadef@trac.tools.ietf.org>
X-Trac-Ticket-ID: 12
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Rcpt-To: draft-ietf-jose-json-web-encryption@tools.ietf.org, bcampbell@pingidentity.com, jose@ietf.org
X-SA-Exim-Mail-From: trac+jose@trac.tools.ietf.org
X-SA-Exim-Scanned: No (on grenache.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: ekr@rtfm.com, jhildebr@cisco.com, mbj@microsoft.com
Resent-Message-Id: <20130312211600.A3DEE21F8ABA@ietfa.amsl.com>
Resent-Date: Tue, 12 Mar 2013 14:15:59 -0700
Resent-From: trac+jose@trac.tools.ietf.org
Cc: jose@ietf.org
Subject: [jose] #12: x5c incorrect in JWE
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
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, 12 Mar 2013 21:16:01 -0000

#12: x5c incorrect in JWE

 No use case (that I'm aware of anyway) has been suggested for "x5c" in JWE
 that cannot be addressed in a more straightforward and efficient way using
 other available header parameters like "x5u", "kid", etc.

 I suggest "x5c" be removed from JWE.

 If it must stay, there are a couple of issues with its definition in
 http://tools.ietf.org/html/draft-ietf-jose-json-web-
 encryption-08#section-4.1.9 that need to be fixed.

 1) It states that "the certificate containing the public key of the entity
 that encrypted the JWE MUST be the first certificate" but for all the JWE
 algorithms currently defined that certificate would have to have the
 public key of the entity that corresponds to its private key which will be
 used to decrypt.

 2) It also states that "the recipient MUST verify the certificate chain
 according to [RFC5280] and reject..." which is really awkward because that
 certificate chain certifies the recipient (why would you validate your own
 cert chain?) not the sender.

 There was a message and subsequent shortish discussion thread on the list
 a while back about this too: http://www.ietf.org/mail-
 archive/web/jose/current/msg01438.html

-- 
-------------------------------------+-------------------------------------
 Reporter:                           |      Owner:  draft-ietf-jose-json-
  bcampbell@pingidentity.com         |  web-encryption@tools.ietf.org
     Type:  defect                   |     Status:  new
 Priority:  minor                    |  Milestone:
Component:  json-web-encryption      |    Version:
 Severity:  Submitted WG Document    |   Keywords:
-------------------------------------+-------------------------------------

Ticket URL: <http://tools.ietf.org/wg/jose/trac/ticket/12>
jose <http://tools.ietf.org/jose/>