Re: [jose] Canonical JSON form

Anders Rundgren <anders.rundgren.net@gmail.com> Thu, 11 October 2018 19:58 UTC

Return-Path: <anders.rundgren.net@gmail.com>
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 BBD4F130DFC for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 12:58:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DxEg79GWB6A5 for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 12:58:51 -0700 (PDT)
Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 9DFB1124D68 for <jose@ietf.org>; Thu, 11 Oct 2018 12:58:50 -0700 (PDT)
Received: by mail-wr1-x431.google.com with SMTP id y11-v6so11005852wrd.4 for <jose@ietf.org>; Thu, 11 Oct 2018 12:58:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MASfEC0RzRT8Uzqsia3auu9UWot+6hrI442e64aoeGQ=; b=f4Jix2v8W3jlmhJVVERL2DWzP8gCVaggHUHcpqmjBdBq73wQoN+MXAQg/v6S7W5Iba 7FA8w7EHuQ+qWdLCwZ/jKAM8Lljn/cwmlRXDzExAr0r9cYdoCBstuS/MBwaG7EkRF6Hb 0jJogfuraAfBXEMFKEqaXV0EVrRsp2wr4EPRW8KIty/rpcrgQppW4M4Znq86NlYCetFJ /aGBBRoulmtGksmrvrDwykvWBpp6zw66MbQHQc34Y5Erx8lX/pd0u33sS8rXuz09YOtn Ia9+cL5J4kf05LaXp+yHMbzY5UeS0pEAwMlimRj98k0muQ2PbSbPqoJT0P3GGeJulma6 HPVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MASfEC0RzRT8Uzqsia3auu9UWot+6hrI442e64aoeGQ=; b=eXZlxfzo8NQ2lhAOtVlxj7/SzwB6QSHwbOoQzMSZu8B9gpPiuv9TA6MYhUxwaC1pJN RXIyQSqVucZuH4ok1qJKOrAggmXE9waCczBgYiZfe/5tXX60Dux4Uk/1MnTPIjPJ3sJ4 +bw9gHKcrrZDnsnk0TeLt4INrXU33ub2AEOp9b1kT6Gj2xfI8hh856T0ghX2NijkUYbO u/WJe6RCG7ILT1aw9GlF0zCtvxFEME+5UaattxTnBZZyH5y2FLbYaiUNp9kO4XxemFXJ bkW5DvUui45su0401wucw4jrfrQpMIkfgsOVCZ6jqd459WqDLPbvQ7NnGnAq7grlyQrX fLDg==
X-Gm-Message-State: ABuFfogC7n2fg47/SYd1rCuhBfTYcrVgLEgxIvx1YfwA7pv2zysMzexy lR5FT/iVlLmnr8r5fczNFZ1LxF2z
X-Google-Smtp-Source: ACcGV63nbvDxpW4VIk2NwXQYgvXcwWk78p1EtUgQpPtRsF0b2EHTCyyvtkverCnwlHMGqCq/BjjedQ==
X-Received: by 2002:adf:9f0f:: with SMTP id l15-v6mr2842539wrf.206.1539287928517; Thu, 11 Oct 2018 12:58:48 -0700 (PDT)
Received: from [192.168.43.218] (76.19.136.77.rev.sfr.net. [77.136.19.76]) by smtp.googlemail.com with ESMTPSA id u76-v6sm38052272wmd.10.2018.10.11.12.58.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 12:58:47 -0700 (PDT)
To: Carsten Bormann <cabo@tzi.org>, Phil Hunt <phil.hunt@oracle.com>
Cc: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>, "Manger, James" <James.H.Manger@team.telstra.com>, Bret Jordan <jordan.ietf@gmail.com>, jose@ietf.org
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <CAOASepNX4aYVmPWXyODn0E2Om_rimACPECqJBvZSOXVVd_p8LA@mail.gmail.com> <D21F3A95-0085-4DB7-A882-3496CC091B34@gmail.com> <CAOASepM=hB_k7Syqw4+b7L2vd6E_J0DSAAW0mHYdLExBZ6VBuw@mail.gmail.com> <00ad01d460f4$69ae8a00$3d0b9e00$@augustcellars.com> <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com> <MEAPR01MB35428606C09BF315DE04CC79E5E10@MEAPR01MB3542.ausprd01.prod.outlook.com> <CAHbuEH6DCD7Zc+PK3TnCBkKv1esnROwyCcDb8ZR+TKwgQQ+yXQ@mail.gmail.com> <0E6BD488-74D5-4640-BC31-5E45B0531AFC@gmail.com> <CAHbuEH5oH-Km6uAjrSr0pEHswFBLuDpfVweQ+gpj472yk+8iTQ@mail.gmail.com> <073CB50F-8D91-4EF6-90BE-FC897D557AA6@oracle.com> <A37D69B1-6B77-4E11-8BB9-A0209C77752C@tzi.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <45bf6c0f-e510-4afc-4277-bdd486a8ce8c@gmail.com>
Date: Thu, 11 Oct 2018 21:58:36 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <A37D69B1-6B77-4E11-8BB9-A0209C77752C@tzi.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/EJrjLcGVf9GoHVv3WhhevwGO0b0>
Subject: Re: [jose] Canonical JSON form
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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, 11 Oct 2018 19:58:53 -0000

Before dismissing Canonical JSON, you may take it for spin at:
https://mobilepki.org/jws-jcs/home

This particular signature variant is 100% JWS compatible.

Although enveloped signatures may be "out of fashion", I find them quite practical since they don't interfere with the message structure.

An example: In the IETF TEEP work (building on JOSE), the designers were forced adding an unsigned outer JSON layer in order to get a reasonable system.

The idea is not replacing JOSE, only creating a viable alternative for folks who don't want to shroud their precious JSON data in Base64Url!

Thanks,
Anders