
From nobody Sun Jan  4 00:12:14 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 393571A7001 for <acme@ietfa.amsl.com>; Sun,  4 Jan 2015 00:12:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TVZZXl4sSRCp for <acme@ietfa.amsl.com>; Sun,  4 Jan 2015 00:12:11 -0800 (PST)
Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 89FC21A7007 for <acme@ietf.org>; Sun,  4 Jan 2015 00:12:10 -0800 (PST)
Received: by mail-we0-f182.google.com with SMTP id w62so6293297wes.41 for <acme@ietf.org>; Sun, 04 Jan 2015 00:12:09 -0800 (PST)
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 :content-type; bh=j4l97fDAAbDBGyart+acSlYQwxPb6jUISAdm99rnJdM=; b=KPpAJyr6mr4E9ys1I3anjQLAvsfZJqoebhFJC1J+Ke2tkguN70Qo/xIvWG8YqXYoZk NvyCKcFPXx97Z1SRr4lBTF/LN4MsYPrj2vnLIp4QM5GEXDb5bPCtMMbN3vNmq+rzQmjD oW3GoLgjaa8gRL4iL6InoSrzGfZT6vPQx8AIuZkWqQKGEYMW0xbb/EhOsn9a410RIgG8 hjG0ceZ9X1lXjxCzvkD7MGUD9R/qxZWATfYxzzK7+D3POkV9ctpvMoOjWXxcJdBwibdM JiRsDZyORCJRfXPBejAJyYH4DO1XdN7m5biIa98E6FoVMTTV3ZcMw2JbJZu1ndxAJPQf nKFg==
X-Received: by 10.180.79.200 with SMTP id l8mr13546237wix.65.1420359129322; Sun, 04 Jan 2015 00:12:09 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id kn5sm70647952wjb.48.2015.01.04.00.12.08 for <acme@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 00:12:08 -0800 (PST)
Message-ID: <54A8F5D7.3070805@gmail.com>
Date: Sun, 04 Jan 2015 09:12:07 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: "acme@ietf.org" <acme@ietf.org>
Content-Type: multipart/alternative; boundary="------------010507030604070008000000"
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/TfuLvOEIgXZTgSPSgREOjcxTGv0
Subject: [Acme] Attested CSRs
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Jan 2015 08:12:13 -0000

This is a multi-part message in MIME format.
--------------010507030604070008000000
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi ACMErs,
I just wanted to mention that key-attestation schemes represent an alternative to PKCS #10 (PoP).
As an example the FIDO/Google U2F-token builds on this concept.  In summary the advantages could be:

- HSM-secured attestation keys could vouch for slightly less secured web-server keys
- Alternative to backup secrets
- CSR independent of requested key usage (like ECDSA versus ECDH or ECDSA versus RSA_OAEP)
- True attestation (=keys can be proved to reside in secure storage) could be a requirement for certain certification levels although probably not for web-servers

The following mockup (here dressed in JCS notation), should give you an idea on how such a CSR could be architected:

{
   "@context": "https://letsencrypt.org/acme/v1",
   "@qualifier": "AttestedCSR",
   "domain": "example.com",
   "nonce": "yPdYDThBqWRuKoZ24sXLOcqyKFx7abbSp8DF11rv0mo",
   "dateTime": "2015-01-02T12:25:19Z",
   "keyAttestationAlgorithm": "ACME-KA1",
   "attestedKeys":
     [{
        "id": "Key.1",
        "keyAttestation": "niS9_Urs0sscTE2bUkjkE7WgIALnjRdaxCHhQ...s9RdobcnDmWfE_ZUb9rHUva2I_JnZY3q1JnAkXGW_6rhA5kxn32zBoR9SvL",
        "publicKey":
          {
            "type": "RSA",
            "n": "ld-uUL2csxx3hbGqN_Ix48wbIgcas2i42ujmW3D2ZtT8tmr...B7VnYF56h45CD3FPLAYR9ZFNlAWdgTQi5OUdSJvAwK1w",
            "e": "AQAB"
          }
      }],
   "attestationKey":
     {
       "certificatePath": [MIIETTCCAjWgAwIBAgIGAUoqo740MA0GCSqGSI...uREScyhb_49Dqaq-OypeSJSChtKT4UuQTcmz2cs9Zi90RyQ7UzWNrQjoLERGLkuetIw]
     },
   "signatureKeyAttestation": "NrZnvexftkY_NtGcrQf2RDKizybbgWKUm8...gDUXsWfeVoF5aoFbx8OXzlFhKd_BB91OGZADSkuBacptgWETjXHNC5NUQ78W",
   "signature":
     {
       "algorithm": "ES512",
       "publicKey":
         {
           "type": "EC",
           "curve": "P-521",
           "x": "AP_f3bqRvBAvtC2dATIxEsXZfc-THnnMTkjOcyILsW3AFGGEp1d9NOESbIuCUw3fwFvR0WltuROBMg9ouycegZQn",
           "y": "ABrvjyrr0v7VcehkYbiyPM-V7Wwy7OrLWaOLn1q2TPmpqdH-PybgkAUSbwHzMNXYQNe4og5PKgRsBJWoKrxcZZLt"
         },
       "value": "MIGHAkIB4jih8QzkJYZ4bKa_cuwtiVTIctq66QFhA5F6TNy...-8oDgaqYUjIpFYW8yP8yuZH9ODNI6n28w5ktUBsmRIk-ixiOjSV02R6A6W"
     }
}

The key attestation properties are created inside of the attesting unit since the only thing an attester (of this kind NB) can sign is is something it has created itself which in this case is limited to key-pairs.  That is, the CSR body is not signed by the attestation key, but by an ephemeral signature key which also is attested.  The attestation itself is a signature over the public key.   All keys can thus be securely derived to the supplied attestationKey.

Anders

--------------010507030604070008000000
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi ACMErs,<br>
    I just wanted to mention that key-attestation schemes represent an
    alternative to PKCS #10 (PoP).<br>
    As an example the FIDO/Google U2F-token builds on this concept.  In
    summary the advantages could be:<br>
    <br>
    - HSM-secured attestation keys could vouch for slightly less secured
    web-server keys<br>
    - Alternative to backup secrets<br>
    - CSR independent of requested key usage (like ECDSA versus ECDH or
    ECDSA versus RSA_OAEP)<br>
    - True attestation (=keys can be proved to reside in secure storage)
    could be a requirement for certain certification levels although
    probably not for web-servers<br>
    <br>
    The following mockup (here dressed in JCS notation), should give you
    an idea on how such a CSR could be architected:<br>
    <br>
    <small><tt>{</tt><tt><br>
      </tt><tt>  "@context": <a class="moz-txt-link-rfc2396E" href="https://letsencrypt.org/acme/v1">"https://letsencrypt.org/acme/v1"</a>,</tt><tt><br>
      </tt><tt>  "@qualifier": "AttestedCSR",</tt><tt><br>
      </tt><tt>  "domain": "example.com",</tt><tt><br>
      </tt><tt>  "nonce": "yPdYDThBqWRuKoZ24sXLOcqyKFx7abbSp8DF11rv0mo",</tt><tt><br>
      </tt><tt>  "dateTime": "2015-01-02T12:25:19Z",<br>
          "keyAttestationAlgorithm": "ACME-KA1",<br>
      </tt><tt></tt><tt>  "attestedKeys": </tt><tt><br>
      </tt><tt>    [{<br>
               "id": "Key.1",<br>
               "keyAttestation":
"niS9_Urs0sscTE2bUkjkE7WgIALnjRdaxCHhQ...s9RdobcnDmWfE_ZUb9rHUva2I_JnZY3q1JnAkXGW_6rhA5kxn32zBoR9SvL",<br>
      </tt><tt></tt><tt>       "publicKey": </tt><tt><br>
      </tt><tt>         {</tt><tt><br>
      </tt><tt>           "type": "RSA",</tt><tt><br>
      </tt><tt>           "n":
"ld-uUL2csxx3hbGqN_Ix48wbIgcas2i42ujmW3D2ZtT8tmr...B7VnYF56h45CD3FPLAYR9ZFNlAWdgTQi5OUdSJvAwK1w",</tt><tt><br>
      </tt><tt>           "e": "AQAB"</tt><tt><br>
      </tt><tt>         }</tt><tt><br>
      </tt><tt>     }],<br>
          "attestationKey":<br>
      </tt><tt></tt><tt>    {<br>
              "certificatePath":
[MIIETTCCAjWgAwIBAgIGAUoqo740MA0GCSqGSI...uREScyhb_49Dqaq-OypeSJSChtKT4UuQTcmz2cs9Zi90RyQ7UzWNrQjoLERGLkuetIw]<br>
            },<br>
          "signatureKeyAttestation":
"NrZnvexftkY_NtGcrQf2RDKizybbgWKUm8...gDUXsWfeVoF5aoFbx8OXzlFhKd_BB91OGZADSkuBacptgWETjXHNC5NUQ78W",<br>
          "signature": </tt><tt><br>
      </tt><tt>    {<br>
              "algorithm": "ES512",<br>
              "publicKey": <br>
                {<br>
                  "type": "EC",<br>
                  "curve": "P-521",<br>
                  "x":
"AP_f3bqRvBAvtC2dATIxEsXZfc-THnnMTkjOcyILsW3AFGGEp1d9NOESbIuCUw3fwFvR0WltuROBMg9ouycegZQn",<br>
                  "y":
"ABrvjyrr0v7VcehkYbiyPM-V7Wwy7OrLWaOLn1q2TPmpqdH-PybgkAUSbwHzMNXYQNe4og5PKgRsBJWoKrxcZZLt"<br>
                },<br>
              "value":
"MIGHAkIB4jih8QzkJYZ4bKa_cuwtiVTIctq66QFhA5F6TNy...-8oDgaqYUjIpFYW8yP8yuZH9ODNI6n28w5ktUBsmRIk-ixiOjSV02R6A6W"<br>
            }</tt><tt><br>
      </tt><tt>}<br>
        <br>
      </tt><big>The key attestation properties are created inside of the
        attesting unit since the only thing an attester (of this kind
        NB) can sign is is something it has created itself which in this
        case is limited to key-pairs.  That is, the CSR body is not
        signed by the attestation key, but by an ephemeral signature key
        which also is attested.  The attestation itself is a signature
        over the public key.   All keys can thus be securely derived to
        the supplied attestationKey.<br>
        <br>
        Anders</big><tt><br>
      </tt></small>
  </body>
</html>

--------------010507030604070008000000--


From nobody Wed Jan  7 07:42:52 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 876351A90EC; Wed,  7 Jan 2015 07:42:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PwRP8elXIaw9; Wed,  7 Jan 2015 07:42:42 -0800 (PST)
Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B00371A8858; Wed,  7 Jan 2015 07:42:41 -0800 (PST)
Received: by mail-lb0-f171.google.com with SMTP id w7so1293711lbi.2; Wed, 07 Jan 2015 07:42:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:date:message-id:subject:from:to:content-type;  bh=+9qVMb5CBGk7/OhUuWcPIS93ykcZ1ZQLCDjPzncn+/U=; b=s15AXaa4DOyUac4wc0Ki4jteP86TeggfBayYZ8ZxIAXKoNfp+cOAn+jJ8N3q0BcMlH 6MjcQNA/BdV5e+HAXWNYbu9X09iTR2GfozFOGazprW//gyPCBrSuKF03HR8j0VJ6M843 lJyXbb+ClegWp+NkIyRJ6uRWfdPNldA8WQgM3yR0wXQN+A3yUwyp8mOGbc2ybsM956IY /dsyyy6PCwp0D/CjV50WshQP1/gJW68Z1yhy/tySdXho4076Y44XDpweZ1T2dfmyn832 RkFMOGylR6/XNlPmXGsUeadp9tZGhi4XpgT1ttO57CN8cpaL11EGR5LmFMmR2wzH0Hfd +GWg==
MIME-Version: 1.0
X-Received: by 10.112.209.40 with SMTP id mj8mr5538602lbc.49.1420645358125; Wed, 07 Jan 2015 07:42:38 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.19.42 with HTTP; Wed, 7 Jan 2015 07:42:38 -0800 (PST)
Date: Wed, 7 Jan 2015 10:42:38 -0500
X-Google-Sender-Auth: dKvR4vzKju3XJYefbjRN3tPxwH8
Message-ID: <CAMm+Lwh1TWaaNMJ4wXQFih+1EbZ0f8kLuYxyB_ak4fGHCjS9Lg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "dns-privacy@ietf.org" <dns-privacy@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Content-Type: multipart/alternative; boundary=001a11c26218ec4a8e050c11c545
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/FYgmkvUiqWb4RoJfFtG11D9oLJc
Subject: [Acme] Entity authenticator URI
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 15:42:45 -0000

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

Right now I am working on three separate projects: end-to-end secure email
(EndyMail *), private DNS (DPRIV) and PKI cert lifecycle management (DPRIV).

A building block that would be tremendously useful in all three areas is a
uri that combines an account or service identifier and authenticator for
that entity. This would be a generalization of the 'strong email address'
concept I introduced last year:

draft-hallambaker-prismproof-key-01


First, what the URI would be, next how it solves real world problems in the
three application areas.

The simplest URI would simply be either a base64URI or Base32 encoding of a
kerberos ticket, a public key or a digest of a public key. In many
applications we do not need to identify the service provider or account
holder but we do need to determine that they are the same party we
contacted earlier.

So using the digest key identifier scheme, our URI might be:

TBS::ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA

[Note that the algorithm is encoded into the key identifier digest already
so an external algorithm ID isn't needed. But we can add to taste.]

This scheme is obviously and pathetically unworkable for RSA2408 keys but
256 bit ECC keys would be practical.


A digest alone isn't very useful unless there is a way to resolve it to the
key. But this isn't much of a problem as in many cases we can pass the key
in band in a protocol.

We could have an argument as to whether we need to have tickets, keys and
key digests, but they all have uses. Keys and digests are really useful for
establishing long term secrets. Tickets are much better for short term
interactions with a single host.


We can add in an account identifier:

TBS:alice@example.com:ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA


We can also add in a service identifier using the SRV prefix convention:

TBS:_acme._tcp.example.com:
ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA


The important thing here is that we now have some identifiers that can be
used to establish the foundation of trust relationships that don't depend
on external parties to resolve. And that is really useful when working at
the level of DPRIV or ACME.

Lets say you decide to use a confidential DNS service provided by Comodo
for public (i.e. anonymous) use.


For DPRIV, the initial contact with the DNS service would be via legacy DNS
and TLS using the Web PKI (hopefully requiring an EV cert). That contact
can then establish a number of host/protocol combinations, each of which is
represented by a service URI.

Since this is a DNS client protocol, the service identifier might have an
IP address rather than a DNS name but any other service would be a DNS name.

The choice of using tickets or public keys as the authentication basis can
be left to deployment choice. If I am binding a $965 iPhone to a DNS
service for its service life then I probably want a public key. If I am
binding a lightbulb to my home network hub then I probably want a ticket as
the thing probably can't usefully rekey (i.e. it could do the math but
would leak its key in doing so).

Connecting to a private service there would be two entity URIs, one for the
service, the other for the user. So when I bind my machine to the corporate
Comodo network I can get access to the internal DNS service that will
provide resolution for internal services.


The way I would use this in Acme is that I would have the (Web) host
generate a public/private keypair that would be used to identify that
machine for cert issue and for no other purpose. I now have an identifier
that I can put in a CA database or the config file of an LRA.

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

<div dir=3D"ltr">Right now I am working on three separate projects: end-to-=
end secure email (EndyMail *), private DNS (DPRIV) and PKI cert lifecycle m=
anagement (DPRIV).<div><br></div><div>A building block that would be tremen=
dously useful in all three areas is a uri that combines an account or servi=
ce identifier and authenticator for that entity. This would be a generaliza=
tion of the &#39;strong email address&#39; concept I introduced last year:<=
/div><div><br></div><div>draft-hallambaker-prismproof-key-01<br></div><div>=
<br></div><div><br></div><div>First, what the URI would be, next how it sol=
ves real world problems in the three application areas.</div><div><br></div=
><div>The simplest URI would simply be either a base64URI or Base32 encodin=
g of a kerberos ticket, a public key or a digest of a public key. In many a=
pplications we do not need to identify the service provider or account hold=
er but we do need to determine that they are the same party we contacted ea=
rlier.</div><div><br></div><div>So using the digest key identifier scheme, =
our URI might be:</div><div><br></div><div>TBS::<span style=3D"color:rgb(0,=
0,0);font-size:1em">ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA<=
/span></div><div><br></div><div>[Note that the algorithm is encoded into th=
e key identifier digest already so an external algorithm ID isn&#39;t neede=
d. But we can add to taste.]</div><div><br></div><div>This scheme is obviou=
sly and pathetically unworkable for RSA2408 keys but 256 bit ECC keys would=
 be practical.</div><div><br></div><div><br></div><div>A digest alone isn&#=
39;t very useful unless there is a way to resolve it to the key. But this i=
sn&#39;t much of a problem as in many cases we can pass the key in band in =
a protocol.</div><div><br></div><div>We could have an argument as to whethe=
r we need to have tickets, keys and key digests, but they all have uses. Ke=
ys and digests are really useful for establishing long term secrets. Ticket=
s are much better for short term interactions with a single host.</div><div=
><br></div><div><br></div><div>We can add in an account identifier:</div><d=
iv><br></div><div><div><a href=3D"mailto:TBS%3Aalice@example.com">TBS:alice=
@example.com</a>:<span style=3D"color:rgb(0,0,0);font-size:1em">ABAHEA-BI4A=
AJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA</span></div></div><div><span st=
yle=3D"color:rgb(0,0,0);font-size:1em"><br></span></div><div><span style=3D=
"color:rgb(0,0,0);font-size:1em"><br></span></div><div><span style=3D"color=
:rgb(0,0,0);font-size:1em">We can also add in a service identifier using th=
e SRV prefix convention:</span></div><div><span style=3D"color:rgb(0,0,0);f=
ont-size:1em"><br></span></div><div>TBS:_acme._<a href=3D"http://tcp.exampl=
e.com">tcp.example.com</a>:<span style=3D"font-size:1em;color:rgb(0,0,0)">A=
BAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA</span><span style=3D"=
color:rgb(0,0,0);font-size:1em"><br></span></div><div><span style=3D"font-s=
ize:1em;color:rgb(0,0,0)"><br></span></div><div><span style=3D"font-size:1e=
m;color:rgb(0,0,0)"><br></span></div><div><span style=3D"font-size:1em;colo=
r:rgb(0,0,0)">The important thing here is that we now have some identifiers=
 that can be used to establish the foundation of trust relationships that d=
on&#39;t depend on external parties to resolve. And that is really useful w=
hen working at the level of DPRIV or ACME.</span></div><div><span style=3D"=
font-size:1em;color:rgb(0,0,0)"><br></span></div><div><span style=3D"font-s=
ize:1em;color:rgb(0,0,0)">Lets say you decide to use a confidential DNS ser=
vice provided by Comodo for public (i.e. anonymous) use.</span></div><div><=
span style=3D"font-size:1em;color:rgb(0,0,0)"><br></span></div><div><span s=
tyle=3D"font-size:1em;color:rgb(0,0,0)"><br></span></div><div><span style=
=3D"font-size:1em;color:rgb(0,0,0)">For DPRIV, the initial contact with the=
 DNS service would be via legacy DNS and TLS using the Web PKI (hopefully r=
equiring an EV cert). That contact can then establish a number of host/prot=
ocol combinations, each of which is represented by a service URI.</span></d=
iv><div><br></div><div>Since this is a DNS client protocol, the service ide=
ntifier might have an IP address rather than a DNS name but any other servi=
ce would be a DNS name.</div><div><br></div><div>The choice of using ticket=
s or public keys as the authentication basis can be left to deployment choi=
ce. If I am binding a $965 iPhone to a DNS service for its service life the=
n I probably want a public key. If I am binding a lightbulb to my home netw=
ork hub then I probably want a ticket as the thing probably can&#39;t usefu=
lly rekey (i.e. it could do the math but would leak its key in doing so).</=
div><div><br></div><div>Connecting to a private service there would be two =
entity URIs, one for the service, the other for the user. So when I bind my=
 machine to the corporate Comodo network I can get access to the internal D=
NS service that will provide resolution for internal services.</div><div><b=
r></div><div><br></div><div>The way I would use this in Acme is that I woul=
d have the (Web) host generate a public/private keypair that would be used =
to identify that machine for cert issue and for no other purpose. I now hav=
e an identifier that I can put in a CA database or the config file of an LR=
A.</div></div>

--001a11c26218ec4a8e050c11c545--


From nobody Wed Jan  7 09:12:34 2015
Return-Path: <bascule@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 30CC11A004B; Wed,  7 Jan 2015 09:12:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NUFDO6pqdfZq; Wed,  7 Jan 2015 09:12:28 -0800 (PST)
Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 28F081A005D; Wed,  7 Jan 2015 09:12:28 -0800 (PST)
Received: by mail-ob0-f177.google.com with SMTP id va2so3984664obc.8; Wed, 07 Jan 2015 09:12:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=4q+PWCngD4ujjhti5ucGmVFUIS/jzMrO6dm57r3Jvns=; b=mKDKlyry2C+3cvc40HYwqtqZVVz/jfmr62g+/HFc2vx7JJf0fkbkOgsM21BPH4x5Kh ydH31rFxtbHUkLQxfrKGoLJcYZXP01Zpr3vBPDmoAH4TWrnct46wVAGmpv+F2TF3KV64 dbiDcdNR26299XrU+M6kXBPy8EjUY5d2orQ/OHh8uUn6lOHlGsMv1ONEScm5cD0kxmz5 B4O7bMGd4JOTtdX0t5EIV5Jx+a532YeqY1AaFSwrJhW10QqqEvtN6u6vK07NKzZ5ME0B T0BkTyuNnC0XY7DZ9j9DsnaQf7PzU5RoXJ7HH/ZNm3tOdipqcWmd8hELo5HGRojt/Isy dfhg==
X-Received: by 10.202.134.78 with SMTP id i75mr2548684oid.23.1420650747393; Wed, 07 Jan 2015 09:12:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Wed, 7 Jan 2015 09:12:05 -0800 (PST)
In-Reply-To: <CAMm+Lwh1TWaaNMJ4wXQFih+1EbZ0f8kLuYxyB_ak4fGHCjS9Lg@mail.gmail.com>
References: <CAMm+Lwh1TWaaNMJ4wXQFih+1EbZ0f8kLuYxyB_ak4fGHCjS9Lg@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 7 Jan 2015 09:12:05 -0800
Message-ID: <CAHOTMVK9CVAhUijiYgMe0d5KzyQpM47ALv9wW1YV3-C0B3LdkQ@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=001a113e4d9a260063050c130724
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/2TWZreKa7et5co2GjgTj6i_vER8
Cc: "dns-privacy@ietf.org" <dns-privacy@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] Entity authenticator URI
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 17:12:33 -0000

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

On Wed, Jan 7, 2015 at 7:42 AM, Phillip Hallam-Baker <phill@hallambaker.com>
wrote:

> TBS::ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA
>

What serialization format is this?

Why not URI-safe Base64, as in e.g.:

https://tools.ietf.org/html/rfc6920

-- 
Tony Arcieri

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

<div dir=3D"ltr"><div>On Wed, Jan 7, 2015 at 7:42 AM, Phillip Hallam-Baker =
<span dir=3D"ltr">&lt;<a href=3D"mailto:phill@hallambaker.com" target=3D"_b=
lank" onclick=3D"window.open(&#39;https://mail.google.com/mail/?view=3Dcm&a=
mp;tf=3D1&amp;to=3Dphill@hallambaker.com&amp;cc=3D&amp;bcc=3D&amp;su=3D&amp=
;body=3D&#39;,&#39;_blank&#39;);return false;">phill@hallambaker.com</a>&gt=
;</span> wrote:<br></div><div class=3D"gmail_extra"><div class=3D"gmail_quo=
te"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:sol=
id;padding-left:1ex"><div dir=3D"ltr"><div>TBS::<span style=3D"color:rgb(0,=
0,0);font-size:1em">ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA<=
/span></div></div></blockquote><div><br></div>What serialization format is =
this?<div><br></div><div><span style=3D"color:rgb(0,0,0);font-size:13px">Wh=
y not URI-safe Base64, as in e.g.:</span>=C2=A0</div></div><div><br></div><=
div><a href=3D"https://tools.ietf.org/html/rfc6920">https://tools.ietf.org/=
html/rfc6920</a><br></div><div><br></div>-- <br><div class=3D"gmail_signatu=
re">Tony Arcieri<br></div>
</div></div>

--001a113e4d9a260063050c130724--


From nobody Wed Jan  7 09:44:10 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AC8F21A0095; Wed,  7 Jan 2015 09:44:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eBWhnMJJcP86; Wed,  7 Jan 2015 09:44:04 -0800 (PST)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3F641A008F; Wed,  7 Jan 2015 09:44:03 -0800 (PST)
Received: by mail-lb0-f169.google.com with SMTP id p9so1507887lbv.28; Wed, 07 Jan 2015 09:44:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=RLqAhOe1iJN89NCAoarU0RdWrqWuI8gLmR5UQLS6GDk=; b=YmSUlRPDgm9I3kyeRpUv2WpCf6M+oh6DfAm5mhh+1t7wihV4cFYMn5UL+o683/TL78 P410IEJs9LnlaQbi6+mXMTUgcPPDVvxrFloCfifa15RHqdqtXd77si32saCHjKrFil/+ l2LnBnXGswJl8Qn/Ao6KFd3J/yfBqW7MJK6lX5CX6Kjg5BgmO1+YW3f7T3ega8tidnqO BZoQZfXf8mFOJzU8qxgXsW3vFoBUy2XbzdTXmHb0QkVCLKj1JSVOuc/duV5DdjT05tEQ Xg9h+h9PeDUVyKatEKiqq5eCDUiTxtG6wPhbo7HpunOGVoALL2m+94VRB5FX+wVAMaSg AQJA==
MIME-Version: 1.0
X-Received: by 10.112.131.1 with SMTP id oi1mr6661706lbb.2.1420652641598; Wed, 07 Jan 2015 09:44:01 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.19.42 with HTTP; Wed, 7 Jan 2015 09:44:01 -0800 (PST)
In-Reply-To: <20150107154950.GA27385@nic.fr>
References: <CAMm+Lwh1TWaaNMJ4wXQFih+1EbZ0f8kLuYxyB_ak4fGHCjS9Lg@mail.gmail.com> <20150107154950.GA27385@nic.fr>
Date: Wed, 7 Jan 2015 12:44:01 -0500
X-Google-Sender-Auth: R6TKZf8V3OL4u3NI98FirJFZiLw
Message-ID: <CAMm+Lwjcrs8rBp6qbH-LG2P8uPjpz1kiO5YdCDfnNsMUoGd5YA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
Content-Type: multipart/alternative; boundary=047d7b3431060d46f5050c13786f
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/oQqOHOBXrBKaS_kFxaJZmgHa_uk
Cc: "dns-privacy@ietf.org" <dns-privacy@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] [dns-privacy] Entity authenticator URI
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 17:44:07 -0000

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

On Wed, Jan 7, 2015 at 10:49 AM, Stephane Bortzmeyer <bortzmeyer@nic.fr>
wrote:

> On Wed, Jan 07, 2015 at 10:42:38AM -0500,
>  Phillip Hallam-Baker <phill@hallambaker.com> wrote
>  a message of 184 lines which said:
>
> > The simplest URI would simply be either a base64URI or Base32 encoding
> of a
> > kerberos ticket, a public key or a digest of a public key.
>
> I do not see immediately the gain from RFC 6698?
>

Using the DNS to authenticate a connection to a DNS client-resolver
connection is a circular dependency. I have no idea how anyone would use
DANE to solve the problem of authenticating a service to a client and it is
obviously the wrong mechanism for authenticating a client to a service.

The TBS scheme provides a direct trust model. These are identifiers that
would be used in the presentation layer of the stack and lower. DANE and
the WebPKI support indirect trust binding an application layer identifier
(aka DNS label) to a key.

So the only link I can see to DANE is that you might perform a DANE lookup
and then use a TBS URI to represent the information you obtained in the
lower layers of the stack.


On Wed, Jan 7, 2015 at 12:12 PM, Tony Arcieri <bascule@gmail.com> wrote:

> On Wed, Jan 7, 2015 at 7:42 AM, Phillip Hallam-Baker <
> phill@hallambaker.com> wrote:
>
>> TBS::ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ-DAA
>>
>
> What serialization format is this?
>
> Why not URI-safe Base64, as in e.g.:
>
> https://tools.ietf.org/html/rfc6920
>

It is the 'for the sake of example' serialization scheme. The precise
scheme does not matter a great deal. I was in the Apple store getting my
iPhone fixed with 4 minutes of battery remaining and I cut and pasted from
my most recent draft.

The design constraint motivating the use of Base32 over Base64uri was to
permit the key identifier to be prepended to an email address and they are
not case sensitive. That does not apply here of course. But it might be
desirable to permit easy interchange between the two. The other argument
for BASE32 is that this is an identifier that might have to be read aloud
over a telephone or voice connection.

I am aware of RFC6920 of course, I am an author. This is a distinct scheme
in that the ni scheme is saying 'here is a resource identified by this
digest' and in this scheme we are identifying a key that can be used to
authenticate an account holder.

I have no objection to using the same format for the serialization but it
is actually a different URI scheme because the semantics are very different.

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Wed, Jan 7, 2015 at 10:49 AM, Stephane Bortzmeyer <span dir=3D"ltr">&lt;=
<a href=3D"mailto:bortzmeyer@nic.fr" target=3D"_blank">bortzmeyer@nic.fr</a=
>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bo=
rder-left-style:solid;padding-left:1ex">On Wed, Jan 07, 2015 at 10:42:38AM =
-0500,<br>
=C2=A0Phillip Hallam-Baker &lt;<a href=3D"mailto:phill@hallambaker.com">phi=
ll@hallambaker.com</a>&gt; wrote<br>
<span class=3D"">=C2=A0a message of 184 lines which said:<br>
<br>
&gt; The simplest URI would simply be either a base64URI or Base32 encoding=
 of a<br>
&gt; kerberos ticket, a public key or a digest of a public key.<br>
<br>
</span>I do not see immediately the gain from RFC 6698?<br></blockquote><di=
v><br></div><div>Using the DNS to authenticate a connection to a DNS client=
-resolver connection is a circular dependency. I have no idea how anyone wo=
uld use DANE to solve the problem of authenticating a service to a client a=
nd it is obviously the wrong mechanism for authenticating a client to a ser=
vice.</div><div><br></div><div>The TBS scheme provides a direct trust model=
. These are identifiers that would be used in the presentation layer of the=
 stack and lower. DANE and the WebPKI support indirect trust binding an app=
lication layer identifier (aka DNS label) to a key.=C2=A0</div><div><br></d=
iv><div>So the only link I can see to DANE is that you might perform a DANE=
 lookup and then use a TBS URI to represent the information you obtained in=
 the lower layers of the stack.</div><div><br></div><div><br></div><div>On =
Wed, Jan 7, 2015 at 12:12 PM, Tony Arcieri=C2=A0<span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:bascule@gmail.com" target=3D"_blank">bascule@gmail.com</a>&gt;=
</span>=C2=A0wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bo=
rder-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div>On Wed, Jan 7=
, 2015 at 7:42 AM, Phillip Hallam-Baker=C2=A0<span dir=3D"ltr">&lt;<a href=
=3D"mailto:phill@hallambaker.com" target=3D"_blank">phill@hallambaker.com</=
a>&gt;</span>=C2=A0wrote:<br></div><div class=3D"gmail_extra"><div class=3D=
"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left=
-style:solid;padding-left:1ex"><div dir=3D"ltr">TBS::<span style=3D"color:r=
gb(0,0,0);font-size:1em">ABAHEA-BI4AAJ-6ACOXQA-A7AHPD-KAHDAES-NZACVA-HGWMAJ=
-DAA</span></div></blockquote><div><br></div>What serialization format is t=
his?<div><br></div><div><span style=3D"color:rgb(0,0,0);font-size:13px">Why=
 not URI-safe Base64, as in e.g.:</span>=C2=A0</div></div><div><br></div><d=
iv><a href=3D"https://tools.ietf.org/html/rfc6920" target=3D"_blank">https:=
//tools.ietf.org/html/rfc6920</a></div></div></div></blockquote></div><div>=
<br></div><div>It is the &#39;for the sake of example&#39; serialization sc=
heme. The precise scheme does not matter a great deal. I was in the Apple s=
tore getting my iPhone fixed with 4 minutes of battery remaining and I cut =
and pasted from my most recent draft.</div><div><br></div><div>The design c=
onstraint motivating the use of Base32 over Base64uri was to permit the key=
 identifier to be prepended to an email address and they are not case sensi=
tive. That does not apply here of course. But it might be desirable to perm=
it easy interchange between the two. The other argument for BASE32 is that =
this is an identifier that might have to be read aloud over a telephone or =
voice connection.=C2=A0</div><div><br></div><div>I am aware of RFC6920 of c=
ourse, I am an author. This is a distinct scheme in that the ni scheme is s=
aying &#39;here is a resource identified by this digest&#39; and in this sc=
heme we are identifying a key that can be used to authenticate an account h=
older.</div><div><br></div><div>I have no objection to using the same forma=
t for the serialization but it is actually a different URI scheme because t=
he semantics are very different.</div><div><br></div></div></div></div>

--047d7b3431060d46f5050c13786f--


From nobody Wed Jan  7 11:29:23 2015
Return-Path: <jsha@eff.org>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93D1A1A1A3C for <acme@ietfa.amsl.com>; Wed,  7 Jan 2015 11:29:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.011
X-Spam-Level: 
X-Spam-Status: No, score=-7.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5X8aRxz_5xB3 for <acme@ietfa.amsl.com>; Wed,  7 Jan 2015 11:29:17 -0800 (PST)
Received: from mail2.eff.org (mail2.eff.org [173.239.79.204]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 288A61A01AE for <acme@ietf.org>; Wed,  7 Jan 2015 11:29:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eff.org; s=mail2;  h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=a0dezs/6MiN0j5tfFEGRqUXwrfV29YcvGYe8/V1T8yo=;  b=RAfFVV+yfUY7Zz/xJrkW3U09wk0N+Ddzs/X6iC/vmkJ5eEE2XOouzKeYJB0uQcMPIwkUo7FdVIHXduIIMLCMO6/PBNroDoSg6HrToKkDGyTUQo7AgAIMlWtavPiZbki5ZZwHrhmzKNH5kWet2ZkSEukSBM1+Ab6MlfIIpId0IZw=;
Received: ; Wed, 07 Jan 2015 11:29:16 -0800
Message-ID: <54AD890A.1030004@eff.org>
Date: Wed, 07 Jan 2015 14:29:14 -0500
From: Jacob Hoffman-Andrews <jsha@eff.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: acme@ietf.org
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/ryMg9u_xHlW9O3Y_FDo2KpUBU2U
Subject: [Acme] Client-controlled values
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 19:29:19 -0000

In the current version of the spec, for SimpleHTTPS Validation, the 
client can specify the path (under .well-known/acme-challenge) where the 
server should expect to find a copy of the token. The goal as I 
understand it is to allow a single client to manage multiple pending 
authorization requests without file collisions. However, I think this 
adds unnecessary complexity and risk.

Proposal: For the SimpleHTTPS challenge, the client should not provide a 
path. The server should always fetch 
.well-known/acme-challenge/<token>.txt, and should expect the contents 
to equal <token>.

For DVSNI and DNS challenges, the client provides a random string `s', 
to be hashed with the server's random string `r'. What sort of attack 
does this protect against? It seems unnecessarily risky to allow the 
client input into the hash, and leads to some issues like 
https://github.com/letsencrypt/acme-spec/issues/12.

Proposal: For the DVSNI and DNS challenges, the client should not 
provide a random string `s', but should directly sign the server's 
random string `r'.a


From nobody Wed Jan  7 11:42:09 2015
Return-Path: <jsha@eff.org>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 50BC71A1A6D for <acme@ietfa.amsl.com>; Wed,  7 Jan 2015 11:42:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.011
X-Spam-Level: 
X-Spam-Status: No, score=-7.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tZlw2v656ciY for <acme@ietfa.amsl.com>; Wed,  7 Jan 2015 11:42:06 -0800 (PST)
Received: from mail2.eff.org (mail2.eff.org [173.239.79.204]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D4E31A1A50 for <acme@ietf.org>; Wed,  7 Jan 2015 11:42:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eff.org; s=mail2;  h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=mmOy9gco8k5fzSHOrsRkxuJQmY2lGqxjVFJyxTCIby4=;  b=08+NaD9K5Ea3mb25Sx9u5clncBT5CTKd3HmynezjKJ3iL75xRmCgAsZxGu9QdKD+rIej2tZPEaDjj0Ay01XA4QpJvyS3Xx/dIVZ66P6/B5K3zXuV3rFfZwaQFavZ2/gGxmJg+s7YBCpX69aH8C6I3HPsa41pDVSTHMt/MPgCkmU=;
Received: ; Wed, 07 Jan 2015 11:42:05 -0800
Message-ID: <54AD8C0C.1070608@eff.org>
Date: Wed, 07 Jan 2015 14:42:04 -0500
From: Jacob Hoffman-Andrews <jsha@eff.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: acme@ietf.org
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/qpc6sHCHvGboaPya1eiSkYrVBHw
Subject: [Acme] Defining random strings
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 19:42:07 -0000

The spec has a number of places that call for a random string: nonces, 
tokens, session ids, the `r' and `s' values in DVSNI and DNS challenges. 
They are described slightly differently in different places, and some 
are encoded as base64, but others are encoded as hex (e.g. when they 
need to be a DNS label). This is a bit confusing.

Proposal: Define `random string' once, and replace each field 
description that needs one with a reference to that definition. 
Consolidate all random string encodings on hex.

Proposed language:

Random String: A hex-encoded 128-bit random value, output from a CSPRNG.

...

token (required, string): A Random String


From nobody Wed Jan  7 12:49:56 2015
Return-Path: <bascule@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 458051A1B6F; Wed,  7 Jan 2015 12:49:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lLPzS_ZX9Z3K; Wed,  7 Jan 2015 12:49:49 -0800 (PST)
Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 600951A1B5A; Wed,  7 Jan 2015 12:49:49 -0800 (PST)
Received: by mail-ob0-f169.google.com with SMTP id vb8so5108860obc.0; Wed, 07 Jan 2015 12:49:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7z10jjMehaNyg8ZJorYXlHa1d9JMJnjld3Re43BvazM=; b=B5ZlAvGG5rvmlG7UKW+Z7Ks08Tg0Po0covuEusgFZ5nxKSf2bTCpfkZ7URHng27dQ9 oAOfoJl5ay22GjgpNzHAT+alTyx7E5si6y/hxtyRmvLLyhRRqsV4H9/X9xhPk6dx/vW+ 6Z0ujkovzRuK1B6rOlHliZNwrbzWtdGG5eKH5rXFEtVe2+r3dgQfg9huAq0k2tfH+1TI 3NqLwRc4Dlj08D0OuGc7ORazxFnPXgNn/Vm6weF5hOlyOk+63PMxQ4Ey3N1+FUo09/hF nVYSk88V41KLQqmW70LV2xw6CMvKPuBM7Q3mYeUE8BnbcY3UsyfSmwngDa+rykqO7vi3 zZuw==
X-Received: by 10.60.77.2 with SMTP id o2mr3375335oew.34.1420663788568; Wed, 07 Jan 2015 12:49:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.227.225 with HTTP; Wed, 7 Jan 2015 12:49:27 -0800 (PST)
In-Reply-To: <CAMm+Lwjcrs8rBp6qbH-LG2P8uPjpz1kiO5YdCDfnNsMUoGd5YA@mail.gmail.com>
References: <CAMm+Lwh1TWaaNMJ4wXQFih+1EbZ0f8kLuYxyB_ak4fGHCjS9Lg@mail.gmail.com> <20150107154950.GA27385@nic.fr> <CAMm+Lwjcrs8rBp6qbH-LG2P8uPjpz1kiO5YdCDfnNsMUoGd5YA@mail.gmail.com>
From: Tony Arcieri <bascule@gmail.com>
Date: Wed, 7 Jan 2015 12:49:27 -0800
Message-ID: <CAHOTMVLuv9OG4p1kEt6wZ0Q__7pkBk5gBj2tX6m2jX0NXj2FAA@mail.gmail.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Content-Type: multipart/alternative; boundary=047d7b33d208768a86050c161065
Archived-At: http://mailarchive.ietf.org/arch/msg/acme/vAFBfznofPKXeBWMiiruHyuedEA
Cc: "dns-privacy@ietf.org" <dns-privacy@ietf.org>, "acme@ietf.org" <acme@ietf.org>, Stephane Bortzmeyer <bortzmeyer@nic.fr>
Subject: Re: [Acme] [dns-privacy] Entity authenticator URI
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 20:49:54 -0000

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

On Wed, Jan 7, 2015 at 9:44 AM, Phillip Hallam-Baker <phill@hallambaker.com>
wrote:

> The design constraint motivating the use of Base32 over Base64uri was to
> permit the key identifier to be prepended to an email address and they are
> not case sensitive. That does not apply here of course. But it might be
> desirable to permit easy interchange between the two. The other argument
> for BASE32 is that this is an identifier that might have to be read aloud
> over a telephone or voice connection.
>

Okay, well if you'd like to use Base32, perhaps consider z-base-32 instead?
It's more succinct and less "shouty" than the original all-capital version:

http://philzimmermann.com/docs/human-oriented-base-32-encoding.txt

-- 
Tony Arcieri

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Jan 7, 2015 at 9:44 AM, Phillip Hallam-Baker <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:phill@hallambaker.com" target=3D"_blank">phill@hallambaker.co=
m</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"=
gmail_extra"><div class=3D"gmail_quote"><div>The design constraint motivati=
ng the use of Base32 over Base64uri was to permit the key identifier to be =
prepended to an email address and they are not case sensitive. That does no=
t apply here of course. But it might be desirable to permit easy interchang=
e between the two. The other argument for BASE32 is that this is an identif=
ier that might have to be read aloud over a telephone or voice connection.<=
/div></div></div></div></blockquote><div><br></div><div>Okay, well if you&#=
39;d like to use Base32, perhaps consider z-base-32 instead? It&#39;s more =
succinct and less &quot;shouty&quot; than the original all-capital version:=
</div><div><br></div><div><a href=3D"http://philzimmermann.com/docs/human-o=
riented-base-32-encoding.txt">http://philzimmermann.com/docs/human-oriented=
-base-32-encoding.txt</a><br></div><div><br></div></div>-- <br><div class=
=3D"gmail_signature">Tony Arcieri<br></div>
</div></div>

--047d7b33d208768a86050c161065--


From nobody Tue Jan 13 14:27:24 2015
Return-Path: <jsha@eff.org>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5AEAC1AC3E4 for <acme@ietfa.amsl.com>; Tue, 13 Jan 2015 14:27:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.011
X-Spam-Level: 
X-Spam-Status: No, score=-7.011 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8KabDgH-Vtxw for <acme@ietfa.amsl.com>; Tue, 13 Jan 2015 14:27:20 -0800 (PST)
Received: from mail2.eff.org (mail2.eff.org [173.239.79.204]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68C201A6FD5 for <acme@ietf.org>; Tue, 13 Jan 2015 14:27:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eff.org; s=mail2;  h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=2UyDYnaIGq4XQaGGZYWOWqKA8bRgVFebw/zIGbyAJrc=;  b=QOW3ETcKe0Zbo+Vczi0tMq1Zac5/cHLrc0I+LhUdm4g/WqZhFejlMF8CmktBg0Ua0R48KFpawkCP7yCzRk8AQWj5sKCKupaHGqGLrmR9wr7+wmawApUeUznxVV964ogqlZTktywoyFykxd4NM91D/M3mTnWkWdJNUkT0Muq5MN0=;
Received: ; Tue, 13 Jan 2015 14:27:20 -0800
Message-ID: <54B59BC7.1080705@eff.org>
Date: Tue, 13 Jan 2015 14:27:19 -0800
From: Jacob Hoffman-Andrews <jsha@eff.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: acme@ietf.org
References: <54AD890A.1030004@eff.org>
In-Reply-To: <54AD890A.1030004@eff.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: skipped for local relay
Received-SPF: skipped for local relay
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/RiDt6D_yV4iBK5M2BY-kAlUxGgk>
Subject: Re: [Acme] Client-controlled values
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jan 2015 22:27:22 -0000

James Kasten and I discussed this offline. He pointed out that you don't
want to ask the client to sign a completely server-controlled token,
even if that value is constrained, because of collision attacks. As
illustrated by the forged root cert based on an MD5 collision, the
server could ask you to sign a token:

acme-token-7e8ebcaef83c9f6a5ffa891934f4c79bebc8cdeea2fe17a314de79b50b1e04=
0c

After having offline found that that token collides with some other
string, e.g. a handshake message for which they want to spoof a
signature by your TLS private key.

I proposed removing the client random string `s' largely because the
current specification hard codes SHA-256(r || s). Ideally we should
either specify algorithm agility for that hash, or remove it entirely.

Proposal: Instead of having the client send its random string to the
server and have the server perform the hash, replace Z =3D SHA-256(R || S=
)
with Z =3D R || "." || S. When validating the provided certificate, the
server should look for a subjectAltName of R.*.acme.invalid. This
simplifies the spec so it doesn't have to hard-code SHA-256. It uses S
in a similar method to CA-controlled serial numbers, to make collision
attacks harder.

Auxiliary proposal: In the DVSNI section, add:

3. Verify the following properties of the certificate provided by the
TLS server:
   ...
   * Its hash algorithm and signing key type and size are acceptable by
server policy. At a minimum, servers SHOULD reject MD5 and SHA1
self-signed certificates, and RSA signing keys shorter than 2048 bits.

On 01/07/2015 11:29 AM, Jacob Hoffman-Andrews wrote:
> In the current version of the spec, for SimpleHTTPS Validation, the
> client can specify the path (under .well-known/acme-challenge) where
> the server should expect to find a copy of the token. The goal as I
> understand it is to allow a single client to manage multiple pending
> authorization requests without file collisions. However, I think this
> adds unnecessary complexity and risk.
>
> Proposal: For the SimpleHTTPS challenge, the client should not provide
> a path. The server should always fetch
> .well-known/acme-challenge/<token>.txt, and should expect the contents
> to equal <token>.
>
> For DVSNI and DNS challenges, the client provides a random string `s',
> to be hashed with the server's random string `r'. What sort of attack
> does this protect against? It seems unnecessarily risky to allow the
> client input into the hash, and leads to some issues like
> https://github.com/letsencrypt/acme-spec/issues/12.
>
> Proposal: For the DVSNI and DNS challenges, the client should not
> provide a random string `s', but should directly sign the server's
> random string `r'.a
>



From nobody Thu Jan 15 16:48:51 2015
Return-Path: <jdkasten@umich.edu>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9F3D1A9140 for <acme@ietfa.amsl.com>; Thu, 15 Jan 2015 16:48:49 -0800 (PST)
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 8NwwWrgn5ZvO for <acme@ietfa.amsl.com>; Thu, 15 Jan 2015 16:48:47 -0800 (PST)
Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD2091A913E for <acme@ietf.org>; Thu, 15 Jan 2015 16:48:46 -0800 (PST)
Received: by mail-ie0-f181.google.com with SMTP id rl12so18181049iec.12 for <acme@ietf.org>; Thu, 15 Jan 2015 16:48:45 -0800 (PST)
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=1fOMhdjqqr+z7fj+6ecx1WwUP2NB/RsWKiu+QRlP9lM=; b=Gv4mORCNGfyOKRU8uvTwpLCsnY0JcBgiV34Ryy4Tocer2qdN8b23oC81UR0zAJqlLR vnKOEGfiG1euhcLmJTPKNgAa5ujmSnXTsRvXGWPRpFt5wNnzrhoCqVeHG1V//uEBlXwV RzlGaJSxiPT88U9AZBd6R7KsmYkEwLX04Ti3KIF/63L93xFSg+nRxSlqGVXs9hy2xtSX 35JDQkEyN0jEJgW0wmukQh8fItjZe/lh8FM4X9U5HDXRqWqNbevYG6/xJ4pSdkBegjS8 WS94J1GKgFAeuakoF65yqdXHnf677DfRconixAoyRznz1I27j6Wm1coLf3yuKtI/rYNj GIyA==
X-Gm-Message-State: ALoCoQkGt+uKHQ0gXpTx/N0ERTsQuB0acxth4uVDrYLqUuyubHYcR+4DH18jnFHlRTqnGNiOHMFF
MIME-Version: 1.0
X-Received: by 10.107.15.163 with SMTP id 35mr13568312iop.46.1421369325725; Thu, 15 Jan 2015 16:48:45 -0800 (PST)
Received: by 10.50.218.131 with HTTP; Thu, 15 Jan 2015 16:48:45 -0800 (PST)
In-Reply-To: <54B59BC7.1080705@eff.org>
References: <54AD890A.1030004@eff.org> <54B59BC7.1080705@eff.org>
Date: Thu, 15 Jan 2015 16:48:45 -0800
Message-ID: <CAAEpsx9enevR_vKDH9F7KU8sgQQBk7RKR8FswE_i+Drp2iwEjw@mail.gmail.com>
From: James Kasten <jdkasten@umich.edu>
To: Jacob Hoffman-Andrews <jsha@eff.org>
Content-Type: multipart/alternative; boundary=001a113ed762c139cf050cba5585
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/aCCdIkrWT-jt4R_-qib9f71OyJo>
Cc: acme@ietf.org
Subject: Re: [Acme] Client-controlled values
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Jan 2015 00:48:50 -0000

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

I agree with Jacob regarding the removal of the hash algorithm.  I believe
simply appending R and S together is a good solution to produce Z.  S now
becomes a publicly known value but this shouldn't cause any security
concerns as the challenges are tied to the authorization (account) key in
the spec.

One more potential problem with the current specification (and the proposed
solution) is that individual DNS labels can technically only be 63 octets
(RFC 1035 Section 2.3.4 https://www.ietf.org/rfc/rfc1035.txt).  Our choice
of HEX encoded 32 byte random values makes our DNS labels invalid.
Although this shouldn't be a problem within X.509 itself, I wouldn't be
surprised if some X.509 parsing software would refuse to read in/write out
SAN DNS entries that are invalid.

I believe we have a few options.
1.  We could take over the Subject CN field to specify the R.S.acme.invalid
entry.  Since the subject CN field does not have any explicit notion of DNS
this should avoid the problem.
2.  We could break up the R and S value into two separate 16 byte (32 hex)
labels.  Thus R[0:16].R[16:32].S[0:16].S[16:32].acme.invalid
3.  We could place the value in some other X.509 OID (this was avoided
initially to ease the client implementation.  The SAN extension is
generally well-supported.)
4. We could change R and S to be 30-byte octet strings.

On Tue, Jan 13, 2015 at 2:27 PM, Jacob Hoffman-Andrews <jsha@eff.org> wrote:

> James Kasten and I discussed this offline. He pointed out that you don't
> want to ask the client to sign a completely server-controlled token,
> even if that value is constrained, because of collision attacks. As
> illustrated by the forged root cert based on an MD5 collision, the
> server could ask you to sign a token:
>
> acme-token-7e8ebcaef83c9f6a5ffa891934f4c79bebc8cdeea2fe17a314de79b50b1e040c
>
> After having offline found that that token collides with some other
> string, e.g. a handshake message for which they want to spoof a
> signature by your TLS private key.
>
> I proposed removing the client random string `s' largely because the
> current specification hard codes SHA-256(r || s). Ideally we should
> either specify algorithm agility for that hash, or remove it entirely.
>
> Proposal: Instead of having the client send its random string to the
> server and have the server perform the hash, replace Z = SHA-256(R || S)
> with Z = R || "." || S. When validating the provided certificate, the
> server should look for a subjectAltName of R.*.acme.invalid. This
> simplifies the spec so it doesn't have to hard-code SHA-256. It uses S
> in a similar method to CA-controlled serial numbers, to make collision
> attacks harder.
>
> Auxiliary proposal: In the DVSNI section, add:
>
> 3. Verify the following properties of the certificate provided by the
> TLS server:
>    ...
>    * Its hash algorithm and signing key type and size are acceptable by
> server policy. At a minimum, servers SHOULD reject MD5 and SHA1
> self-signed certificates, and RSA signing keys shorter than 2048 bits.
>
> On 01/07/2015 11:29 AM, Jacob Hoffman-Andrews wrote:
> > In the current version of the spec, for SimpleHTTPS Validation, the
> > client can specify the path (under .well-known/acme-challenge) where
> > the server should expect to find a copy of the token. The goal as I
> > understand it is to allow a single client to manage multiple pending
> > authorization requests without file collisions. However, I think this
> > adds unnecessary complexity and risk.
> >
> > Proposal: For the SimpleHTTPS challenge, the client should not provide
> > a path. The server should always fetch
> > .well-known/acme-challenge/<token>.txt, and should expect the contents
> > to equal <token>.
> >
> > For DVSNI and DNS challenges, the client provides a random string `s',
> > to be hashed with the server's random string `r'. What sort of attack
> > does this protect against? It seems unnecessarily risky to allow the
> > client input into the hash, and leads to some issues like
> > https://github.com/letsencrypt/acme-spec/issues/12.
> >
> > Proposal: For the DVSNI and DNS challenges, the client should not
> > provide a random string `s', but should directly sign the server's
> > random string `r'.a
> >
>
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>

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

<div dir=3D"ltr"><span style=3D"font-size:13px">I agree with Jacob regardin=
g the removal of the hash algorithm.=C2=A0 I believe simply appending R and=
 S together is a good solution to produce Z.=C2=A0 S now becomes a publicly=
 known value but this shouldn&#39;t cause any security concerns as the chal=
lenges are tied to the authorization (account) key in the spec.</span><div =
style=3D"font-size:13px"><br></div><div style=3D"font-size:13px">One more p=
otential problem with the current specification (and the proposed solution)=
 is that individual DNS labels can technically only be 63 octets (RFC 1035 =
Section 2.3.4=C2=A0<a href=3D"https://www.ietf.org/rfc/rfc1035.txt" target=
=3D"_blank">https://www.ietf.org/rfc/rfc1035.txt</a>).=C2=A0 Our choice of =
HEX encoded 32 byte random values makes our DNS labels invalid.=C2=A0 Altho=
ugh this shouldn&#39;t be a problem within X.509 itself, I wouldn&#39;t be =
surprised if some X.509 parsing software would refuse to read in/write out =
SAN DNS entries that are invalid.</div><div style=3D"font-size:13px"><br></=
div><div style=3D"font-size:13px">I believe we have a few options.</div><di=
v style=3D"font-size:13px">1.=C2=A0 We could take over the Subject CN field=
 to specify the R.S.acme.invalid entry.=C2=A0 Since the subject CN field do=
es not have any explicit notion of DNS this should avoid the problem.</div>=
<div style=3D"font-size:13px">2.=C2=A0 We could break up the R and S value =
into two separate 16 byte (32 hex) labels.=C2=A0 Thus R[0:16].R[16:32].S[0:=
16].S[16:32].acme.invalid</div><div style=3D"font-size:13px">3.=C2=A0 We co=
uld place the value in some other X.509 OID (this was avoided initially to =
ease the client implementation.=C2=A0 The SAN extension is generally well-s=
upported.)</div><div style=3D"font-size:13px">4. We could change R and S to=
 be 30-byte octet strings.</div></div><div class=3D"gmail_extra"><br><div c=
lass=3D"gmail_quote">On Tue, Jan 13, 2015 at 2:27 PM, Jacob Hoffman-Andrews=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:jsha@eff.org" target=3D"_blank">js=
ha@eff.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">James Ka=
sten and I discussed this offline. He pointed out that you don&#39;t<br>
want to ask the client to sign a completely server-controlled token,<br>
even if that value is constrained, because of collision attacks. As<br>
illustrated by the forged root cert based on an MD5 collision, the<br>
server could ask you to sign a token:<br>
<br>
acme-token-7e8ebcaef83c9f6a5ffa891934f4c79bebc8cdeea2fe17a314de79b50b1e040c=
<br>
<br>
After having offline found that that token collides with some other<br>
string, e.g. a handshake message for which they want to spoof a<br>
signature by your TLS private key.<br>
<br>
I proposed removing the client random string `s&#39; largely because the<br=
>
current specification hard codes SHA-256(r || s). Ideally we should<br>
either specify algorithm agility for that hash, or remove it entirely.<br>
<br>
Proposal: Instead of having the client send its random string to the<br>
server and have the server perform the hash, replace Z =3D SHA-256(R || S)<=
br>
with Z =3D R || &quot;.&quot; || S. When validating the provided certificat=
e, the<br>
server should look for a subjectAltName of R.*.acme.invalid. This<br>
simplifies the spec so it doesn&#39;t have to hard-code SHA-256. It uses S<=
br>
in a similar method to CA-controlled serial numbers, to make collision<br>
attacks harder.<br>
<br>
Auxiliary proposal: In the DVSNI section, add:<br>
<br>
3. Verify the following properties of the certificate provided by the<br>
TLS server:<br>
=C2=A0 =C2=A0...<br>
=C2=A0 =C2=A0* Its hash algorithm and signing key type and size are accepta=
ble by<br>
server policy. At a minimum, servers SHOULD reject MD5 and SHA1<br>
self-signed certificates, and RSA signing keys shorter than 2048 bits.<br>
<br>
On 01/07/2015 11:29 AM, Jacob Hoffman-Andrews wrote:<br>
&gt; In the current version of the spec, for SimpleHTTPS Validation, the<br=
>
&gt; client can specify the path (under .well-known/acme-challenge) where<b=
r>
&gt; the server should expect to find a copy of the token. The goal as I<br=
>
&gt; understand it is to allow a single client to manage multiple pending<b=
r>
&gt; authorization requests without file collisions. However, I think this<=
br>
&gt; adds unnecessary complexity and risk.<br>
&gt;<br>
&gt; Proposal: For the SimpleHTTPS challenge, the client should not provide=
<br>
&gt; a path. The server should always fetch<br>
&gt; .well-known/acme-challenge/&lt;token&gt;.txt, and should expect the co=
ntents<br>
&gt; to equal &lt;token&gt;.<br>
&gt;<br>
&gt; For DVSNI and DNS challenges, the client provides a random string `s&#=
39;,<br>
&gt; to be hashed with the server&#39;s random string `r&#39;. What sort of=
 attack<br>
&gt; does this protect against? It seems unnecessarily risky to allow the<b=
r>
&gt; client input into the hash, and leads to some issues like<br>
&gt; <a href=3D"https://github.com/letsencrypt/acme-spec/issues/12" target=
=3D"_blank">https://github.com/letsencrypt/acme-spec/issues/12</a>.<br>
&gt;<br>
&gt; Proposal: For the DVSNI and DNS challenges, the client should not<br>
&gt; provide a random string `s&#39;, but should directly sign the server&#=
39;s<br>
&gt; random string `r&#39;.a<br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Acme mailing list<br>
<a href=3D"mailto:Acme@ietf.org">Acme@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/acme" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/acme</a><br>
</blockquote></div><br></div>

--001a113ed762c139cf050cba5585--


From nobody Sat Jan 17 02:54:08 2015
Return-Path: <lists@infosecurity.ch>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D1DC1ACCE2 for <acme@ietfa.amsl.com>; Sat, 17 Jan 2015 02:54:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 77hv3mh4WcNT for <acme@ietfa.amsl.com>; Sat, 17 Jan 2015 02:54:05 -0800 (PST)
Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 764D71ACCDF for <acme@ietf.org>; Sat, 17 Jan 2015 02:54:05 -0800 (PST)
Received: by mail-wi0-f179.google.com with SMTP id ho1so8327844wib.0 for <acme@ietf.org>; Sat, 17 Jan 2015 02:54:04 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=rYw/7AtA0+nmlH5O9dXQHBqIqOtPAuEswDtGgmMZSIc=; b=FqMFWjC81z4pb5CBwME5ztEhFouioGothPcmuTagczeazraZMy/O4SBblY5WAaiF6Q Oj3A9mbLPCNUZbKLX2RjJ6dtbcaSzl0ms4xSqyWVA3LaUhjg8tb+m8S5f2I/KdnVQpgG 13m7TgUH2YkCFM6CgdHMNJjKI9qlJAVYGucOEoa1swWnqXRToqtNhvKfMf+RqfUpDyGg IQo2jRsKVlhdi/pojlp/B1YR7HAcH7eZnXvpnCJMJWwFgRVeAX7HPo9nDQ9MKLnW5p3e Pzjm2ha3/8+EMM7XXaael3eg49zi9MDUlDFCgXHBOPDLnvmQzYGJs5fO/MmCDVs1ZrRx ANyw==
X-Gm-Message-State: ALoCoQkRfhW5JEPaJymNP7bDhO6aM11jAlnZ0Fk7qYkKjmHHqqCWbIrwjcUCMRBGZVXHpB9HeN+J
X-Received: by 10.194.175.69 with SMTP id by5mr37777154wjc.32.1421492044239; Sat, 17 Jan 2015 02:54:04 -0800 (PST)
Received: from MacBookAir-2.local (ip-2-116-wsl.customer.panservice.it. [212.66.116.2]) by mx.google.com with ESMTPSA id t12sm9358039wju.19.2015.01.17.02.54.02 for <acme@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jan 2015 02:54:03 -0800 (PST)
Sender: Fabio Pietrosanti <naif@infosecurity.ch>
Message-ID: <54BA3F4A.7050901@infosecurity.ch>
Date: Sat, 17 Jan 2015 11:54:02 +0100
From: "Fabio Pietrosanti (naif) - lists" <lists@infosecurity.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: acme@ietf.org
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/XdvktPnBT4qpNt4LCm8J1t60kCk>
Subject: [Acme] Wildcard Certificate for ACME protocol / Letsencrypt project?
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Jan 2015 10:54:07 -0000

Hi,

are there plan or has been already been defined specs to manage wildcard
certificates (ie: *.domain.TLD) with ACME protocol and Letsencrypt CA
project?

I ask this because at Tor2web project [1][2][3] we use Wildcard
certificates to enable internet access to Tor's Hidden Services
resources (and soon i2p too).

One of the problem in making Tor2web network to grow up in numbers is
related to the "costs" of wildcard certificates.

With the upcoming Letsencrypt free-automated-CA-revolution, this could
change the economic effort required to startup and run a Tor2web node by
a volounteer.

But to do that, it would be required to issue wildcard certificate
within the automated CA of letsencrypt.

If it will be possible to have Wildcard certificate, we could automate
the issuing/setup process within Tor2web software, making it extremely
easy and cost effective to set it up.


[1] http://logioshermes.org/home/projects-technologies/tor2web/
[2] https://tor2web.org
[3] https://github.com/globaleaks/Tor2web-3.0/wiki


-- 
Fabio Pietrosanti (naif)
HERMES - Center for Transparency and Digital Human Rights
http://logioshermes.org - https://globaleaks.org - https://tor2web.org -
https://ahmia.fi


From nobody Tue Jan 20 00:04:39 2015
Return-Path: <frase@frase.id.au>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DDD901B2D84 for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 00:04:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.628
X-Spam-Level: *
X-Spam-Status: No, score=1.628 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HOST_EQ_STATIC=1.172, 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 JjPsW-CXz7pY for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 00:04:37 -0800 (PST)
Received: from captainmorgan.hollandpark.frase.id.au (110-174-235-130.static.tpgi.com.au [110.174.235.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC3B21B2D82 for <acme@ietf.org>; Tue, 20 Jan 2015 00:04:36 -0800 (PST)
Received: from bacardi.hollandpark.frase.id.au (bacardi.hollandpark.frase.id.au [192.168.0.100]) by captainmorgan.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0K84W7d046282 for <acme@ietf.org>; Tue, 20 Jan 2015 18:04:32 +1000 (EST) (envelope-from frase@frase.id.au)
Received: from bacardi.hollandpark.frase.id.au (localhost [127.0.0.1]) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0K84W50009186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <acme@ietf.org>; Tue, 20 Jan 2015 18:04:32 +1000 (EST) (envelope-from frase@frase.id.au)
Received: (from fraser@localhost) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9/Submit) id t0K84SJN009185 for acme@ietf.org; Tue, 20 Jan 2015 18:04:28 +1000 (EST) (envelope-from frase@frase.id.au)
X-Authentication-Warning: bacardi.hollandpark.frase.id.au: fraser set sender to frase@frase.id.au using -f
Date: Tue, 20 Jan 2015 18:04:28 +1000
From: Fraser Tweedale <frase@frase.id.au>
To: acme@ietf.org
Message-ID: <20150120080427.GB1238@bacardi.hollandpark.frase.id.au>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/9vV9_Uj90Y-4oe-hjxxVwapokM4>
Subject: [Acme] restification of acme
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jan 2015 08:04:38 -0000

Hi all,

After looking at the boulder server and the node-acme 'restify'
branch, and some discussion on #letsencrypt, I am led to believe
that work to make ACME a REST-flavoured protocol is underway.

If this is the case, I have some questions/comments:

- When will we see an updated version of the spec (be it in a branch
  or otherwise?)

- The Retry-After header can be used with response status 503
  Service Unavailable and MAY be used with any 3xx response.  The
  use of the Retry-After header in the restify branch seems to be in
  violation of RFC 2616.

- I'm not sure that REST is a good semantics for ACME (what does
  revocation look like, for example?).  What was the motivation for
  switching to a REST-esque API?

Regards,

Fraser


From nobody Tue Jan 20 07:39:16 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B28A1B2DD6 for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 07:39:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BIelgEYsD-CK for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 07:39:12 -0800 (PST)
Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E2CE61B2DD4 for <acme@ietf.org>; Tue, 20 Jan 2015 07:39:11 -0800 (PST)
Received: by mail-la0-f53.google.com with SMTP id gq15so10532645lab.12 for <acme@ietf.org>; Tue, 20 Jan 2015 07:39:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=GeaH7F0q0Nil5JU6GOgjPFK6PhMYELUelXM2U6mw18Y=; b=bbnZAD4CwK6ca4OGUlzj3uZHqUBv5FcqS//awTeFraE6jw8Q7sTPnV/08pzfgjskRj QQtNmpHnhDjb5yO+NTJEMtJxfIz8S7ZYmt5lxm+QiE4wlGBT6TJNg6zpxqXUsscU/SHx XGD0qSXFcznYZxPLbqPSkhfcHhBtJ9JhAIsw5Lt7DyDf2G0YJmtSdFgMgwYgdYKpzyNl TTqymCzw2mDlG00dOtDqw6VROyFpu3gyVt99x1ByyaQnGMdT98wEETyJuRnY/xDdghvy Ak4p0f/CW8cUMjIQxkQF0FiLRNlQHzi2bVlGhDbMmq7E+mLMXIbYZfJkQfNqLyaNf09J QM6w==
MIME-Version: 1.0
X-Received: by 10.112.119.201 with SMTP id kw9mr38564091lbb.99.1421768350393;  Tue, 20 Jan 2015 07:39:10 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Tue, 20 Jan 2015 07:39:10 -0800 (PST)
In-Reply-To: <20150120080427.GB1238@bacardi.hollandpark.frase.id.au>
References: <20150120080427.GB1238@bacardi.hollandpark.frase.id.au>
Date: Tue, 20 Jan 2015 10:39:10 -0500
X-Google-Sender-Auth: T0o7Ne2sZhjuRLyBozFl1O-hAvI
Message-ID: <CAMm+LwgKLSCSvx1QHL+HLgtc0NK8-HygpgXEF81unbcxWt6Uvw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Fraser Tweedale <frase@frase.id.au>
Content-Type: multipart/alternative; boundary=047d7bae49da7a6b60050d173d3f
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/ddkhEAD6datLtczI6zhuDiIcSzs>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] restification of acme
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jan 2015 15:39:14 -0000

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

Please, can we not use buzzwords?

I have known Roy Fielding for 20 years and I read his original paper. I
have absolutely no idea what someone means when they talk about REST and
most times they mean 'perform some horrid kludge'.

We are doing a JSON protocol here. That means

All the request info in a JSON syntax request.
All the response info in a JSON syntax response.


Use of HTTP response codes results in flaky implementations because
intermediaries can meddle with them. You might want to give response codes
in both places but the canonical response code should be in JSON.

HTTP does not add any value here other than providing

1) A mechanism for distinguishing multiple services on the same host
2) Firewall bypass
3) Providing a logical place to put a signature header

HTTP was designed to support idempotent operations. ACME operations are not
idempotent so you are not going to get any benefit from HTTP caching.


I have seen people try to make use of the URI line to encode a request and
the results are ridiculous and useless. You lose the ability to have
structured data for a start. And you don't get caching even for static
lookups unless you canonicalize the URI.


If we were going to spend time 'RESTifying' the spec then there should be a
description of what REST is published as an RFC and agreed by the IAB that
we are working from. Otherwise we just end up chasing buzzwords without
gaining any consistency.


On Tue, Jan 20, 2015 at 3:04 AM, Fraser Tweedale <frase@frase.id.au> wrote:

> Hi all,
>
> After looking at the boulder server and the node-acme 'restify'
> branch, and some discussion on #letsencrypt, I am led to believe
> that work to make ACME a REST-flavoured protocol is underway.
>
> If this is the case, I have some questions/comments:
>
> - When will we see an updated version of the spec (be it in a branch
>   or otherwise?)
>
> - The Retry-After header can be used with response status 503
>   Service Unavailable and MAY be used with any 3xx response.  The
>   use of the Retry-After header in the restify branch seems to be in
>   violation of RFC 2616.
>
> - I'm not sure that REST is a good semantics for ACME (what does
>   revocation look like, for example?).  What was the motivation for
>   switching to a REST-esque API?
>
> Regards,
>
> Fraser
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>

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

<div dir=3D"ltr">Please, can we not use buzzwords?<div><br></div><div>I hav=
e known Roy Fielding for 20 years and I read his original paper. I have abs=
olutely no idea what someone means when they talk about REST and most times=
 they mean &#39;perform some horrid kludge&#39;.=C2=A0</div><div><br></div>=
<div>We are doing a JSON protocol here. That means</div><div><br></div><div=
>All the request info in a JSON syntax request.</div><div>All the response =
info in a JSON syntax response.</div><div><br></div><div><br></div><div>Use=
 of HTTP response codes results in flaky implementations because intermedia=
ries can meddle with them. You might want to give response codes in both pl=
aces but the canonical response code should be in JSON.</div><div><br></div=
><div>HTTP does not add any value here other than providing</div><div><br><=
/div><div>1) A mechanism for distinguishing multiple services on the same h=
ost</div><div>2) Firewall bypass</div><div>3) Providing a logical place to =
put a signature header</div><div><br></div><div>HTTP was designed to suppor=
t idempotent operations. ACME operations are not idempotent so you are not =
going to get any benefit from HTTP caching.</div><div><br></div><div><br></=
div><div>I have seen people try to make use of the URI line to encode a req=
uest and the results are ridiculous and useless. You lose the ability to ha=
ve structured data for a start. And you don&#39;t get caching even for stat=
ic lookups unless you canonicalize the URI.</div><div><br></div><div><br></=
div><div>If we were going to spend time &#39;RESTifying&#39; the spec then =
there should be a description of what REST is published as an RFC and agree=
d by the IAB that we are working from. Otherwise we just end up chasing buz=
zwords without gaining any consistency.</div><div><br></div></div><div clas=
s=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jan 20, 2015 at 3:=
04 AM, Fraser Tweedale <span dir=3D"ltr">&lt;<a href=3D"mailto:frase@frase.=
id.au" target=3D"_blank">frase@frase.id.au</a>&gt;</span> wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">Hi all,<br>
<br>
After looking at the boulder server and the node-acme &#39;restify&#39;<br>
branch, and some discussion on #letsencrypt, I am led to believe<br>
that work to make ACME a REST-flavoured protocol is underway.<br>
<br>
If this is the case, I have some questions/comments:<br>
<br>
- When will we see an updated version of the spec (be it in a branch<br>
=C2=A0 or otherwise?)<br>
<br>
- The Retry-After header can be used with response status 503<br>
=C2=A0 Service Unavailable and MAY be used with any 3xx response.=C2=A0 The=
<br>
=C2=A0 use of the Retry-After header in the restify branch seems to be in<b=
r>
=C2=A0 violation of RFC 2616.<br>
<br>
- I&#39;m not sure that REST is a good semantics for ACME (what does<br>
=C2=A0 revocation look like, for example?).=C2=A0 What was the motivation f=
or<br>
=C2=A0 switching to a REST-esque API?<br>
<br>
Regards,<br>
<br>
Fraser<br>
<br>
_______________________________________________<br>
Acme mailing list<br>
<a href=3D"mailto:Acme@ietf.org">Acme@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/acme" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/acme</a><br>
</blockquote></div><br></div>

--047d7bae49da7a6b60050d173d3f--


From nobody Tue Jan 20 11:46:16 2015
Return-Path: <jsha@eff.org>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E2CB31B2B01 for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 11:46:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.01
X-Spam-Level: 
X-Spam-Status: No, score=-7.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bLs-hcGNGVh0 for <acme@ietfa.amsl.com>; Tue, 20 Jan 2015 11:46:11 -0800 (PST)
Received: from mail2.eff.org (mail2.eff.org [173.239.79.204]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DDB891ACF55 for <acme@ietf.org>; Tue, 20 Jan 2015 11:46:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eff.org; s=mail2;  h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=9ZPIvwYVjW+nXskdbOZTPDv2nZapFVVDgyBfD14YX78=;  b=0e+9UwPnUTCRWSQFAsM37k28XZYVhq0g11shpvdod9PL3HCKdSLiYaWTQwSLdVGzP+fyNWC9zBJeVWNK/dMrHqpjFagF4j4vFkCQpM4XqAMmsFYB62o/Ct1d2C+pI6wmhctHVV9aB5TmZbj5DA+8FFzu1MHlHAxfJ+Q0NxUN/eA=;
Received: ; Tue, 20 Jan 2015 11:46:10 -0800
Message-ID: <54BEB082.3040901@eff.org>
Date: Tue, 20 Jan 2015 11:46:10 -0800
From: Jacob Hoffman-Andrews <jsha@eff.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>,  Fraser Tweedale <frase@frase.id.au>
References: <20150120080427.GB1238@bacardi.hollandpark.frase.id.au> <CAMm+LwgKLSCSvx1QHL+HLgtc0NK8-HygpgXEF81unbcxWt6Uvw@mail.gmail.com>
In-Reply-To: <CAMm+LwgKLSCSvx1QHL+HLgtc0NK8-HygpgXEF81unbcxWt6Uvw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------060600060800070409070604"
Received-SPF: skipped for local relay
Received-SPF: skipped for local relay
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/a8ASBdo7gJOA1TbMInfMMP759FI>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] restification of acme
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jan 2015 19:46:15 -0000

This is a multi-part message in MIME format.
--------------060600060800070409070604
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit

For reference, here is the pull request for changing the spec to use
REST concepts: https://github.com/letsencrypt/acme-spec/pull/48

I've raised a few of these issues there, in particular idempotence.

On 01/20/2015 07:39 AM, Phillip Hallam-Baker wrote:
> Please, can we not use buzzwords?
>
> I have known Roy Fielding for 20 years and I read his original paper.
> I have absolutely no idea what someone means when they talk about REST
> and most times they mean 'perform some horrid kludge'. 
>
> We are doing a JSON protocol here. That means
>
> All the request info in a JSON syntax request.
> All the response info in a JSON syntax response.
>
>
> Use of HTTP response codes results in flaky implementations because
> intermediaries can meddle with them. You might want to give response
> codes in both places but the canonical response code should be in JSON.
>
> HTTP does not add any value here other than providing
>
> 1) A mechanism for distinguishing multiple services on the same host
> 2) Firewall bypass
> 3) Providing a logical place to put a signature header
>
> HTTP was designed to support idempotent operations. ACME operations
> are not idempotent so you are not going to get any benefit from HTTP
> caching.
>
>
> I have seen people try to make use of the URI line to encode a request
> and the results are ridiculous and useless. You lose the ability to
> have structured data for a start. And you don't get caching even for
> static lookups unless you canonicalize the URI.
>
>
> If we were going to spend time 'RESTifying' the spec then there should
> be a description of what REST is published as an RFC and agreed by the
> IAB that we are working from. Otherwise we just end up chasing
> buzzwords without gaining any consistency.
>
>
> On Tue, Jan 20, 2015 at 3:04 AM, Fraser Tweedale <frase@frase.id.au
> <mailto:frase@frase.id.au>> wrote:
>
>     Hi all,
>
>     After looking at the boulder server and the node-acme 'restify'
>     branch, and some discussion on #letsencrypt, I am led to believe
>     that work to make ACME a REST-flavoured protocol is underway.
>
>     If this is the case, I have some questions/comments:
>
>     - When will we see an updated version of the spec (be it in a branch
>       or otherwise?)
>
>     - The Retry-After header can be used with response status 503
>       Service Unavailable and MAY be used with any 3xx response.  The
>       use of the Retry-After header in the restify branch seems to be in
>       violation of RFC 2616.
>
>     - I'm not sure that REST is a good semantics for ACME (what does
>       revocation look like, for example?).  What was the motivation for
>       switching to a REST-esque API?
>
>     Regards,
>
>     Fraser
>
>     _______________________________________________
>     Acme mailing list
>     Acme@ietf.org <mailto:Acme@ietf.org>
>     https://www.ietf.org/mailman/listinfo/acme
>
>
>
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme


--------------060600060800070409070604
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 bgcolor="#FFFFFF" text="#000000">
    For reference, here is the pull request for changing the spec to use
    REST concepts: <a class="moz-txt-link-freetext" href="https://github.com/letsencrypt/acme-spec/pull/48">https://github.com/letsencrypt/acme-spec/pull/48</a><br>
    <br>
    I've raised a few of these issues there, in particular idempotence.<br>
    <br>
    <div class="moz-cite-prefix">On 01/20/2015 07:39 AM, Phillip
      Hallam-Baker wrote:<br>
    </div>
    <blockquote
cite="mid:CAMm+LwgKLSCSvx1QHL+HLgtc0NK8-HygpgXEF81unbcxWt6Uvw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Please, can we not use buzzwords?
        <div><br>
        </div>
        <div>I have known Roy Fielding for 20 years and I read his
          original paper. I have absolutely no idea what someone means
          when they talk about REST and most times they mean 'perform
          some horrid kludge'. </div>
        <div><br>
        </div>
        <div>We are doing a JSON protocol here. That means</div>
        <div><br>
        </div>
        <div>All the request info in a JSON syntax request.</div>
        <div>All the response info in a JSON syntax response.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Use of HTTP response codes results in flaky implementations
          because intermediaries can meddle with them. You might want to
          give response codes in both places but the canonical response
          code should be in JSON.</div>
        <div><br>
        </div>
        <div>HTTP does not add any value here other than providing</div>
        <div><br>
        </div>
        <div>1) A mechanism for distinguishing multiple services on the
          same host</div>
        <div>2) Firewall bypass</div>
        <div>3) Providing a logical place to put a signature header</div>
        <div><br>
        </div>
        <div>HTTP was designed to support idempotent operations. ACME
          operations are not idempotent so you are not going to get any
          benefit from HTTP caching.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I have seen people try to make use of the URI line to
          encode a request and the results are ridiculous and useless.
          You lose the ability to have structured data for a start. And
          you don't get caching even for static lookups unless you
          canonicalize the URI.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>If we were going to spend time 'RESTifying' the spec then
          there should be a description of what REST is published as an
          RFC and agreed by the IAB that we are working from. Otherwise
          we just end up chasing buzzwords without gaining any
          consistency.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 20, 2015 at 3:04 AM, Fraser
          Tweedale <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:frase@frase.id.au" target="_blank">frase@frase.id.au</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
            <br>
            After looking at the boulder server and the node-acme
            'restify'<br>
            branch, and some discussion on #letsencrypt, I am led to
            believe<br>
            that work to make ACME a REST-flavoured protocol is
            underway.<br>
            <br>
            If this is the case, I have some questions/comments:<br>
            <br>
            - When will we see an updated version of the spec (be it in
            a branch<br>
              or otherwise?)<br>
            <br>
            - The Retry-After header can be used with response status
            503<br>
              Service Unavailable and MAY be used with any 3xx
            response.  The<br>
              use of the Retry-After header in the restify branch seems
            to be in<br>
              violation of RFC 2616.<br>
            <br>
            - I'm not sure that REST is a good semantics for ACME (what
            does<br>
              revocation look like, for example?).  What was the
            motivation for<br>
              switching to a REST-esque API?<br>
            <br>
            Regards,<br>
            <br>
            Fraser<br>
            <br>
            _______________________________________________<br>
            Acme mailing list<br>
            <a moz-do-not-send="true" href="mailto:Acme@ietf.org">Acme@ietf.org</a><br>
            <a moz-do-not-send="true"
              href="https://www.ietf.org/mailman/listinfo/acme"
              target="_blank">https://www.ietf.org/mailman/listinfo/acme</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Acme mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Acme@ietf.org">Acme@ietf.org</a>
<a class="moz-txt-link-freetext" href="https://www.ietf.org/mailman/listinfo/acme">https://www.ietf.org/mailman/listinfo/acme</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------060600060800070409070604--


From nobody Wed Jan 21 00:02:09 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 01D1B1A039B for <acme@ietfa.amsl.com>; Wed, 21 Jan 2015 00:02:07 -0800 (PST)
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 uGzCWxAoAVTw for <acme@ietfa.amsl.com>; Wed, 21 Jan 2015 00:02:05 -0800 (PST)
Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (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 5C1E51A039A for <acme@ietf.org>; Wed, 21 Jan 2015 00:02:05 -0800 (PST)
Received: by mail-wi0-f176.google.com with SMTP id em10so13526981wid.3 for <acme@ietf.org>; Wed, 21 Jan 2015 00:02:04 -0800 (PST)
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=yMho2l2xzvofb8KHSZS5S1N2yoMcAuCvcnS6OluljtI=; b=UpO4UfG/xKlu5KMD1ShexLw/TB2kUY53D1tKozXXD7ZHDY8J122V1LSpbmPOIJekHE qJl+EXIlIA+irxU7e6hRZupOgqQei2TQDGjcRvvZE0YKIf8bGGjLvBgtKIvbQNgzEssJ WyzvJ8R6Rfs4xoIDohVI38XCrPWZTYxdeJZJbZgVbTCbhxeJrXEkNChyoehdOUa9ckvv 0HuKnwn/b4NOx85QIfv0ODmip2Vhip5+kXhAcn4R4CRcz208CnoTGfCC2PIi+8nbvu2z zRHRI6N5lrn2+A13CLUuczXQbk9FqxlE1bFoOtHf063ihx8G7NrlSXPWaYUWkdpnAKJV 4AzQ==
X-Received: by 10.180.231.33 with SMTP id td1mr52893523wic.33.1421827324070; Wed, 21 Jan 2015 00:02:04 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id da2sm14224507wjb.21.2015.01.21.00.02.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jan 2015 00:02:03 -0800 (PST)
Message-ID: <54BF5CF0.5050106@gmail.com>
Date: Wed, 21 Jan 2015 09:01:52 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Jacob Hoffman-Andrews <jsha@eff.org>,  Phillip Hallam-Baker <phill@hallambaker.com>, Fraser Tweedale <frase@frase.id.au>
References: <20150120080427.GB1238@bacardi.hollandpark.frase.id.au> <CAMm+LwgKLSCSvx1QHL+HLgtc0NK8-HygpgXEF81unbcxWt6Uvw@mail.gmail.com> <54BEB082.3040901@eff.org>
In-Reply-To: <54BEB082.3040901@eff.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/MIgTq2W4v5Ux_EJcD6cBigaTDYs>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] restification of acme
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Jan 2015 08:02:07 -0000

I'm not going to comment on the conversion of ACME into a REST-based design, I just find
it amusing/interesting/odd that I in my [sort of] "ACME for mobile devices", SKS/KeyGen2,
came up with essentially the diametrically opposed solution like:

- HTTP POST to the same URL using HTTP 200 as the sole response code
- Uniquely identifiable JSON message classes
- Clear-text JSON signatures
- Key attestations rather than PKCS #10/PoP

Message classes are registered and then automatically instantiated in one place and
after that dispatched to the appropriate handler which also provides the return object.

This is like an extremely scaled-down version of the thing that made people turn to REST,
the bloated and ugly beast known as WS-*.

Anders


From nobody Fri Jan 23 09:19:33 2015
Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B2E71A1B06 for <acme@ietfa.amsl.com>; Fri, 23 Jan 2015 09:19:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MPr8VxOFR5-p for <acme@ietfa.amsl.com>; Fri, 23 Jan 2015 09:19:29 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 07BB51A1AD0 for <acme@ietf.org>; Fri, 23 Jan 2015 09:19:28 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 5402ABED4 for <acme@ietf.org>; Fri, 23 Jan 2015 17:19:27 +0000 (GMT)
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 Nn_MIzBI8JdZ for <acme@ietf.org>; Fri, 23 Jan 2015 17:19:27 +0000 (GMT)
Received: from [134.226.36.180] (stephen-think.dsg.cs.tcd.ie [134.226.36.180]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 21743BE8B for <acme@ietf.org>; Fri, 23 Jan 2015 17:19:27 +0000 (GMT)
Message-ID: <54C2829F.5070903@cs.tcd.ie>
Date: Fri, 23 Jan 2015 17:19:27 +0000
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: "acme@ietf.org" <acme@ietf.org>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/Gi1DF-oCuD68OQFsJoByxKyUD3A>
Subject: [Acme] Meeting in Dallas...
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jan 2015 17:19:31 -0000

Hiya,

So I was chatting with Richard Barnes about this yesterday
and we figured that this activity might benefit from a
shortish non-working group forming BoF in Dallas in March.
Maybe a 60 or 90 minute session with the main goal being
to scope out work that might be taken on by a WG that'd
form say in the May-July time frame, all going well.

Our rationale was that the folks developing the current
acme proposal [1] don't feel they're quite ready to propose
a charter, being busy coding. But equally, we need to make
sure that folks with other proposals, or with ideas for
bigger changes to [1] get an opportunity to discuss those
before we try craft a charter for a working group.

Richard also tells me they will publish an I-D for [1] (as
modified by [2] apparently) soon, and in any case before
the cutoff.

So, do folks think that's reasonable? If so, please let
me know (offlist is fine if it's just a +1, please cc
the list on anything substantive).

If you'd like a presentation slot at such a session, then
please send me an offlist mail with a topic and rough
duration requested.

And lastly, if you'd be willing and able to offer to
co-chair such a BoF please let me know (also offlist,
onlist offers to chair disqualify the sender:-)

Comments in the next week please, as we need to request
a session by Feb 6th if we want to go ahead.

Thanks,
S.

PS: For people less familiar with IETF meetings, details
about Dallas can be found at [3] and we'd not have a
fixed time-slot for the session until February 27, so
planning to be there for the full week (March 22-27)
is the ideal. Or booking travel a bit later otherwise.

[1] https://github.com/letsencrypt/acme-spec
[2] https://github.com/letsencrypt/acme-spec/pull/48
[3] https://www.ietf.org/meeting/92/index.html



From nobody Sun Jan 25 00:59:56 2015
Return-Path: <mat.jonczyk@o2.pl>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6B8701A7015 for <acme@ietfa.amsl.com>; Sun, 25 Jan 2015 00:59:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.185
X-Spam-Level: ****
X-Spam-Status: No, score=4.185 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FREEMAIL_FROM=0.001, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_NONE=-0.0001, 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 xSB5eJPSIfLy for <acme@ietfa.amsl.com>; Sun, 25 Jan 2015 00:59:54 -0800 (PST)
Received: from moh1-ve1.go2.pl (moh1-ve1.go2.pl [193.17.41.131]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1D0131A0143 for <acme@ietf.org>; Sun, 25 Jan 2015 00:59:54 -0800 (PST)
Received: from moh1-ve1.go2.pl (unknown [10.0.0.131]) by moh1-ve1.go2.pl (Postfix) with ESMTP id BD24491DEE0 for <acme@ietf.org>; Sun, 25 Jan 2015 09:59:52 +0100 (CET)
Received: from unknown (unknown [10.0.0.108]) by moh1-ve1.go2.pl (Postfix) with SMTP for <acme@ietf.org>; Sun, 25 Jan 2015 09:59:51 +0100 (CET)
Received: from bbs4.neoplus.adsl.tpnet.pl [83.27.208.4] by poczta.o2.pl with ESMTP id GIKbXf; Sun, 25 Jan 2015 09:59:51 +0100
Message-ID: <54C4B086.5080005@o2.pl>
Date: Sun, 25 Jan 2015 09:59:50 +0100
From: =?UTF-8?B?TWF0ZXVzeiBKb8WEY3p5aw==?= <mat.jonczyk@o2.pl>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: acme@ietf.org
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-O2-Trust: 2, 68
X-O2-SPF: notchecked
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/BjTQFgkW516gwHU3Xr_LtnRTL_A>
Subject: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 25 Jan 2015 08:59:55 -0000

Hello,
Suppose that Bob (admin of www.example.com) wants to get a signed certificate
for that domain and Eve (from NSA) is trying to get that certificate too. Eve
can also somehow do HTTPS MITM en route from Bob's computer to the ACME server
(I will ignore here the possibility of HTTPS MITM en route from the ACME server
to Bob's server). To make it more realistic [1], let's also suppose that Bob has
received a signed certificate for www.example.com in the past so that the
validation process involves PoP of previous key / recovery token.

In that case and with current ACME spec [2], Eve can AFAIK get a separate signed
certificate without any knowledge of Bob (unless he has access to reliable
public cert issuance records and inspects them). To do this, she could pass
through all validation challenges while substituting her own (independently
generated) public key. The ACME server will then happily validate Eve for
www.example.com and sign her key.

Then, after Eve got her certificate, she could send some error message to Bob,
such as "The server is overloaded. Please try again in 5 minutes". To make it
more realistic, she may send a defer message with a long timeout to Bob before
that. Bob (or even an automatic script) will then ask for the signature again
and get it unobstructed.

To block such an attack, all challenge responses should depend somehow on the
public and/or private keys of Bob. For example, in the "simpleHttps" method, the
value provisioned in the file should be signed with Bob's private key.
Alternatively, some time delay between two certificate issuances for
www.example.com could be enforced (e.g. 24 hours). If Bob would have to wait
that long, he would have begun to wonder what was going on.

Also, the Recovery Token that is sent from the ACME server should be encrypted
with Bob's private key so that Eve could not use it later to get a separate cert.


Greetings,
Mateusz


[1] Because otherwise almost any Eve that could do MITM can also redirect all
trafic from ACME server to www.example.com and get a cert that way.

[2] I meant last version of
https://github.com/letsencrypt/acme-spec/blob/master/draft-barnes-acme.md


From nobody Mon Jan 26 02:33:16 2015
Return-Path: <rlb@ipv.sx>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BD2A81A88A9 for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 02:33:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level: 
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.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 d0QfCuQYWQuI for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 02:33:13 -0800 (PST)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD93C1A8897 for <acme@ietf.org>; Mon, 26 Jan 2015 02:33:12 -0800 (PST)
Received: by mail-lb0-f172.google.com with SMTP id l4so6844347lbv.3 for <acme@ietf.org>; Mon, 26 Jan 2015 02:33:11 -0800 (PST)
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=/F2p6cjQwMRsHGOjzHJdBQq/E5RncuYs5jU6puxChjU=; b=hWjNFCvOuv/Bd4nep2z+oUH8pp39+ZysFK5TdZl5vn2k+JrhRoHfG6AxfSsM44wpvF 4I7w12luZxZPfPSBQmEI0ad4OhIs/WXjHCKIia9pLyFuBj+Nn5hKz96DltgaJ7eE2wls fCDEzJYZKG+wi6b4FwRrk2JRGn99cLFi2FsigY72NW1c5GZJuM6a12t5e2louhUjIron uD6YFxeEQScYutZAquNhPhcXVCt9saNuOtZq5R675PDoS6p0txmQUxxpKiuwH5vvvgGs fav4bayo8WftkFBfMl6pc901UfgcBXIUmFbDc599jtjp1VW8iMMgkgBikYL6CRLsqTDc /wyg==
X-Gm-Message-State: ALoCoQlbVsV4nhLEDZoPwtkDBYZrRMBAMhNpVEqQ3USoddC/0YEr/FWlfuC33nyCAvalLQRLWzWR
MIME-Version: 1.0
X-Received: by 10.152.170.194 with SMTP id ao2mr20779115lac.12.1422268391227;  Mon, 26 Jan 2015 02:33:11 -0800 (PST)
Received: by 10.25.201.86 with HTTP; Mon, 26 Jan 2015 02:33:11 -0800 (PST)
In-Reply-To: <54C4B086.5080005@o2.pl>
References: <54C4B086.5080005@o2.pl>
Date: Mon, 26 Jan 2015 05:33:11 -0500
Message-ID: <CAL02cgTgRGK6Nk958zvWmDCw9ZnyvGRdx9q4hzVWd_fjNLx5Xg@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: =?UTF-8?Q?Mateusz_Jo=C5=84czyk?= <mat.jonczyk@o2.pl>
Content-Type: multipart/alternative; boundary=089e011615f23c16e6050d8baa9c
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/AXMKEH-vdK-sGj-RX-Z4i79WhkI>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jan 2015 10:33:14 -0000

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

Hey Mateusz,

Thanks a lot for suggesting this.  This sounds like a great idea to me.
Please feel free to file an issue on the Github spec -- or send a pull
request!

The only exception that occurs to me is the recoveryToken / recoveryContact
challenge types.  The recoveryToken challenge is done in-band to ACME, so
it's already signed with the account key pair.  For recoveryChallenge, I
guess you could bind in the key pair, but given that it's intended to be
more human-facing, that seems counterproductive.

--Richard

On Sun, Jan 25, 2015 at 3:59 AM, Mateusz Jo=C5=84czyk <mat.jonczyk@o2.pl> w=
rote:

> Hello,
> Suppose that Bob (admin of www.example.com) wants to get a signed
> certificate
> for that domain and Eve (from NSA) is trying to get that certificate too.
> Eve
> can also somehow do HTTPS MITM en route from Bob's computer to the ACME
> server
> (I will ignore here the possibility of HTTPS MITM en route from the ACME
> server
> to Bob's server). To make it more realistic [1], let's also suppose that
> Bob has
> received a signed certificate for www.example.com in the past so that the
> validation process involves PoP of previous key / recovery token.
>
> In that case and with current ACME spec [2], Eve can AFAIK get a separate
> signed
> certificate without any knowledge of Bob (unless he has access to reliabl=
e
> public cert issuance records and inspects them). To do this, she could pa=
ss
> through all validation challenges while substituting her own (independent=
ly
> generated) public key. The ACME server will then happily validate Eve for
> www.example.com and sign her key.
>
> Then, after Eve got her certificate, she could send some error message to
> Bob,
> such as "The server is overloaded. Please try again in 5 minutes". To mak=
e
> it
> more realistic, she may send a defer message with a long timeout to Bob
> before
> that. Bob (or even an automatic script) will then ask for the signature
> again
> and get it unobstructed.
>
> To block such an attack, all challenge responses should depend somehow on
> the
> public and/or private keys of Bob. For example, in the "simpleHttps"
> method, the
> value provisioned in the file should be signed with Bob's private key.
> Alternatively, some time delay between two certificate issuances for
> www.example.com could be enforced (e.g. 24 hours). If Bob would have to
> wait
> that long, he would have begun to wonder what was going on.
>
> Also, the Recovery Token that is sent from the ACME server should be
> encrypted
> with Bob's private key so that Eve could not use it later to get a
> separate cert.
>
>
> Greetings,
> Mateusz
>
>
> [1] Because otherwise almost any Eve that could do MITM can also redirect
> all
> trafic from ACME server to www.example.com and get a cert that way.
>
> [2] I meant last version of
> https://github.com/letsencrypt/acme-spec/blob/master/draft-barnes-acme.md
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>

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

<div dir=3D"ltr">Hey Mateusz,<div><br></div><div>Thanks a lot for suggestin=
g this.=C2=A0 This sounds like a great idea to me.=C2=A0 Please feel free t=
o file an issue on the Github spec -- or send a pull request!</div><div><br=
></div><div>The only exception that occurs to me is the recoveryToken / rec=
overyContact challenge types.=C2=A0 The recoveryToken challenge is done in-=
band to ACME, so it&#39;s already signed with the account key pair.=C2=A0 F=
or recoveryChallenge, I guess you could bind in the key pair, but given tha=
t it&#39;s intended to be more human-facing, that seems counterproductive.<=
/div><div><br></div><div>--Richard</div></div><div class=3D"gmail_extra"><b=
r><div class=3D"gmail_quote">On Sun, Jan 25, 2015 at 3:59 AM, Mateusz Jo=C5=
=84czyk <span dir=3D"ltr">&lt;<a href=3D"mailto:mat.jonczyk@o2.pl" target=
=3D"_blank">mat.jonczyk@o2.pl</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">Hello,<br>
Suppose that Bob (admin of <a href=3D"http://www.example.com" target=3D"_bl=
ank">www.example.com</a>) wants to get a signed certificate<br>
for that domain and Eve (from NSA) is trying to get that certificate too. E=
ve<br>
can also somehow do HTTPS MITM en route from Bob&#39;s computer to the ACME=
 server<br>
(I will ignore here the possibility of HTTPS MITM en route from the ACME se=
rver<br>
to Bob&#39;s server). To make it more realistic [1], let&#39;s also suppose=
 that Bob has<br>
received a signed certificate for <a href=3D"http://www.example.com" target=
=3D"_blank">www.example.com</a> in the past so that the<br>
validation process involves PoP of previous key / recovery token.<br>
<br>
In that case and with current ACME spec [2], Eve can AFAIK get a separate s=
igned<br>
certificate without any knowledge of Bob (unless he has access to reliable<=
br>
public cert issuance records and inspects them). To do this, she could pass=
<br>
through all validation challenges while substituting her own (independently=
<br>
generated) public key. The ACME server will then happily validate Eve for<b=
r>
<a href=3D"http://www.example.com" target=3D"_blank">www.example.com</a> an=
d sign her key.<br>
<br>
Then, after Eve got her certificate, she could send some error message to B=
ob,<br>
such as &quot;The server is overloaded. Please try again in 5 minutes&quot;=
. To make it<br>
more realistic, she may send a defer message with a long timeout to Bob bef=
ore<br>
that. Bob (or even an automatic script) will then ask for the signature aga=
in<br>
and get it unobstructed.<br>
<br>
To block such an attack, all challenge responses should depend somehow on t=
he<br>
public and/or private keys of Bob. For example, in the &quot;simpleHttps&qu=
ot; method, the<br>
value provisioned in the file should be signed with Bob&#39;s private key.<=
br>
Alternatively, some time delay between two certificate issuances for<br>
<a href=3D"http://www.example.com" target=3D"_blank">www.example.com</a> co=
uld be enforced (e.g. 24 hours). If Bob would have to wait<br>
that long, he would have begun to wonder what was going on.<br>
<br>
Also, the Recovery Token that is sent from the ACME server should be encryp=
ted<br>
with Bob&#39;s private key so that Eve could not use it later to get a sepa=
rate cert.<br>
<br>
<br>
Greetings,<br>
Mateusz<br>
<br>
<br>
[1] Because otherwise almost any Eve that could do MITM can also redirect a=
ll<br>
trafic from ACME server to <a href=3D"http://www.example.com" target=3D"_bl=
ank">www.example.com</a> and get a cert that way.<br>
<br>
[2] I meant last version of<br>
<a href=3D"https://github.com/letsencrypt/acme-spec/blob/master/draft-barne=
s-acme.md" target=3D"_blank">https://github.com/letsencrypt/acme-spec/blob/=
master/draft-barnes-acme.md</a><br>
<br>
_______________________________________________<br>
Acme mailing list<br>
<a href=3D"mailto:Acme@ietf.org">Acme@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/acme" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/acme</a><br>
</blockquote></div><br></div>

--089e011615f23c16e6050d8baa9c--


From nobody Mon Jan 26 08:09:38 2015
Return-Path: <mat.jonczyk@o2.pl>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 519B81A914B for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 08:09:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.185
X-Spam-Level: ****
X-Spam-Status: No, score=4.185 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FREEMAIL_FROM=0.001, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_NONE=-0.0001, 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 EGziMYwwZdXn for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 08:09:34 -0800 (PST)
Received: from moh1-ve2.go2.pl (moh1-ve2.go2.pl [193.17.41.132]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CE381A90F0 for <acme@ietf.org>; Mon, 26 Jan 2015 08:09:15 -0800 (PST)
Received: from moh1-ve2.go2.pl (unknown [10.0.0.132]) by moh1-ve2.go2.pl (Postfix) with ESMTP id BF81A1065BDB for <acme@ietf.org>; Mon, 26 Jan 2015 17:09:04 +0100 (CET)
Received: from unknown (unknown [10.0.0.74]) by moh1-ve2.go2.pl (Postfix) with SMTP for <acme@ietf.org>; Mon, 26 Jan 2015 17:09:04 +0100 (CET)
Received: from bot140.neoplus.adsl.tpnet.pl [83.29.35.140] by poczta.o2.pl with ESMTP id rUAQvC; Mon, 26 Jan 2015 17:09:04 +0100
Message-ID: <54C6669F.7060700@o2.pl>
Date: Mon, 26 Jan 2015 17:09:03 +0100
From: =?UTF-8?B?TWF0ZXVzeiBKb8WEY3p5aw==?= <mat.jonczyk@o2.pl>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: acme@ietf.org
References: <54C4B086.5080005@o2.pl> <CAL02cgTgRGK6Nk958zvWmDCw9ZnyvGRdx9q4hzVWd_fjNLx5Xg@mail.gmail.com>
In-Reply-To: <CAL02cgTgRGK6Nk958zvWmDCw9ZnyvGRdx9q4hzVWd_fjNLx5Xg@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-O2-Trust: 2, 68
X-O2-SPF: notchecked
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/npKjVaR5GZxcl_4JMsaF4UI68AQ>
Subject: Re: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jan 2015 16:09:36 -0000

W dniu 26.01.2015 o 11:33, Richard Barnes pisze:
> Hey Mateusz,
> 
> Thanks a lot for suggesting this.  This sounds like a great idea to me.  Please
> feel free to file an issue on the Github spec -- or send a pull request!
> 
> The only exception that occurs to me is the recoveryToken / recoveryContact
> challenge types.  The recoveryToken challenge is done in-band to ACME, so it's
> already signed with the account key pair.  For recoveryChallenge, I guess you
> could bind in the key pair, but given that it's intended to be more
> human-facing, that seems counterproductive.
> 
> --Richard
> 

I have been thinking about this a bit and have some more crazy ideas:
- why don't we simply demand that a new key is signed with the old one? It's
AFAIK quite standard with key management.

It could be more robust then the current proofOfPossession validation method
(and is very secure even without HTTPS).

- at first use of ACME, the server could validate another key, that would be
only used in the proofOfPossesion method. It wouldn't be deployed on the HTTPS
server and therefore it would be more difficult for an attacker to get it (e.g.
through some recent bug in OpenSSL). In case of that key, longer key lengths
could be used, e.g. 4096 bits could be required.

It may make more sense when the keys are exchanged e.g. once a month or even
every several days (I've seen such proposals as a replacement to key rev lists,
which are currently not very reliable). An attacker that gets access to the
private key will have only a small amount of time to use it.

- the client could send his IP address to the server (possibly as some
validation challenge response) to verify that the client's and server's ideas of
it are the same (and some DNS hijacking isn't going on).

- would it make sense to support the client specifying more stringent
requirements for future key renewals - such as blocking some challenge
combinations that it considers insecure?
	- it may be helpful in the future when new, more secure validation challenges
will be specified and some older clients will not support and the ACME server
will not require them therefore (or some challenges may be specified that will
be more secure but problematic in use),
	- it can be probably easily added in the future, when need arises so I do not
think that it should be added now in order not to overcomplicate the protocol,

- would it make sense to add to the challengeRequest message some information
about the certificate type that is requested, for example an "extended
validation" certificate?

Greetings,
Mateusz


From nobody Mon Jan 26 10:20:46 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 470A91A1F1D for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 10:20:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.977
X-Spam-Level: 
X-Spam-Status: No, score=-0.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.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 8qFY0U7mv3U1 for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 10:20:39 -0800 (PST)
Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6FDCE1A6F1E for <acme@ietf.org>; Mon, 26 Jan 2015 10:20:39 -0800 (PST)
Received: by mail-la0-f49.google.com with SMTP id gf13so9129307lab.8 for <acme@ietf.org>; Mon, 26 Jan 2015 10:20:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gRhkrQc+pwab64n0RGYxEKqNK4K6Kq9UTOvzvZLAbtU=; b=d5mRTawe0euOkmVGCH5GX4N2+Sd3nmkCsoJF9fOhy7x33yfQe6XKAB8qIZljVkv6Aw C5PJOYK1l3uiAyuEcodi638H63mjwyyoGZ98stC1V5fJKE7VQa3olAcjDecFrYFWUlAo Hg9SQyPsBIQ6+oxE0QgKUgWZvkihPYaIzi7pGZXLFlervAzultbibNNX232kwZ+NJJ4o PIM/iqla1YOx9fIZITJaRZPs8u/9Gf38vV93VSpVbI13UnaFcYNRG95rHLeZ8drSdHMv RTT9qHQrCZthn/f/TFOhs1zeGX5/C925bYzrS6WGfZGWxdGZeTCha77p0tDYa7TVVKWB 74RQ==
MIME-Version: 1.0
X-Received: by 10.112.35.165 with SMTP id i5mr13831332lbj.49.1422296437915; Mon, 26 Jan 2015 10:20:37 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Mon, 26 Jan 2015 10:20:37 -0800 (PST)
In-Reply-To: <54C4B086.5080005@o2.pl>
References: <54C4B086.5080005@o2.pl>
Date: Mon, 26 Jan 2015 13:20:37 -0500
X-Google-Sender-Auth: J7sN7sZ7N7FuRBCAuo4u1P_5jus
Message-ID: <CAMm+Lwj9BXeTmVFV=DEY=Cbj9gWyeW9GzxxR7gZ6gaC3ZD7MAA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: =?UTF-8?Q?Mateusz_Jo=C5=84czyk?= <mat.jonczyk@o2.pl>
Content-Type: multipart/alternative; boundary=001a11c36c8cf28656050d923194
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/uVDxS0RJw3cOTrcUx6id5UoIynw>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jan 2015 18:20:41 -0000

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

What is the attack model here? What form of attack is unacceptable?

We have a request for a cert for www.example.com to Alice-Cert. What
attacks do we consider problems?

1) The holder of www.example.com did not authorize any cert binding to that
private key.

2) The holder of www.example.com authorized a cert for that key but it was
for Bob-Cert.

3) The holder of www.example.com thinks they are connecting to Alice-cert
but they are actually connecting to Mallet-Cert.


(1) is very clear problem but (2) is not unless there is an application
that makes use of the certificate without a private key or vice versa. (3)
is going to be trivially solved by checking the issued cert chain.

TLS does not permit certificate substitution attacks.


Binding every communication to a private signing key held by the applicant
is a good idea. Requiring that to be the private key in the cert is a very
bad one. Not least because once we stop using RSA, encryption keys and
signature keys become two different algorithms and there are good privacy
reasons to prefer a key agreement based on encryption and an ephemeral
rather than signature and an ephemeral.

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

<div dir=3D"ltr"><div class=3D"gmail_extra">What is the attack model here? =
What form of attack is unacceptable?</div><div class=3D"gmail_extra"><br></=
div><div class=3D"gmail_extra">We have a request for a cert for <a href=3D"=
http://www.example.com">www.example.com</a> to Alice-Cert. What attacks do =
we consider problems?</div><div class=3D"gmail_extra"><br></div><div class=
=3D"gmail_extra">1) The holder of <a href=3D"http://www.example.com">www.ex=
ample.com</a> did not authorize any cert binding to that private key.</div>=
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">2) The hold=
er of <a href=3D"http://www.example.com">www.example.com</a> authorized a c=
ert for that key but it was for Bob-Cert.</div><div class=3D"gmail_extra"><=
br></div><div class=3D"gmail_extra">3) The holder of <a href=3D"http://www.=
example.com">www.example.com</a> thinks they are connecting to Alice-cert b=
ut they are actually connecting to Mallet-Cert.</div><div class=3D"gmail_ex=
tra"><br></div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_ext=
ra">(1) is very clear problem but (2) is not unless there is an application=
 that makes use of the certificate without a private key or vice versa. (3)=
 is going to be trivially solved by checking the issued cert chain.</div><d=
iv class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">TLS does not =
permit certificate substitution attacks.</div><div class=3D"gmail_extra"><b=
r></div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">Bin=
ding every communication to a private signing key held by the applicant is =
a good idea. Requiring that to be the private key in the cert is a very bad=
 one. Not least because once we stop using RSA, encryption keys and signatu=
re keys become two different algorithms and there are good privacy reasons =
to prefer a key agreement based on encryption and an ephemeral rather than =
signature and an ephemeral.</div><div class=3D"gmail_extra"><br></div></div=
>

--001a11c36c8cf28656050d923194--


From nobody Mon Jan 26 10:47:08 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A774E1ACDD2 for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 10:47:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.7
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 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, MIME_8BIT_HEADER=0.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 cV1F_XVcMYkI for <acme@ietfa.amsl.com>; Mon, 26 Jan 2015 10:47:04 -0800 (PST)
Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [IPv6:2a00:1450:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 592891ACDD6 for <acme@ietf.org>; Mon, 26 Jan 2015 10:46:58 -0800 (PST)
Received: by mail-we0-f170.google.com with SMTP id w55so5339782wes.1 for <acme@ietf.org>; Mon, 26 Jan 2015 10:46:57 -0800 (PST)
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=AvsGfuMV/lgnihvem4ElGa0ufeyHENj5naFFfv8I2LU=; b=xiLQY7Jqo034VO7BGT1ncktR2LMvESfE7Aw5O1kkwlSyNPc0AJU5h4Bj6xhzs9WSvX dVUlhfE99Brg36IFtMxvqUwY2VqArWEngkzhbPVZl0QvJibbt4qa9vSGlE6CL8YjYYmr FikqszsCCtenvRD6SjjvvCOk7Z7sU6h8F7xuuDtnwcHNuxBzyJAMrI5zDhgNhjxTvB10 4i4hsTvqRjLASeVSetzCApW5qSuMO/vAOeIC/pcK+VrKGiYq1nfC/vhojabOMdC7L9z8 RdBBQwwK5+250CbgZbgUvuC9L7NvcdRXUzWRQ0cq5aG1IaXNqFpK1s8rxzmHrlrsAU+p OENQ==
X-Received: by 10.180.91.193 with SMTP id cg1mr25439846wib.26.1422298017125; Mon, 26 Jan 2015 10:46:57 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id dc1sm15006319wib.18.2015.01.26.10.46.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jan 2015 10:46:56 -0800 (PST)
Message-ID: <54C68B9D.4060204@gmail.com>
Date: Mon, 26 Jan 2015 19:46:53 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>, =?UTF-8?B?TWF0ZXVzeiBKbw==?= =?UTF-8?B?xYRjenlr?= <mat.jonczyk@o2.pl>
References: <54C4B086.5080005@o2.pl> <CAMm+Lwj9BXeTmVFV=DEY=Cbj9gWyeW9GzxxR7gZ6gaC3ZD7MAA@mail.gmail.com>
In-Reply-To: <CAMm+Lwj9BXeTmVFV=DEY=Cbj9gWyeW9GzxxR7gZ6gaC3ZD7MAA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/hyNOS0cmnPjd3LpAoowPFsAmLmk>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jan 2015 18:47:05 -0000

http://www.ietf.org/mail-archive/web/acme/current/msg00203.html
Key attestations rocks :-)

On 2015-01-26 19:20, Phillip Hallam-Baker wrote:
> What is the attack model here? What form of attack is unacceptable?
>
> We have a request for a cert for www.example.com <http://www.example.com> to Alice-Cert. What attacks do we consider problems?
>
> 1) The holder of www.example.com <http://www.example.com> did not authorize any cert binding to that private key.
>
> 2) The holder of www.example.com <http://www.example.com> authorized a cert for that key but it was for Bob-Cert.
>
> 3) The holder of www.example.com <http://www.example.com> thinks they are connecting to Alice-cert but they are actually connecting to Mallet-Cert.
>
>
> (1) is very clear problem but (2) is not unless there is an application that makes use of the certificate without a private key or vice versa. (3) is going to be trivially solved by checking the issued cert chain.
>
> TLS does not permit certificate substitution attacks.
>
>
> Binding every communication to a private signing key held by the applicant is a good idea. Requiring that to be the private key in the cert is a very bad one. Not least because once we stop using RSA, encryption keys and signature keys become two different algorithms and there are good privacy reasons to prefer a key agreement based on encryption and an ephemeral rather than signature and an ephemeral.
>
>
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>


From nobody Tue Jan 27 01:18:05 2015
Return-Path: <mat.jonczyk@o2.pl>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABDA61A8770 for <acme@ietfa.amsl.com>; Tue, 27 Jan 2015 01:17:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.185
X-Spam-Level: ****
X-Spam-Status: No, score=4.185 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FREEMAIL_FROM=0.001, HELO_EQ_PL=1.135, HOST_EQ_PL=1.95, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_NONE=-0.0001, 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 e62pczWEYSXD for <acme@ietfa.amsl.com>; Tue, 27 Jan 2015 01:17:47 -0800 (PST)
Received: from moh3-ve1.go2.pl (moh3-ve1.go2.pl [193.17.41.30]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2263F1A1A39 for <acme@ietf.org>; Tue, 27 Jan 2015 01:17:47 -0800 (PST)
Received: from moh3-ve1.go2.pl (unknown [10.0.0.117]) by moh3-ve1.go2.pl (Postfix) with ESMTP id 97689A6A03A for <acme@ietf.org>; Tue, 27 Jan 2015 10:17:42 +0100 (CET)
Received: from unknown (unknown [10.0.0.142]) by moh3-ve1.go2.pl (Postfix) with SMTP for <acme@ietf.org>; Tue, 27 Jan 2015 10:17:42 +0100 (CET)
Received: from dns-failure [83.27.207.158] by poczta.o2.pl with ESMTP id rIYEjS; Tue, 27 Jan 2015 10:17:42 +0100
Message-ID: <54C757B0.7090302@o2.pl>
Date: Tue, 27 Jan 2015 10:17:36 +0100
From: =?UTF-8?B?TWF0ZXVzeiBKb8WEY3p5aw==?= <mat.jonczyk@o2.pl>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>, acme@ietf.org
References: <54C4B086.5080005@o2.pl> <CAMm+Lwj9BXeTmVFV=DEY=Cbj9gWyeW9GzxxR7gZ6gaC3ZD7MAA@mail.gmail.com>
In-Reply-To: <CAMm+Lwj9BXeTmVFV=DEY=Cbj9gWyeW9GzxxR7gZ6gaC3ZD7MAA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-O2-Trust: 2, 65
X-O2-SPF: notchecked
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/uVqLbIfGx2JsmvvDBJFfuOektKw>
Subject: Re: [Acme] Stronger protection against HTTPS MITM
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 09:17:50 -0000

W dniu 26.01.2015 o 19:20, Phillip Hallam-Baker pisze:
> What is the attack model here? What form of attack is unacceptable?
> 
> We have a request for a cert for www.example.com <http://www.example.com> to
> Alice-Cert. What attacks do we consider problems?
> 
> 1) The holder of www.example.com <http://www.example.com> did not authorize any
> cert binding to that private key.
> 
> 2) The holder of www.example.com <http://www.example.com> authorized a cert for
> that key but it was for Bob-Cert.
> 
> 3) The holder of www.example.com <http://www.example.com> thinks they are
> connecting to Alice-cert but they are actually connecting to Mallet-Cert.
> 
> 
> (1) is very clear problem but (2) is not unless there is an application that
> makes use of the certificate without a private key or vice versa. (3) is going
> to be trivially solved by checking the issued cert chain.
> 
> TLS does not permit certificate substitution attacks.
I was thinking about some publicly unknown vulnerability in TLS or its
implementations. So (3) above.


> Binding every communication to a private signing key held by the applicant is a
> good idea. Requiring that to be the private key in the cert is a very bad one.
> Not least because once we stop using RSA, encryption keys and signature keys
> become two different algorithms and there are good privacy reasons to prefer a
> key agreement based on encryption and an ephemeral rather than signature and an
> ephemeral.

I'm sorry, but I don't understand the above paragraph (most importantly, its
context). What are You responding to?


Greetings,
Mateusz


From nobody Wed Jan 28 10:15:04 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 986911A8882; Wed, 28 Jan 2015 10:15:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.323
X-Spam-Level: *
X-Spam-Status: No, score=1.323 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_45=0.6, J_CHICKENPOX_66=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 UqEYRHfX2HHU; Wed, 28 Jan 2015 10:14:59 -0800 (PST)
Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d: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 48AD31A8880; Wed, 28 Jan 2015 10:14:59 -0800 (PST)
Received: by mail-qg0-f46.google.com with SMTP id i50so17816854qgf.5; Wed, 28 Jan 2015 10:14:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:date:message-id:subject:from:to:content-type;  bh=9HLbTIrI7iS62akaHdulhZR8CkLcSN4Xs738HmgYUyw=; b=Zk+Ht1E5ODPiDD90+rb3wrnUDzDBudzzbI9dpkQrXzC4zEV6rnH1Y3NS7IUp3ZFqlO /bY7kqZeBWaof/3x7F41wYrji7VopF7aVrwyiwBIgfBXQX3MUXK/mvs//wix/1VI//ih LkDWfifO/MTD8ERgdubmCTUkyNevIQT68mEpn40QKQuz64sgRGk9z27+Pp7oCLNx8fIJ cI2LjHC4CHvDl/3nWdoNNUc0YswMJKpvA7xt+3Nt48mOWehFysE0po3djbWVgWOd+iV4 mXb/gc53WTf6kBJEm/PllqoYfNVY1hXNBGStMbyXIRA0zQJpdZ2FGwB3o+elg+hPqh8G wgCA==
MIME-Version: 1.0
X-Received: by 10.224.23.6 with SMTP id p6mr16034851qab.55.1422468898210; Wed, 28 Jan 2015 10:14:58 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.140.92.135 with HTTP; Wed, 28 Jan 2015 10:14:58 -0800 (PST)
Date: Wed, 28 Jan 2015 13:14:58 -0500
X-Google-Sender-Auth: WANXu9W7l2p3nQ-iU42BPHhz_4g
Message-ID: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: JSON WG <json@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Content-Type: multipart/alternative; boundary=001a11c2b31c61cacc050dba596f
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/I6dVyn4s--bUHD8JIBG142lZLl0>
Subject: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 18:15:01 -0000

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

All,

I would like to propose a spec similar to the JSON log file spec but with
the purpose of being a container for JSON signatures. The immediate
application for this might be for ACME or other JSON/Rest Web services.

The elevator pitch for the idea is that a JSON Container would be a JSON
Metadata blob with the content being described appended to the end in a way
that makes the separation between content and metadata simple and
unambiguous.

<JSON-BLOB> [Separator] <content-blob>

Advantages:

* Can read the metadata for a file etc with a plain ASCII editor or command
line tools like cat, more, etc.

* Avoids the need to BASE64 armor the content. So if the content is JSON or
other ASCII/Unicode text it remains readable in an ASCII/Unicode editor.

* Can add signatures, digests and other metadata items to content in a
simple regular fashion.

* Content and metadata can be transported as a simple regular blob that is
fully abstracted from and independent of the transport and without the need
for canonicalization, XPath or other complications.


Right now, the IETF spec for describing content metadata is based on
RFC822. And by 'based on', I mean that it is a find the needle in the RFC
haystack approach. RFC822 style content headers as currently used have
several disadvantages:

* It is a flat structure, headers can have attributes but trying to add
more structure is painful.

* It is a historical artifact and content metadata headers are mixed in
with protocol metadata headers without rhyme or reason.

* It is not JSON and JSON is the spec we are now converging on for this
type of work. It has all the expressive capabilities of XML and ASM.1
without the insanities and stupid. It is as easy to read and write as
RFC822 but without the limitations.


The spec itself would be simple, its
basically draft-ietf-json-text-sequence applied to a sequence of one json
object and one content blob.

JSON sequence specifies that "A JSON text sequence consists of any number
of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record
Separator (0x1E), and each ending with an ASCII Line Feed character (0x1A)"

This is not ideal for JSON Container. We would prefer that the character
which is illegal in a JSON document be the one that is the separator
between the header and content.

All indexes used in the metadata header are calculated from the Record
Separator byte, the first byte following being byte 0 and so on.


Applying this in a Web Service is very simple, our messages now have the
form:

POST / HTTP/1.1
Host: example.com
Content-Type: application/json-container
Content-Length: 666

{ "Signature" : "wefwkjefkljwehfjklwhejkflh" }

<0x1E>{ "Service-Type" : "acme.ws",
   "Transaction-ID" : "2h23roih23oih23orh",
   "Register" : { ....<web service parameters here> ... } }

Where <0x1E> is the record separator character.

The scope of the signature is the content, the whole content, AND NOTHING
BUT THE CONTENT. Signing headers is a mugs game. Put all the information
that matters into one blob and sign the blob. Do not present developers
with an IKEA self-assembly job.

So to prevent protocol substitution attacks, the service identifier and the
method name wrap the method parameters. In a response, the service
identifier, response code and transaction ID wrap the response data for the
same reason.


Applying the scheme to stored data in a file system is a little different.
First we have to develop a file extension convention:

file.jpg  becomes file.jpg.jsonc

Many jsonc aware applications will have to share data with applications
that are not aware. So we need the option of storing metadata in a separate
file when that is convenient:

The metadata for file.jpg is stored in file.jsonm

In some circumstances we might want to keep the metadata for all the files
in a directory or tree in one file, a metadata container. This could be
jsonmc.jsonmc appearing in either the directory a file is in or one of the
directories above it.

A metadata container would be a JSON container and begin with the usual
metadata header for that file followed by a JSON sequence of entries per
file. If this contains a signature, the file entries can just be digests.


Notice how we have just developed a format that allows us to sign a
complete code distribution including content data very easily. This is
obviously out of scope for ACME but the fact that an approach transfers so
neatly to a completely different problem suggests that it is the right
track.

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

<div dir=3D"ltr">All,=C2=A0<div><br></div><div>I would like to propose a sp=
ec similar to the JSON log file spec but with the purpose of being a contai=
ner for JSON signatures. The immediate application for this might be for AC=
ME or other JSON/Rest Web services.</div><div><br></div><div>The elevator p=
itch for the idea is that a JSON Container would be a JSON Metadata blob wi=
th the content being described appended to the end in a way that makes the =
separation between content and metadata simple and unambiguous.</div><div><=
br></div><div>&lt;JSON-BLOB&gt; [Separator] &lt;content-blob&gt;</div><div>=
<br></div><div>Advantages:</div><div><br></div><div>* Can read the metadata=
 for a file etc with a plain ASCII editor or command line tools like cat, m=
ore, etc.</div><div><br></div><div>* Avoids the need to BASE64 armor the co=
ntent. So if the content is JSON or other ASCII/Unicode text it remains rea=
dable in an ASCII/Unicode editor.</div><div><br></div><div>* Can add signat=
ures, digests and other metadata items to content in a simple regular fashi=
on.</div><div><br></div><div>* Content and metadata can be transported as a=
 simple regular blob that is fully abstracted from and independent of the t=
ransport and without the need for canonicalization, XPath or other complica=
tions.</div><div><br></div><div><br></div><div>Right now, the IETF spec for=
 describing content metadata is based on RFC822. And by &#39;based on&#39;,=
 I mean that it is a find the needle in the RFC haystack approach. RFC822 s=
tyle content headers as currently used have several disadvantages:</div><di=
v><br></div><div>* It is a flat structure, headers can have attributes but =
trying to add more structure is painful.</div><div><br></div><div>* It is a=
 historical artifact and content metadata headers are mixed in with protoco=
l metadata headers without rhyme or reason.</div><div><br></div><div>* It i=
s not JSON and JSON is the spec we are now converging on for this type of w=
ork. It has all the expressive capabilities of XML and ASM.1 without the in=
sanities and stupid. It is as easy to read and write as RFC822 but without =
the limitations.</div><div><br></div><div><br></div><div>The spec itself wo=
uld be simple, its basically=C2=A0draft-ietf-json-text-sequence applied to =
a sequence of one json object and one content blob.</div><div><br></div><di=
v>JSON sequence specifies that &quot;A JSON text sequence consists of any n=
umber of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record=
 Separator (0x1E), and each ending with an ASCII Line Feed character (0x1A)=
&quot;</div><div><br></div><div>This is not ideal for JSON Container. We wo=
uld prefer that the character which is illegal in a JSON document be the on=
e that is the separator between the header and content.</div><div><br></div=
><div>All indexes used in the metadata header are calculated from the Recor=
d Separator byte, the first byte following being byte 0 and so on.</div><di=
v><br></div><div><br></div><div>Applying this in a Web Service is very simp=
le, our messages now have the form:</div><div><br></div><div>POST / HTTP/1.=
1</div><div>Host: <a href=3D"http://example.com">example.com</a></div><div>=
Content-Type: application/json-container</div><div>Content-Length: 666</div=
><div><br></div><div>{ &quot;Signature&quot; : &quot;wefwkjefkljwehfjklwhej=
kflh&quot; }</div><div><br></div><div>&lt;0x1E&gt;{ &quot;Service-Type&quot=
; : &quot;<a href=3D"http://acme.ws">acme.ws</a>&quot;,</div><div>=C2=A0 =
=C2=A0&quot;Transaction-ID&quot; : &quot;2h23roih23oih23orh&quot;,</div><di=
v>=C2=A0 =C2=A0&quot;Register&quot; : { ....&lt;web service parameters here=
&gt; ... } }</div><div><br></div><div>Where &lt;0x1E&gt; is the record sepa=
rator character.</div><div><br></div><div>The scope of the signature is the=
 content, the whole content, AND NOTHING BUT THE CONTENT. Signing headers i=
s a mugs game. Put all the information that matters into one blob and sign =
the blob. Do not present developers with an IKEA self-assembly job.<br></di=
v><div><br></div><div>So to prevent protocol substitution attacks, the serv=
ice identifier and the method name wrap the method parameters. In a respons=
e, the service identifier, response code and transaction ID wrap the respon=
se data for the same reason.</div><div><br></div><div><br></div><div>Applyi=
ng the scheme to stored data in a file system is a little different. First =
we have to develop a file extension convention:</div><div><br></div><div>fi=
le.jpg =C2=A0becomes file.jpg.jsonc</div><div><br></div><div>Many jsonc awa=
re applications will have to share data with applications that are not awar=
e. So we need the option of storing metadata in a separate file when that i=
s convenient:</div><div><br></div><div>The metadata for file.jpg is stored =
in file.jsonm<br></div><div><br></div><div>In some circumstances we might w=
ant to keep the metadata for all the files in a directory or tree in one fi=
le, a metadata container. This could be jsonmc.jsonmc appearing in either t=
he directory a file is in or one of the directories above it.</div><div><br=
></div><div>A metadata container would be a JSON container and begin with t=
he usual metadata header for that file followed by a JSON sequence of entri=
es per file. If this contains a signature, the file entries can just be dig=
ests.</div><div><br></div><div><br></div><div>Notice how we have just devel=
oped a format that allows us to sign a complete code distribution including=
 content data very easily. This is obviously out of scope for ACME but the =
fact that an approach transfers so neatly to a completely different problem=
 suggests that it is the right track.</div><div><br></div><div><br></div></=
div>

--001a11c2b31c61cacc050dba596f--


From nobody Wed Jan 28 13:04:55 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9654C1A038E; Wed, 28 Jan 2015 13:04:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.6
X-Spam-Level: 
X-Spam-Status: No, score=0.6 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_45=0.6, J_CHICKENPOX_66=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 CLUfyFVZxgha; Wed, 28 Jan 2015 13:04:45 -0800 (PST)
Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 914651A005C; Wed, 28 Jan 2015 13:04:45 -0800 (PST)
Received: by mail-wg0-f54.google.com with SMTP id b13so22564952wgh.13; Wed, 28 Jan 2015 13:04:44 -0800 (PST)
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=P82BhOBcVbI7dwDUkeRFTqs0fjeQtyo8bkTufWubGA0=; b=LXh7qaUWnjg0unRh/bTfpVeSLZTlFj530ovvoVA4WmVwunNSJJEei+o2C8PMvUyCGE +8cFxXWnefir4yopChnteNIWvO4KyocXWlNbK4cC89fgzOmamwY/5b1AeZT64JqGOvHo 2WCv80v8XKnWGYjqfJQpHDUCmKijB1lRUVQVpTh/dQDkVpyROMvhXZBLSxN6Eqg2yRt8 0rmkeY3KZwkw48NCa1uYlzCV5hbkL8oEV8qL7GdGMhISBw/aJjKzRJSmAYuvsPF9xlMq GmLffI74YgQqeyKr5s4+4V9AefCiFFEmUizxpkJrpuTfu5TQa9Lj0FUaFfFyB1+O+823 AhPA==
X-Received: by 10.194.57.43 with SMTP id f11mr11316566wjq.6.1422479084353; Wed, 28 Jan 2015 13:04:44 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id et4sm7664077wjd.15.2015.01.28.13.04.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 13:04:43 -0800 (PST)
Message-ID: <54C94EE6.8000208@gmail.com>
Date: Wed, 28 Jan 2015 22:04:38 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Phillip Hallam-Baker <phill@hallambaker.com>,  "jose@ietf.org" <jose@ietf.org>, "acme@ietf.org" <acme@ietf.org>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
In-Reply-To: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/qtR3SL27CmnlMYL2Qnb-xasUpy8>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 21:04:50 -0000

Hi Lists,

As expected the flood of various JSON clear-text signature schemes would come sooner rather than later :-)

Which one is best?  Well that would be comparing oranges with apples and personally I prefer strawberries!

Cheers,
Anders

On 2015-01-28 19:14, Phillip Hallam-Baker wrote:
> All,
>
> I would like to propose a spec similar to the JSON log file spec but with the purpose of being a container for JSON signatures. The immediate application for this might be for ACME or other JSON/Rest Web services.
>
> The elevator pitch for the idea is that a JSON Container would be a JSON Metadata blob with the content being described appended to the end in a way that makes the separation between content and metadata simple and unambiguous.
>
> <JSON-BLOB> [Separator] <content-blob>
>
> Advantages:
>
> * Can read the metadata for a file etc with a plain ASCII editor or command line tools like cat, more, etc.
>
> * Avoids the need to BASE64 armor the content. So if the content is JSON or other ASCII/Unicode text it remains readable in an ASCII/Unicode editor.
>
> * Can add signatures, digests and other metadata items to content in a simple regular fashion.
>
> * Content and metadata can be transported as a simple regular blob that is fully abstracted from and independent of the transport and without the need for canonicalization, XPath or other complications.
>
>
> Right now, the IETF spec for describing content metadata is based on RFC822. And by 'based on', I mean that it is a find the needle in the RFC haystack approach. RFC822 style content headers as currently used have several disadvantages:
>
> * It is a flat structure, headers can have attributes but trying to add more structure is painful.
>
> * It is a historical artifact and content metadata headers are mixed in with protocol metadata headers without rhyme or reason.
>
> * It is not JSON and JSON is the spec we are now converging on for this type of work. It has all the expressive capabilities of XML and ASM.1 without the insanities and stupid. It is as easy to read and write as RFC822 but without the limitations.
>
>
> The spec itself would be simple, its basically draft-ietf-json-text-sequence applied to a sequence of one json object and one content blob.
>
> JSON sequence specifies that "A JSON text sequence consists of any number of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record Separator (0x1E), and each ending with an ASCII Line Feed character (0x1A)"
>
> This is not ideal for JSON Container. We would prefer that the character which is illegal in a JSON document be the one that is the separator between the header and content.
>
> All indexes used in the metadata header are calculated from the Record Separator byte, the first byte following being byte 0 and so on.
>
>
> Applying this in a Web Service is very simple, our messages now have the form:
>
> POST / HTTP/1.1
> Host: example.com <http://example.com>
> Content-Type: application/json-container
> Content-Length: 666
>
> { "Signature" : "wefwkjefkljwehfjklwhejkflh" }
>
> <0x1E>{ "Service-Type" : "acme.ws <http://acme.ws>",
>     "Transaction-ID" : "2h23roih23oih23orh",
>     "Register" : { ....<web service parameters here> ... } }
>
> Where <0x1E> is the record separator character.
>
> The scope of the signature is the content, the whole content, AND NOTHING BUT THE CONTENT. Signing headers is a mugs game. Put all the information that matters into one blob and sign the blob. Do not present developers with an IKEA self-assembly job.
>
> So to prevent protocol substitution attacks, the service identifier and the method name wrap the method parameters. In a response, the service identifier, response code and transaction ID wrap the response data for the same reason.
>
>
> Applying the scheme to stored data in a file system is a little different. First we have to develop a file extension convention:
>
> file.jpg  becomes file.jpg.jsonc
>
> Many jsonc aware applications will have to share data with applications that are not aware. So we need the option of storing metadata in a separate file when that is convenient:
>
> The metadata for file.jpg is stored in file.jsonm
>
> In some circumstances we might want to keep the metadata for all the files in a directory or tree in one file, a metadata container. This could be jsonmc.jsonmc appearing in either the directory a file is in or one of the directories above it.
>
> A metadata container would be a JSON container and begin with the usual metadata header for that file followed by a JSON sequence of entries per file. If this contains a signature, the file entries can just be digests.
>
>
> Notice how we have just developed a format that allows us to sign a complete code distribution including content data very easily. This is obviously out of scope for ACME but the fact that an approach transfers so neatly to a completely different problem suggests that it is the right track.
>
>
>
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>


From nobody Wed Jan 28 14:43:55 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C41C41A1AD3; Wed, 28 Jan 2015 14:43:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6nVJaxwQW4og; Wed, 28 Jan 2015 14:43:50 -0800 (PST)
Received: from homiemail-a103.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id B7CA71A1AB9; Wed, 28 Jan 2015 14:43:50 -0800 (PST)
Received: from homiemail-a103.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a103.g.dreamhost.com (Postfix) with ESMTP id 7F2BF2005E609; Wed, 28 Jan 2015 14:43:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=iHi19S9EBgDxe8 fxfILPQABaB9M=; b=gyvPrQamHqg9DSW6YvzZQ+ZID3VEiUWDhBy0MDF0ShJhng 00HdW6JoDE+mEf7zc1IREkDGsAac/fM9EkJ8GlSZSh9wS+2niOGCqKRhLrrLDfKD wC+J/wHF6nxaHHM5uslM+Y/U520OmrHdC18b1/tRIWTIm9rP8uf6wUHEYPaUg=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a103.g.dreamhost.com (Postfix) with ESMTPA id 21F3E2005E607; Wed, 28 Jan 2015 14:43:50 -0800 (PST)
Date: Wed, 28 Jan 2015 16:43:49 -0600
From: Nico Williams <nico@cryptonector.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Message-ID: <20150128224346.GF3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/TNVJ8pSkca9Fs6xl7IkJJF076_w>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 22:43:52 -0000

On Wed, Jan 28, 2015 at 01:14:58PM -0500, Phillip Hallam-Baker wrote:
> <JSON-BLOB> [Separator] <content-blob>

I'll bite.

Why not:

<metadata JSON> <separator> <signature> <content>

> Advantages:
> 
> * Can read the metadata for a file etc with a plain ASCII editor or command
> line tools like cat, more, etc.
> 
> * Avoids the need to BASE64 armor the content. So if the content is JSON or
> other ASCII/Unicode text it remains readable in an ASCII/Unicode editor.

Why even have to base64-encode the signature?

> * Can add signatures, digests and other metadata items to content in a
> simple regular fashion.

Ah.  Hmm, right!  It'd have ot be:

<metadata JSON> <separator> <signature> <content> [<extra signatures>]

or

<metadata JSON> <separator> <content> [<signatures>]

or as you suggest, put the [base64-encoded] signatures in the metadata.

> Right now, the IETF spec for describing content metadata is based on
> RFC822. And by 'based on', I mean that it is a find the needle in the RFC
> haystack approach. RFC822 style content headers as currently used have
> several disadvantages:
> 
> * It is a flat structure, headers can have attributes but trying to add
> more structure is painful.

Flat structure has its advantages.

A while back I posted a list of kinds of encodings, asking if there was
any I'd missed.  I did miss one important one myself: Lustre's RPC.

Lustre's RPC doesn't support seqeuences-within-sequences-within-
sequences like all the others do.  It's more like a single top-level
sequence of fixed- and variable-length things, where the fixed-length
ones contain C-like structs (with all-fixed-length fields), and the
variable-length ones containing only things like filenames.  (Bulk data
is sent separately, via RDMA-like protocols.)

The main advantage to this is that all the critical length checks go in
one place in the code.

Whereas a JSON blob is not flat.  It could be arbitrarily deep.

> * It is a historical artifact and content metadata headers are mixed in
> with protocol metadata headers without rhyme or reason.
> 
> * It is not JSON and JSON is the spec we are now converging on for this
> type of work. It has all the expressive capabilities of XML and ASM.1
> without the insanities and stupid. It is as easy to read and write as
> RFC822 but without the limitations.

Meh.  It's just one of many suitable encodings.  Pick one, any one.

> The spec itself would be simple, its
> basically draft-ietf-json-text-sequence applied to a sequence of one json
> object and one content blob.

Pretty much, yes (but it's not the same: the blob would not be a JSON
blob).

> JSON sequence specifies that "A JSON text sequence consists of any number
> of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record
> Separator (0x1E), and each ending with an ASCII Line Feed character (0x1A)"
> 
> This is not ideal for JSON Container. We would prefer that the character
> which is illegal in a JSON document be the one that is the separator
> between the header and content.

Just make it:

RS JSON-blob LF FS content

(That would be as close as this could get to being a JSON text
sequence while also being sufficiently different.)

> Applying this in a Web Service is very simple, our messages now have the
> form:
> 
> POST / HTTP/1.1
> Host: example.com
> Content-Type: application/json-container
> Content-Length: 666
> 
> { "Signature" : "wefwkjefkljwehfjklwhejkflh" }
> 
> <0x1E>{ "Service-Type" : "acme.ws",
>    "Transaction-ID" : "2h23roih23oih23orh",
>    "Register" : { ....<web service parameters here> ... } }

OK, but why not put all of this into the headers anyways?

> Notice how we have just developed a format that allows us to sign a
> complete code distribution including content data very easily. This is
> obviously out of scope for ACME but the fact that an approach transfers so
> neatly to a completely different problem suggests that it is the right
> track.

Wasn't JOSE about this sort of thing?

Nico
-- 


From nobody Wed Jan 28 15:12:17 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 315D21A1DBE; Wed, 28 Jan 2015 15:12:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NkeGYY-PUa1q; Wed, 28 Jan 2015 15:12:13 -0800 (PST)
Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1EF8F1A1C05; Wed, 28 Jan 2015 15:11:47 -0800 (PST)
Received: by mail-qg0-f43.google.com with SMTP id e89so20983405qgf.2; Wed, 28 Jan 2015 15:11:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=IUL+IEcBquHXAvrM0Xi/raXVR+EqesKAloNSVJ2J+jQ=; b=yKLAoAF8ckvK0yaWlYkLT9eXz7R+TxspOwkQV3Ee2LqqEbEafgROoTWkfuYZoz0t1M cwyR4X4/5k8LpNZmphGYhOnZnQ4VgTzrFFk758zQgAEmEl5jGXuOW/ESDfci6D90JRZM bRvcSJy7BSB9NbgCdnAC1feeDZWVXm7Dxwonv5WXLxiP6EAbyrnWEZH3f8T67ILZwQS6 h1AEU2ubyOsnW4ZAzLemnvx0+F81BXYv5n7WPnm6/oFvpigWSQunHcAmRIHb+6Oj6OtW lkvIeyXDmeu0nmZXzDmz6+Zq6T9jvexSJa+muEuce5ndZ6rmUgWs6y86Rx3PmuAY9PIj FOdw==
MIME-Version: 1.0
X-Received: by 10.140.34.67 with SMTP id k61mr185420qgk.95.1422486706287; Wed, 28 Jan 2015 15:11:46 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.140.92.135 with HTTP; Wed, 28 Jan 2015 15:11:46 -0800 (PST)
In-Reply-To: <20150128224346.GF3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <20150128224346.GF3110@localhost>
Date: Wed, 28 Jan 2015 18:11:46 -0500
X-Google-Sender-Auth: 1eqYfxIYgYSMv1u7dRuGpKJoU4s
Message-ID: <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: multipart/alternative; boundary=001a11c0dd5cd394f4050dbe7ea1
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/zJsnPZremaCvSQFVJ3DDj-Qm2Pc>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 23:12:15 -0000

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

On Wed, Jan 28, 2015 at 5:43 PM, Nico Williams <nico@cryptonector.com>
wrote:

> On Wed, Jan 28, 2015 at 01:14:58PM -0500, Phillip Hallam-Baker wrote:
> > <JSON-BLOB> [Separator] <content-blob>
>
> I'll bite.
>
> Why not:
>
> <metadata JSON> <separator> <signature> <content>
>
> > Advantages:
> >
> > * Can read the metadata for a file etc with a plain ASCII editor or
> command
> > line tools like cat, more, etc.
> >
> > * Avoids the need to BASE64 armor the content. So if the content is JSON
> or
> > other ASCII/Unicode text it remains readable in an ASCII/Unicode editor.
>
> Why even have to base64-encode the signature?
>
> > * Can add signatures, digests and other metadata items to content in a
> > simple regular fashion.
>
> Ah.  Hmm, right!  It'd have ot be:
>


> <metadata JSON> <separator> <signature> <content> [<extra signatures>]
>
> or
>
> <metadata JSON> <separator> <content> [<signatures>]
>
> or as you suggest, put the [base64-encoded] signatures in the metadata.


Yep, that is the reason for doing it the way proposed. It is really useful
and necessary to have multiple signatures on the same content. This allows
for multiple algorithms, multiple signers, etc. Or just a signature and a
digest.




> > * It is a historical artifact and content metadata headers are mixed in
> > with protocol metadata headers without rhyme or reason.
> >
> > * It is not JSON and JSON is the spec we are now converging on for this
> > type of work. It has all the expressive capabilities of XML and ASM.1
> > without the insanities and stupid. It is as easy to read and write as
> > RFC822 but without the limitations.
>
> Meh.  It's just one of many suitable encodings.  Pick one, any one.


They seem to have picked JSON. Or S-expressions with curly braces if you
like to look at them that way...



> > JSON sequence specifies that "A JSON text sequence consists of any number
> > of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record
> > Separator (0x1E), and each ending with an ASCII Line Feed character
> (0x1A)"
> >
> > This is not ideal for JSON Container. We would prefer that the character
> > which is illegal in a JSON document be the one that is the separator
> > between the header and content.
>
> Just make it:
>
> RS JSON-blob LF FS content
>
> (That would be as close as this could get to being a JSON text
> sequence while also being sufficiently different.)


Works for me. If we are using RS, might as well use FS.



>
> > Applying this in a Web Service is very simple, our messages now have the
> > form:
> >
> > POST / HTTP/1.1
> > Host: example.com
> > Content-Type: application/json-container
> > Content-Length: 666
> >
> > { "Signature" : "wefwkjefkljwehfjklwhejkflh" }
> >
> > <0x1E>{ "Service-Type" : "acme.ws",
> >    "Transaction-ID" : "2h23roih23oih23orh",
> >    "Register" : { ....<web service parameters here> ... } }
>
> OK, but why not put all of this into the headers anyways?


Well that is what I suggested in my Content-Signature work and that is
exactly how my code works today. But folk proposed introducing the
signature in the HTTP content segment and that forced me to think about
which approach is better.

I think I can make a good architectural argument for the JSON Container
approach and besides which it is really useful at the file system level.
Separating out protocol data from content-metadata is long overdue.



>
> > Notice how we have just developed a format that allows us to sign a
> > complete code distribution including content data very easily. This is
> > obviously out of scope for ACME but the fact that an approach transfers
> so
> > neatly to a completely different problem suggests that it is the right
> > track.
>
> Wasn't JOSE about this sort of thing?
>

Sort of. That might be where we eventually do the work. But the
requirements would be ACME in the first instance and the constraints from
JSON. I would see JOSE as being something we just plop in and should work
(or else they have some splainin' to do.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 28, 2015 at 5:43 PM, Nico Williams <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:nico@cryptonector.com" target=3D"_blank">nico@cryptonector.=
com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jan 28,=
 2015 at 01:14:58PM -0500, Phillip Hallam-Baker wrote:<br>
&gt; &lt;JSON-BLOB&gt; [Separator] &lt;content-blob&gt;<br>
<br>
I&#39;ll bite.<br>
<br>
Why not:<br>
<br>
&lt;metadata JSON&gt; &lt;separator&gt; &lt;signature&gt; &lt;content&gt;<b=
r>
<span class=3D""><br>
&gt; Advantages:<br>
&gt;<br>
&gt; * Can read the metadata for a file etc with a plain ASCII editor or co=
mmand<br>
&gt; line tools like cat, more, etc.<br>
&gt;<br>
&gt; * Avoids the need to BASE64 armor the content. So if the content is JS=
ON or<br>
&gt; other ASCII/Unicode text it remains readable in an ASCII/Unicode edito=
r.<br>
<br>
</span>Why even have to base64-encode the signature?<br>
<span class=3D""><br>
&gt; * Can add signatures, digests and other metadata items to content in a=
<br>
&gt; simple regular fashion.<br>
<br>
</span>Ah.=C2=A0 Hmm, right!=C2=A0 It&#39;d have ot be:<br></blockquote><di=
v>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">
&lt;metadata JSON&gt; &lt;separator&gt; &lt;signature&gt; &lt;content&gt; [=
&lt;extra signatures&gt;]<br>
<br>
or<br>
<br>
&lt;metadata JSON&gt; &lt;separator&gt; &lt;content&gt; [&lt;signatures&gt;=
]<br>
<br>
or as you suggest, put the [base64-encoded] signatures in the metadata.</bl=
ockquote><div><br></div><div>Yep, that is the reason for doing it the way p=
roposed. It is really useful and necessary to have multiple signatures on t=
he same content. This allows for multiple algorithms, multiple signers, etc=
. Or just a signature and a digest.</div><div><br></div><div><br></div><div=
>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><span class=3D"">
&gt; * It is a historical artifact and content metadata headers are mixed i=
n<br>
&gt; with protocol metadata headers without rhyme or reason.<br>
&gt;<br>
&gt; * It is not JSON and JSON is the spec we are now converging on for thi=
s<br>
&gt; type of work. It has all the expressive capabilities of XML and ASM.1<=
br>
&gt; without the insanities and stupid. It is as easy to read and write as<=
br>
&gt; RFC822 but without the limitations.<br>
<br>
</span>Meh.=C2=A0 It&#39;s just one of many suitable encodings.=C2=A0 Pick =
one, any one.</blockquote><div><br></div><div>They seem to have picked JSON=
. Or S-expressions with curly braces if you like to look at them that way..=
.</div><div><br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span=
 class=3D"">
&gt; JSON sequence specifies that &quot;A JSON text sequence consists of an=
y number<br>
&gt; of JSON texts, all encoded in UTF-8, each prefixed by an ASCII Record<=
br>
&gt; Separator (0x1E), and each ending with an ASCII Line Feed character (0=
x1A)&quot;<br>
&gt;<br>
&gt; This is not ideal for JSON Container. We would prefer that the charact=
er<br>
&gt; which is illegal in a JSON document be the one that is the separator<b=
r>
&gt; between the header and content.<br>
<br>
</span>Just make it:<br>
<br>
RS JSON-blob LF FS content<br>
<br>
(That would be as close as this could get to being a JSON text<br>
sequence while also being sufficiently different.)</blockquote><div><br></d=
iv><div>Works for me. If we are using RS, might as well use FS.</div><div><=
br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D""><=
br>
&gt; Applying this in a Web Service is very simple, our messages now have t=
he<br>
&gt; form:<br>
&gt;<br>
&gt; POST / HTTP/1.1<br>
&gt; Host: <a href=3D"http://example.com" target=3D"_blank">example.com</a>=
<br>
&gt; Content-Type: application/json-container<br>
&gt; Content-Length: 666<br>
&gt;<br>
&gt; { &quot;Signature&quot; : &quot;wefwkjefkljwehfjklwhejkflh&quot; }<br>
&gt;<br>
&gt; &lt;0x1E&gt;{ &quot;Service-Type&quot; : &quot;<a href=3D"http://acme.=
ws" target=3D"_blank">acme.ws</a>&quot;,<br>
&gt;=C2=A0 =C2=A0 &quot;Transaction-ID&quot; : &quot;2h23roih23oih23orh&quo=
t;,<br>
&gt;=C2=A0 =C2=A0 &quot;Register&quot; : { ....&lt;web service parameters h=
ere&gt; ... } }<br>
<br>
</span>OK, but why not put all of this into the headers anyways?</blockquot=
e><div><br></div><div>Well that is what I suggested in my Content-Signature=
 work and that is exactly how my code works today. But folk proposed introd=
ucing the signature in the HTTP content segment and that forced me to think=
 about which approach is better.</div><div><br></div><div>I think I can mak=
e a good architectural argument for the JSON Container approach and besides=
 which it is really useful at the file system level. Separating out protoco=
l data from content-metadata is long overdue.</div><div><br></div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><span class=3D""><br>
&gt; Notice how we have just developed a format that allows us to sign a<br=
>
&gt; complete code distribution including content data very easily. This is=
<br>
&gt; obviously out of scope for ACME but the fact that an approach transfer=
s so<br>
&gt; neatly to a completely different problem suggests that it is the right=
<br>
&gt; track.<br>
<br>
</span>Wasn&#39;t JOSE about this sort of thing?<br></blockquote><div><br><=
/div><div>Sort of. That might be where we eventually do the work. But the r=
equirements would be ACME in the first instance and the constraints from JS=
ON. I would see JOSE as being something we just plop in and should work (or=
 else they have some splainin&#39; to do.=C2=A0</div></div></div></div>

--001a11c0dd5cd394f4050dbe7ea1--


From nobody Wed Jan 28 15:20:21 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0318B1A6F11; Wed, 28 Jan 2015 15:20:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.266
X-Spam-Level: 
X-Spam-Status: No, score=-0.266 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rQXkDiocyaZb; Wed, 28 Jan 2015 15:20:07 -0800 (PST)
Received: from homiemail-a72.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 2DB0B1A6EE8; Wed, 28 Jan 2015 15:20:07 -0800 (PST)
Received: from homiemail-a72.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a72.g.dreamhost.com (Postfix) with ESMTP id 0CF786B007C; Wed, 28 Jan 2015 15:20:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=K2sOGVTeuiv0z9 UvBEQGDyzkRFo=; b=nF7LfR+dMIsAzQ2eORlBR/ZUovByAvxQ1tgm62RSqi8oHv MPPRx1kdF11ln4atUlbOBn5i+aJgD4rBNeDkpXPRH9IRMOjKpF0HkK/seJ7k04J2 8/CXKWYHQZD9sT5IY3589Ghdxi22+J01ViBrwfBj6IbaGjgkQGW3KNqUEiwrI=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a72.g.dreamhost.com (Postfix) with ESMTPA id A578C6B0070; Wed, 28 Jan 2015 15:20:06 -0800 (PST)
Date: Wed, 28 Jan 2015 17:20:06 -0600
From: Nico Williams <nico@cryptonector.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Message-ID: <20150128232002.GK3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <20150128224346.GF3110@localhost> <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/l6Jis4OVTdTxP-K5nWHwKryu06c>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Jan 2015 23:20:08 -0000

On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wrote:
> > OK, but why not put all of this into the headers anyways?
> 
> Well that is what I suggested in my Content-Signature work and that is
> exactly how my code works today. But folk proposed introducing the
> signature in the HTTP content segment and that forced me to think about
> which approach is better.

Your approach looks like a Transfer-Encoding to me.  If that's what it
looks like, and that's what it walks like, [and that's what we want,]
then that's what it should be.

> I think I can make a good architectural argument for the JSON Container
> approach and besides which it is really useful at the file system level.

You want the contents of the object to include the signature??

I mean, I've wanted filesystems to expose some internal metadata (e.g.,
a Merkle hash tree root hash for a file's content, with those parameters
needed to reconstruct the same hash from just the contents, namely, the
shape of the tree and the size of each non-tail block of contents).  But
making this part of the contents instead of the metadata strikes me as
rather problematic.

> Separating out protocol data from content-metadata is long overdue.

Maybe, but I do want POSIX to continue not commingling contents and
metadata.

> > > Notice how we have just developed a format that allows us to sign a
> > > complete code distribution including content data very easily. This is
> > > obviously out of scope for ACME but the fact that an approach transfers
> > so
> > > neatly to a completely different problem suggests that it is the right
> > > track.
> >
> > Wasn't JOSE about this sort of thing?
> 
> Sort of. That might be where we eventually do the work. But the
> requirements would be ACME in the first instance and the constraints from
> JSON. I would see JOSE as being something we just plop in and should work
> (or else they have some splainin' to do.

I meant: why not use whatever JOSE delivered?

Nico
-- 


From nobody Wed Jan 28 16:50:37 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 308F61A89F9; Wed, 28 Jan 2015 16:50:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X_d40UuSEpgC; Wed, 28 Jan 2015 16:50:31 -0800 (PST)
Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29EC21A89F5; Wed, 28 Jan 2015 16:50:31 -0800 (PST)
Received: by mail-lb0-f181.google.com with SMTP id u10so22885105lbd.12; Wed, 28 Jan 2015 16:50:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=8IHKtDulHZ3pr6Lvf+6Ks+u4DOxg7m6CKyG+b5t1qBY=; b=ZnJDbXOEOp38MdTVVBOiAqjGL/u/ok10ijuCX2Yl6tX5mzc5aI0CVwLJXfAB6my4It 9HGs6muJaZEG5i0Xy04w2ERgqy26RFB+c3c/rai7A9bM4GTzlbF8HTgwDCR/iz8HN0Im Xm0M9MuWdffm9obMVXM38wvm6F4TnPCdvGOtI6pUe4so2eIKNgEKwFC5MA+eQK+fbCmf S7Bblpq7LuH2cAb24CfX/2B84y0v/V+pwq5Uw93HCf4+jfGDX7DTmdy3zLS5txXepLVr Yj3/LrtaeQOffufkOTZOXCDTJKoiW7U+zQh0mGxKx1pZxKSiCgTSLYDPlOH+uPt3HAUH //XA==
MIME-Version: 1.0
X-Received: by 10.152.6.101 with SMTP id z5mr11488611laz.19.1422492629635; Wed, 28 Jan 2015 16:50:29 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Wed, 28 Jan 2015 16:50:29 -0800 (PST)
In-Reply-To: <20150128232002.GK3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <20150128224346.GF3110@localhost> <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com> <20150128232002.GK3110@localhost>
Date: Wed, 28 Jan 2015 19:50:29 -0500
X-Google-Sender-Auth: 55pjeCe_2ljr5Et8gteW8IP7trQ
Message-ID: <CAMm+LwjN_6cbLfq4NAHQ0U=pRjV-ksLDZX+CEBs42m72p5GVJA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: multipart/alternative; boundary=089e01494332e29b00050dbfdf8c
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/rfH8jtvZsEC1dtaqm4Nw0AlGpMg>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 00:50:33 -0000

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

On Wed, Jan 28, 2015 at 6:20 PM, Nico Williams <nico@cryptonector.com>
wrote:

> On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wrote:
> > > OK, but why not put all of this into the headers anyways?
> >
> > Well that is what I suggested in my Content-Signature work and that is
> > exactly how my code works today. But folk proposed introducing the
> > signature in the HTTP content segment and that forced me to think about
> > which approach is better.
>
> Your approach looks like a Transfer-Encoding to me.  If that's what it
> looks like, and that's what it walks like, [and that's what we want,]
> then that's what it should be.


Umm, I designed the Chunked transfer encoding. A TE gives the length of
blobs. This is not a TE.



>
> > I think I can make a good architectural argument for the JSON Container
> > approach and besides which it is really useful at the file system level.
>
> You want the contents of the object to include the signature??
>

No, I want the option of doing drag and drop on the file plus metadata blob
in a fully interoperable fashion. So the contents are still the contents.
But they are prefixed by the metadata.




> I mean, I've wanted filesystems to expose some internal metadata (e.g.,
> a Merkle hash tree root hash for a file's content, with those parameters
> needed to reconstruct the same hash from just the contents, namely, the
> shape of the tree and the size of each non-tail block of contents).  But
> making this part of the contents instead of the metadata strikes me as
> rather problematic.


It isn't making it part of the contents. Metadata is still metadata.

Trying to get the file system to support additional semantics is a losing
proposition. And even if they are supported they won't be standard across
all the platforms.



>
> > Separating out protocol data from content-metadata is long overdue.
>
> Maybe, but I do want POSIX to continue not commingling contents and
> metadata.


I want POSIX to curl up in the corner and die.

Co-mingling the contents and metadata are an inevitable consequence of
considering files to just be a stream of bits. inside the container is the
only place that metadata can go.

UNIX has had horrid kludges for putting metadata into the content since the
start. Thats what magic numbers are.

> Sort of. That might be where we eventually do the work. But the
> > requirements would be ACME in the first instance and the constraints from
> > JSON. I would see JOSE as being something we just plop in and should work
> > (or else they have some splainin' to do.
>
> I meant: why not use whatever JOSE delivered?
>

Base64 encoding the content so as to be able to work out the boundaries.
Blech.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 28, 2015 at 6:20 PM, Nico Williams <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:nico@cryptonector.com" target=3D"_blank">nico@cryptonector.=
com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"=
">On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wrote:<br>
&gt; &gt; OK, but why not put all of this into the headers anyways?<br>
&gt;<br>
&gt; Well that is what I suggested in my Content-Signature work and that is=
<br>
&gt; exactly how my code works today. But folk proposed introducing the<br>
&gt; signature in the HTTP content segment and that forced me to think abou=
t<br>
&gt; which approach is better.<br>
<br>
</span>Your approach looks like a Transfer-Encoding to me.=C2=A0 If that&#3=
9;s what it<br>
looks like, and that&#39;s what it walks like, [and that&#39;s what we want=
,]<br>
then that&#39;s what it should be.</blockquote><div><br></div><div>Umm, I d=
esigned the Chunked transfer encoding. A TE gives the length of blobs. This=
 is not a TE.</div><div><br></div><div>=C2=A0</div><blockquote class=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex"><span class=3D""><br>
&gt; I think I can make a good architectural argument for the JSON Containe=
r<br>
&gt; approach and besides which it is really useful at the file system leve=
l.<br>
<br>
</span>You want the contents of the object to include the signature??<br></=
blockquote><div><br></div><div>No, I want the option of doing drag and drop=
 on the file plus metadata blob in a fully interoperable fashion. So the co=
ntents are still the contents. But they are prefixed by the metadata.=C2=A0=
</div><div><br></div><div><br></div><div>=C2=A0</div><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex">
I mean, I&#39;ve wanted filesystems to expose some internal metadata (e.g.,=
<br>
a Merkle hash tree root hash for a file&#39;s content, with those parameter=
s<br>
needed to reconstruct the same hash from just the contents, namely, the<br>
shape of the tree and the size of each non-tail block of contents).=C2=A0 B=
ut<br>
making this part of the contents instead of the metadata strikes me as<br>
rather problematic.</blockquote><div><br></div><div>It isn&#39;t making it =
part of the contents. Metadata is still metadata.</div><div><br></div><div>=
Trying to get the file system to support additional semantics is a losing p=
roposition. And even if they are supported they won&#39;t be standard acros=
s all the platforms.</div><div><br></div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><span class=3D""><br>
&gt; Separating out protocol data from content-metadata is long overdue.<br=
>
<br>
</span>Maybe, but I do want POSIX to continue not commingling contents and<=
br>
metadata.</blockquote><div><br></div><div>I want POSIX to curl up in the co=
rner and die.</div><div><br></div><div>Co-mingling the contents and metadat=
a are an inevitable consequence of considering files to just be a stream of=
 bits. inside the container is the only place that metadata can go.=C2=A0</=
div><div><br></div><div>UNIX has had horrid kludges for putting metadata in=
to the content since the start. Thats what magic numbers are.</div><div><br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex"><span class=3D"">&gt; Sort of. That m=
ight be where we eventually do the work. But the<br>
&gt; requirements would be ACME in the first instance and the constraints f=
rom<br>
&gt; JSON. I would see JOSE as being something we just plop in and should w=
ork<br>
&gt; (or else they have some splainin&#39; to do.<br>
<br>
</span>I meant: why not use whatever JOSE delivered?<br></blockquote><div><=
br></div><div>Base64 encoding the content so as to be able to work out the =
boundaries. Blech.=C2=A0</div></div></div></div>

--089e01494332e29b00050dbfdf8c--


From nobody Wed Jan 28 16:54:06 2015
Return-Path: <nico@cryptonector.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 716451A8A06; Wed, 28 Jan 2015 16:54:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level: 
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9_c_xy-1Q6Em; Wed, 28 Jan 2015 16:54:02 -0800 (PST)
Received: from homiemail-a66.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id BD3191A8A04; Wed, 28 Jan 2015 16:54:02 -0800 (PST)
Received: from homiemail-a66.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTP id 846D0350079; Wed, 28 Jan 2015 16:54:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=TcVAyb1T4mG26q UTWA0hpD+NSbc=; b=u/y40u7/PwgVReVs2KhUdb7qwxzTh7euYqLynsSecNg0jy sq35e0DbRYCCsK9sP5WQo3mKE3f9Cr8FWNWgrBGue41EMHPUwPB2pJOB6iVEQbAc 2NevLjeHMIHvD6b9vkfY6fDEvZPGv3OGEDrZP7xec28ZXY4bBSUsYMTpUThWA=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a66.g.dreamhost.com (Postfix) with ESMTPA id 31F4535005B; Wed, 28 Jan 2015 16:54:02 -0800 (PST)
Date: Wed, 28 Jan 2015 18:54:01 -0600
From: Nico Williams <nico@cryptonector.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Message-ID: <20150129005357.GM3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <20150128224346.GF3110@localhost> <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com> <20150128232002.GK3110@localhost> <CAMm+LwjN_6cbLfq4NAHQ0U=pRjV-ksLDZX+CEBs42m72p5GVJA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMm+LwjN_6cbLfq4NAHQ0U=pRjV-ksLDZX+CEBs42m72p5GVJA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/IQ2Vh_U5tLm69lVJH4QdxEMTYCM>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 00:54:03 -0000

On Wed, Jan 28, 2015 at 07:50:29PM -0500, Phillip Hallam-Baker wrote:
> On Wed, Jan 28, 2015 at 6:20 PM, Nico Williams <nico@cryptonector.com>
> wrote:
> 
> > On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wrote:
> > > > OK, but why not put all of this into the headers anyways?
> > >
> > > Well that is what I suggested in my Content-Signature work and that is
> > > exactly how my code works today. But folk proposed introducing the
> > > signature in the HTTP content segment and that forced me to think about
> > > which approach is better.
> >
> > Your approach looks like a Transfer-Encoding to me.  If that's what it
> > looks like, and that's what it walks like, [and that's what we want,]
> > then that's what it should be.
> 
> 
> Umm, I designed the Chunked transfer encoding. A TE gives the length of
> blobs. This is not a TE.

So it's a new MIME type of signed data?

OK.

> > I meant: why not use whatever JOSE delivered?
> 
> Base64 encoding the content so as to be able to work out the boundaries.
> Blech.

That's what I thought.  Base64 avoidance for bulk sounds good to me.

Nico
-- 


From nobody Wed Jan 28 17:02:16 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7938B1A0032; Wed, 28 Jan 2015 17:02:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1tLyGgJsUgU; Wed, 28 Jan 2015 17:02:13 -0800 (PST)
Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CFC871A8A47; Wed, 28 Jan 2015 17:02:02 -0800 (PST)
Received: by mail-lb0-f171.google.com with SMTP id u14so22862920lbd.2; Wed, 28 Jan 2015 17:02:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=kOF2LvEcRH4mNh6pgbdE0vnW8+ciQT4XDu/xnwJMh6s=; b=S2F4fqMmyx4bJlMBtOOBcSiZpWjfQcPXVohgdhC67xrNJdgHX99eA9zRbj1LTZmKwe c+bEIXMF6k0Yfx/LwU+h7rxlPsI7xK/rQLBlx1gdWE8wbAXc8AnpsVhgkPn/zUXWxrX8 9mw/vQCO4XGuafvX29AnyNRYHjOnE+cE56h6Ex7NcRF4Xr09gsqNqwB0Q6tDPcKi6Hkj HotCSOPxC2NaLdhpdERTEnq4mb3SGUHe7dy/pir9addorYLOPHToZgrvmg55k00aSW+j uHtrlq89Fa6oGWXRktglerzSLyo3rJFSsaifuQEsPWEz/+pk+zWSnp6TZLM2QiRAv1aw dG9Q==
MIME-Version: 1.0
X-Received: by 10.112.162.226 with SMTP id yd2mr11558683lbb.1.1422493321183; Wed, 28 Jan 2015 17:02:01 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Wed, 28 Jan 2015 17:02:01 -0800 (PST)
In-Reply-To: <20150129005357.GM3110@localhost>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <20150128224346.GF3110@localhost> <CAMm+LwhJ7Nuxk==T2x+pst020QQb6jc5NWTN6PtGS_YAEWS6Vg@mail.gmail.com> <20150128232002.GK3110@localhost> <CAMm+LwjN_6cbLfq4NAHQ0U=pRjV-ksLDZX+CEBs42m72p5GVJA@mail.gmail.com> <20150129005357.GM3110@localhost>
Date: Wed, 28 Jan 2015 20:02:01 -0500
X-Google-Sender-Auth: bZVPLqcK5PkTA2e2WfrL_BB-BlU
Message-ID: <CAMm+LwjqZ70AQ-VErfTLM4hmzrV-uWaR=nZNvc3U7oDYJQtU3Q@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Nico Williams <nico@cryptonector.com>
Content-Type: multipart/alternative; boundary=089e0112c86c1afde6050dc0098b
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/esSStuwlTc4EqvTE_eCrbjjxUpI>
Cc: "acme@ietf.org" <acme@ietf.org>, JSON WG <json@ietf.org>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 01:02:14 -0000

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

On Wed, Jan 28, 2015 at 7:54 PM, Nico Williams <nico@cryptonector.com>
wrote:

> On Wed, Jan 28, 2015 at 07:50:29PM -0500, Phillip Hallam-Baker wrote:
> > On Wed, Jan 28, 2015 at 6:20 PM, Nico Williams <nico@cryptonector.com>
> > wrote:
> >
> > > On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wrote:
> > > > > OK, but why not put all of this into the headers anyways?
> > > >
> > > > Well that is what I suggested in my Content-Signature work and that
> is
> > > > exactly how my code works today. But folk proposed introducing the
> > > > signature in the HTTP content segment and that forced me to think
> about
> > > > which approach is better.
> > >
> > > Your approach looks like a Transfer-Encoding to me.  If that's what it
> > > looks like, and that's what it walks like, [and that's what we want,]
> > > then that's what it should be.
> >
> >
> > Umm, I designed the Chunked transfer encoding. A TE gives the length of
> > blobs. This is not a TE.
>
> So it's a new MIME type of signed data?
>

A  new MIME type of JSON wrapped data similar to the rfc822 type.

The content could be encrypted for example or just be the metadata.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 28, 2015 at 7:54 PM, Nico Williams <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:nico@cryptonector.com" target=3D"_blank">nico@cryptonector.=
com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"=
">On Wed, Jan 28, 2015 at 07:50:29PM -0500, Phillip Hallam-Baker wrote:<br>
&gt; On Wed, Jan 28, 2015 at 6:20 PM, Nico Williams &lt;<a href=3D"mailto:n=
ico@cryptonector.com">nico@cryptonector.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Wed, Jan 28, 2015 at 06:11:46PM -0500, Phillip Hallam-Baker wr=
ote:<br>
&gt; &gt; &gt; &gt; OK, but why not put all of this into the headers anyway=
s?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Well that is what I suggested in my Content-Signature work a=
nd that is<br>
&gt; &gt; &gt; exactly how my code works today. But folk proposed introduci=
ng the<br>
&gt; &gt; &gt; signature in the HTTP content segment and that forced me to =
think about<br>
&gt; &gt; &gt; which approach is better.<br>
&gt; &gt;<br>
&gt; &gt; Your approach looks like a Transfer-Encoding to me.=C2=A0 If that=
&#39;s what it<br>
&gt; &gt; looks like, and that&#39;s what it walks like, [and that&#39;s wh=
at we want,]<br>
&gt; &gt; then that&#39;s what it should be.<br>
&gt;<br>
&gt;<br>
&gt; Umm, I designed the Chunked transfer encoding. A TE gives the length o=
f<br>
&gt; blobs. This is not a TE.<br>
<br>
</span>So it&#39;s a new MIME type of signed data?<br></blockquote><div><br=
></div><div>A =C2=A0new MIME type of JSON wrapped data similar to the rfc82=
2 type.</div><div><br></div><div>The content could be encrypted for example=
 or just be the metadata.</div><div><br></div></div></div></div>

--089e0112c86c1afde6050dc0098b--


From nobody Wed Jan 28 18:35:05 2015
Return-Path: <rlb@ipv.sx>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D2F561A8AD9 for <acme@ietfa.amsl.com>; Wed, 28 Jan 2015 18:35:02 -0800 (PST)
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 j8CAQYrFDMIF for <acme@ietfa.amsl.com>; Wed, 28 Jan 2015 18:35:00 -0800 (PST)
Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69CC91A8ADE for <acme@ietf.org>; Wed, 28 Jan 2015 18:34:59 -0800 (PST)
Received: by mail-lb0-f180.google.com with SMTP id b6so23405570lbj.11 for <acme@ietf.org>; Wed, 28 Jan 2015 18:34:57 -0800 (PST)
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:content-type; bh=X/1NEDW/vD1WkFs11Qsl/YJIFiuwD986qlmvANjRJJw=; b=ElyCPp64lCXbBBGiVCHy4+GxoKqqCfTGBIS7tC3h/+EUaaT8HRkghRVcCk4Ysp9oaQ AKZ1aFv9NKLityaxX2QtEg0cg7wUp6kKEE6VmOCuVmqKorJe9KpLV21jIPbJZOmjqISJ LHZbf4gwVCslXl2kIhDYKVkXZyBzmSUHPGEKlRF48cHmYu2wFohWVnik70g8gQdzQTv+ JMVUROYA4MpCCv4CUwf+VQ5KMHmrn8hCJCDUioal6ZHp81aOlNxkOdyd8buyccMwFnX8 nc0UZIVlJFwoibI1QUrV7+yw9clHV5P6wvcb6C2id2NLdGBO5yDi0IuBElU/MskqKoU2 PgdQ==
X-Gm-Message-State: ALoCoQmgjKcex1lnnXfDqw3LsLEWw2T0Pbq8Kc5acXZZKAu/fiB7/9mz5iZIMZCcdhlQnKbh8es5
MIME-Version: 1.0
X-Received: by 10.152.185.72 with SMTP id fa8mr11678236lac.73.1422498897703; Wed, 28 Jan 2015 18:34:57 -0800 (PST)
Received: by 10.25.201.86 with HTTP; Wed, 28 Jan 2015 18:34:57 -0800 (PST)
In-Reply-To: <20150129023217.18836.2032.idtracker@ietfa.amsl.com>
References: <20150129023217.18836.2032.idtracker@ietfa.amsl.com>
Date: Wed, 28 Jan 2015 21:34:57 -0500
Message-ID: <CAL02cgR-V1T5exZmMP6yG4Bv2A+JZf2n0JG6XunQcoA8MbU68w@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: "acme@ietf.org" <acme@ietf.org>
Content-Type: multipart/alternative; boundary=001a113683ea7e3cfc050dc155c5
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/QNfEWEUWw5yuVOodmEEQr54Avr8>
Subject: [Acme] Fwd: New Version Notification for draft-barnes-acme-01.txt
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 02:35:03 -0000

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

Hey all,

FYI, I have just submitted two versions of ACME as I-Ds.  The -00 version
is the protocol as we first announced it, with a few bug fixes.  Version
-01 is a redesign with a more RESTful architecture.

FWIW, I think the -01 version is the current implementation target for
Let's Encrypt.  But I wanted to get both versions in the archive so that
people can compare and contrast.

--Richard


---------- Forwarded message ----------
From: <internet-drafts@ietf.org>
Date: Wed, Jan 28, 2015 at 9:32 PM
Subject: New Version Notification for draft-barnes-acme-01.txt
To: Alex Halderman <jhalderm@eecs.umich.edu>, James Kasten <
jdkasten@umich.edu>, Richard Barnes <rlb@ipv.sx>, Seth Schoen <
schoen@eff.org>, Peter Eckersley <pde@eff.org>



A new version of I-D, draft-barnes-acme-01.txt
has been successfully submitted by Richard Barnes and posted to the
IETF repository.

Name:           draft-barnes-acme
Revision:       01
Title:          Automatic Certificate Management Environment (ACME)
Document date:  2015-01-28
Group:          Individual Submission
Pages:          33
URL:            http://www.ietf.org/internet-drafts/draft-barnes-acme-01.txt
Status:         https://datatracker.ietf.org/doc/draft-barnes-acme/
Htmlized:       http://tools.ietf.org/html/draft-barnes-acme-01
Diff:           http://www.ietf.org/rfcdiff?url2=draft-barnes-acme-01

Abstract:
   Certificates in the Web's X.509 PKI (PKIX) are used for a number of
   purposes, the most significant of which is the authentication of
   domain names.  Thus, certificate authorities in the Web PKI are
   trusted to verify that an applicant for a certificate legitimately
   represents the domain name(s) in the certificate.  Today, this
   verification is done through a collection of ad hoc mechanisms.  This
   document describes a protocol that a certificate authority (CA) and
   an applicant can use to automate the process of verification and
   certificate issuance.  The protocol also provides facilities for
   other certificate management functions, such as certificate
   revocation.




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.

The IETF Secretariat

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

<div dir=3D"ltr">Hey all,<div><br></div><div>FYI, I have just submitted two=
 versions of ACME as I-Ds.=C2=A0 The -00 version is the protocol as we firs=
t announced it, with a few bug fixes.=C2=A0 Version -01 is a redesign with =
a more RESTful architecture.</div><div><br></div><div>FWIW, I think the -01=
 version is the current implementation target for Let&#39;s Encrypt.=C2=A0 =
But I wanted to get both versions in the archive so that people can compare=
 and contrast.</div><div><br></div><div>--Richard</div><div><br></div><div>=
<br><div class=3D"gmail_quote">---------- Forwarded message ----------<br>F=
rom: <b class=3D"gmail_sendername"></b> <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:internet-drafts@ietf.org">internet-drafts@ietf.org</a>&gt;</span><br>D=
ate: Wed, Jan 28, 2015 at 9:32 PM<br>Subject: New Version Notification for =
draft-barnes-acme-01.txt<br>To: Alex Halderman &lt;<a href=3D"mailto:jhalde=
rm@eecs.umich.edu">jhalderm@eecs.umich.edu</a>&gt;, James Kasten &lt;<a hre=
f=3D"mailto:jdkasten@umich.edu">jdkasten@umich.edu</a>&gt;, Richard Barnes =
&lt;rlb@ipv.sx&gt;, Seth Schoen &lt;<a href=3D"mailto:schoen@eff.org">schoe=
n@eff.org</a>&gt;, Peter Eckersley &lt;<a href=3D"mailto:pde@eff.org">pde@e=
ff.org</a>&gt;<br><br><br><br>
A new version of I-D, draft-barnes-acme-01.txt<br>
has been successfully submitted by Richard Barnes and posted to the<br>
IETF repository.<br>
<br>
Name:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0draft-barnes-acme<br>
Revision:=C2=A0 =C2=A0 =C2=A0 =C2=A001<br>
Title:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Automatic Certificate Management E=
nvironment (ACME)<br>
Document date:=C2=A0 2015-01-28<br>
Group:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Individual Submission<br>
Pages:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 33<br>
URL:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://www.ietf.or=
g/internet-drafts/draft-barnes-acme-01.txt" target=3D"_blank">http://www.ie=
tf.org/internet-drafts/draft-barnes-acme-01.txt</a><br>
Status:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://datatracker.iet=
f.org/doc/draft-barnes-acme/" target=3D"_blank">https://datatracker.ietf.or=
g/doc/draft-barnes-acme/</a><br>
Htmlized:=C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://tools.ietf.org/html/d=
raft-barnes-acme-01" target=3D"_blank">http://tools.ietf.org/html/draft-bar=
nes-acme-01</a><br>
Diff:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"http://www.ietf.or=
g/rfcdiff?url2=3Ddraft-barnes-acme-01" target=3D"_blank">http://www.ietf.or=
g/rfcdiff?url2=3Ddraft-barnes-acme-01</a><br>
<br>
Abstract:<br>
=C2=A0 =C2=A0Certificates in the Web&#39;s X.509 PKI (PKIX) are used for a =
number of<br>
=C2=A0 =C2=A0purposes, the most significant of which is the authentication =
of<br>
=C2=A0 =C2=A0domain names.=C2=A0 Thus, certificate authorities in the Web P=
KI are<br>
=C2=A0 =C2=A0trusted to verify that an applicant for a certificate legitima=
tely<br>
=C2=A0 =C2=A0represents the domain name(s) in the certificate.=C2=A0 Today,=
 this<br>
=C2=A0 =C2=A0verification is done through a collection of ad hoc mechanisms=
.=C2=A0 This<br>
=C2=A0 =C2=A0document describes a protocol that a certificate authority (CA=
) and<br>
=C2=A0 =C2=A0an applicant can use to automate the process of verification a=
nd<br>
=C2=A0 =C2=A0certificate issuance.=C2=A0 The protocol also provides facilit=
ies for<br>
=C2=A0 =C2=A0other certificate management functions, such as certificate<br=
>
=C2=A0 =C2=A0revocation.<br>
<br>
<br>
<br>
<br>
Please note that it may take a couple of minutes from the time of submissio=
n<br>
until the htmlized version and diff are available at <a href=3D"http://tool=
s.ietf.org" target=3D"_blank">tools.ietf.org</a>.<br>
<br>
The IETF Secretariat<br>
<br>
</div><br></div></div>

--001a113683ea7e3cfc050dc155c5--


From nobody Wed Jan 28 18:51:24 2015
Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BA1471A8AE1; Wed, 28 Jan 2015 18:51:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.299
X-Spam-Level: 
X-Spam-Status: No, score=0.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HTML_MESSAGE=0.001, J_CHICKENPOX_45=0.6, J_CHICKENPOX_66=0.6, RCVD_IN_DNSWL_LOW=-0.7, 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 LYn17R88D8Sg; Wed, 28 Jan 2015 18:51:17 -0800 (PST)
Received: from ipxcno.tcif.telstra.com.au (ipxcno.tcif.telstra.com.au [203.35.82.208]) by ietfa.amsl.com (Postfix) with ESMTP id CA3FC1A8ADC; Wed, 28 Jan 2015 18:51:16 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.09,484,1418043600";  d="scan'208,217";a="238511957"
Received: from unknown (HELO ipcdni.tcif.telstra.com.au) ([10.97.216.212]) by ipocni.tcif.telstra.com.au with ESMTP; 29 Jan 2015 13:32:56 +1100
X-IronPort-AV: E=McAfee;i="5600,1067,7695"; a="229447894"
Received: from wsmsg3705.srv.dir.telstra.com ([172.49.40.203]) by ipcdni.tcif.telstra.com.au with ESMTP; 29 Jan 2015 13:51:15 +1100
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3705.srv.dir.telstra.com ([172.49.40.203]) with mapi; Thu, 29 Jan 2015 13:51:15 +1100
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>, JSON WG <json@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Date: Thu, 29 Jan 2015 13:51:13 +1100
Thread-Topic: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
Thread-Index: AdA7Jll5lOzfaDYxToiTs6qbsClkAAAOI9oA
Message-ID: <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com>
In-Reply-To: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.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_255B9BB34FB7D647A506DC292726F6E1284ED9AA38WSMSG3153Vsrv_"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/eOxPnIkgz7nnPiUFVFq34P7mUuo>
Subject: Re: [Acme] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 02:51:21 -0000

--_000_255B9BB34FB7D647A506DC292726F6E1284ED9AA38WSMSG3153Vsrv_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

QSBzaWduZWQgSkFSIGZpbGUgbWVldHMgc29tZSBvZiB0aGVzZSByZXF1aXJlbWVudHMuDQpNZXRh
ZGF0YSBhbmQgc2lnbmF0dXJlcyBhcmUgaW4gZXh0cmEgZmlsZXMgaW4gdGhlIFpJUCBhcmNoaXZl
OiBNRVRBLUlORi9NQU5JRkVTVC5NRiwgTUVUQS1JTkYvTVlLRVkuU0YsIE1FVEEtSU5GL01ZS0VZ
LlJTQS4NCkNvbnRlbnQgaXMgdGhlIG90aGVyIGZpbGVzIGluIHRoZSBhcmNoaXZlLg0KSXQgaXMg
bm90IEpTT04gb2YgY291cnNlLCBhbmQgdGhlIHNpZ25hdHVyZSAmIGNlcnRzIGFyZSBwYWNrYWdl
ZCBpbiBBU04uMSwgYnV0IGl0IGlzIGEgdXNlZnVsIGNvbXBhcmlzb24uIEl0IGF2b2lkcyBCQVNF
NjQgb24gdGhlIGNvbnRlbnQ7IGNhbiBhZGRzIHNpZ25hdHVyZXMsIGRpZ2VzdHMsIGFuZCBvdGhl
ciBtZXRhZGF0YTsgY2FuIHRyYW5zcG9ydCBjb250ZW50IGFuZCBtZXRhZGF0YSBhcyBhIHJlZ3Vs
YXIgYmxvYiAoKi5qYXIgZmlsZSk7IGNhbiBzaWduIGNvbXBsZXRlIGNvZGUgZGlzdHJpYnV0aW9u
cy4NCg0KLS0NCkphbWVzIE1hbmdlcg0KDQpGcm9tOiBBY21lIFttYWlsdG86YWNtZS1ib3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ZW50IGRhdGEgdmVyeSBlYXNpbHkuIFRoaXMgaXMgb2J2aW91c2x5
IG91dCBvZiBzY29wZSBmb3IgQUNNRSBidXQgdGhlIGZhY3QgdGhhdCBhbiBhcHByb2FjaCB0cmFu
c2ZlcnMgc28gbmVhdGx5IHRvIGEgY29tcGxldGVseSBkaWZmZXJlbnQgcHJvYmxlbSBzdWdnZXN0
cyB0aGF0IGl0IGlzIHRoZSByaWdodCB0cmFjay48bzpwPjwvbzpwPjwvcD48L2Rpdj48ZGl2Pjxw
IGNsYXNzPU1zb05vcm1hbD48bzpwPiZuYnNwOzwvbzpwPjwvcD48L2Rpdj48ZGl2PjxwIGNsYXNz
PU1zb05vcm1hbD48bzpwPiZuYnNwOzwvbzpwPjwvcD48L2Rpdj48L2Rpdj48L2Rpdj48L2JvZHk+
PC9odG1sPg==

--_000_255B9BB34FB7D647A506DC292726F6E1284ED9AA38WSMSG3153Vsrv_--


From nobody Wed Jan 28 20:03:34 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 63BBA1A1B51; Wed, 28 Jan 2015 20:03:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3rWn0tl79PhR; Wed, 28 Jan 2015 20:03:07 -0800 (PST)
Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3B1FB1A1AB4; Wed, 28 Jan 2015 20:03:07 -0800 (PST)
Received: by mail-lb0-f179.google.com with SMTP id 10so23904772lbg.10; Wed, 28 Jan 2015 20:03:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=N+ZIj/d932Tc08iUr4zlvf9TYblAQ6UWIR3f+CS1vX8=; b=Jj1OSf/i/kQCW7RjgupJhIUrGVBpZT9TOP1scEd+3+mO42c3luvIvghOzrH3PBEIVa AlRVFQ9pK61+fOHGf7j7Rgl3u2wVRhTb8Ozs4w/UMkdYKD8RijRZxKlHaYgV6e9ImQJO sHQ8q08smKIi9zny5f0tAxVN3YkZGbkUFN/V9f5YzDRHDIiNVaRU6GF07OEuTSzxOfSh NrgJVUBaGoTqRRER6v5Fm+q3XXfzxBsIR48QJX84GuAUEFAFNrgPFhby/RIiAg7y/q9B sVcO+/sEkjnGIBpGLvV21i1trn0B8F4sTbESKKSyHhQPrLrh2ImdfN14uCx5yMiGJi14 dOzw==
MIME-Version: 1.0
X-Received: by 10.152.29.193 with SMTP id m1mr12014457lah.84.1422504185595; Wed, 28 Jan 2015 20:03:05 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Wed, 28 Jan 2015 20:03:05 -0800 (PST)
In-Reply-To: <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com>
Date: Wed, 28 Jan 2015 23:03:05 -0500
X-Google-Sender-Auth: 4t53TvsEJNw0e6zH8ipqvXcFy0U
Message-ID: <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Nat Sakimura <sakimura@gmail.com>
Content-Type: multipart/alternative; boundary=089e0158bf4cac8bec050dc2904a
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/IDEiECE--6kaVu3uIsjoRL9Vp8w>
Cc: "acme@ietf.org" <acme@ietf.org>, "Manger, James" <James.H.Manger@team.telstra.com>, JSON WG <json@ietf.org>
Subject: Re: [Acme] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 04:03:11 -0000

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

On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <sakimura@gmail.com> wrote:

> On a side note: if such a spec is to be defined here, IMHO, it should use
> the algorithms and probably header parameters specified by JWA, etc. It
> should limit the scope to payload processing and expression of the entire
> thing in JSON Log like format, and leave the rest to JOSE.
>

Absolutely. In fact that is why I am not raising it in JOSE as that just
provides the format for the main crypto attributes.






> On Thu Jan 29 2015 at 11:51:24 Manger, James <
> James.H.Manger@team.telstra.com> wrote:
>
>> A signed JAR file meets some of these requirements.
>>
>> Metadata and signatures are in extra files in the ZIP archive:
>> META-INF/MANIFEST.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.
>>
>> Content is the other files in the archive.
>>
>> It is not JSON of course, and the signature & certs are packaged in
>> ASN.1, but it is a useful comparison. It avoids BASE64 on the content; can
>> adds signatures, digests, and other metadata; can transport content and
>> metadata as a regular blob (*.jar file); can sign complete code
>> distributions.
>>
>>
>>
I have used signed jar files. But Sun rather poisoned the well there by
suing Microsoft over control of Java followed up by further lawsuits from
Oracle.

I can't imagine anyone is going to accept Jar or anything involving
assinine.1 as a wire format for packaging. Those days are long past. The
way you get coherence is to pick one encoding and stick to it. JSON seems
to have been the one we picked. It has all the functionality offered by the
alternatives and none of the drawbacks.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <span dir=3D"ltr">&lt;<a =
href=3D"mailto:sakimura@gmail.com" target=3D"_blank">sakimura@gmail.com</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">On a side note: if suc=
h a spec is to be defined here, IMHO, it should use the algorithms and prob=
ably header parameters specified by JWA, etc. It should limit the scope to =
payload processing and expression of the entire thing in JSON Log like form=
at, and leave the rest to JOSE.<br></blockquote><div><br></div><div>Absolut=
ely. In fact that is why I am not raising it in JOSE as that just provides =
the format for the main crypto attributes.=C2=A0</div><div><br></div><div><=
br></div><div><br></div><div><br></div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div class=3D"gmail_quote"><div><div class=3D"h5">On Thu Jan =
29 2015 at 11:51:24 Manger, James &lt;<a href=3D"mailto:James.H.Manger@team=
.telstra.com" target=3D"_blank">James.H.Manger@team.telstra.com</a>&gt; wro=
te:<br></div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"h5"><div la=
ng=3D"EN-AU" link=3D"blue" vlink=3D"purple"><p class=3D"MsoNormal"><span st=
yle=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&qu=
ot;;color:#1f497d">A signed JAR file meets some of these requirements.<u></=
u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Metad=
ata and signatures are in extra files in the ZIP archive: META-INF/MANIFEST=
.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.<u></u><u></u></span></p><p clas=
s=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Calibri&q=
uot;,&quot;sans-serif&quot;;color:#1f497d">Content is the other files in th=
e archive.<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"fo=
nt-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color=
:#1f497d">It is not JSON of course, and the signature &amp; certs are packa=
ged in ASN.1, but it is a useful comparison. It avoids BASE64 on the conten=
t; can adds signatures, digests, and other metadata; can transport content =
and metadata as a regular blob (*.jar file); can sign complete code distrib=
utions.<u></u><u></u></span></p><p class=3D"MsoNormal"><br></p></div></div>=
</blockquote></div></blockquote><div><br></div><div>I have used signed jar =
files. But Sun rather poisoned the well there by suing Microsoft over contr=
ol of Java followed up by further lawsuits from Oracle.</div><div><br></div=
><div>I can&#39;t imagine anyone is going to accept Jar or anything involvi=
ng assinine.1 as a wire format for packaging. Those days are long past. The=
 way you get coherence is to pick one encoding and stick to it. JSON seems =
to have been the one we picked. It has all the functionality offered by the=
 alternatives and none of the drawbacks.</div><div>=C2=A0</div></div></div>=
</div>

--089e0158bf4cac8bec050dc2904a--


From nobody Wed Jan 28 20:25:54 2015
Return-Path: <frase@frase.id.au>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89CF21A1B74; Wed, 28 Jan 2015 20:25:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.628
X-Spam-Level: *
X-Spam-Status: No, score=1.628 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HOST_EQ_STATIC=1.172, 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 ADGR7OdzgLuX; Wed, 28 Jan 2015 20:25:51 -0800 (PST)
Received: from captainmorgan.hollandpark.frase.id.au (110-174-235-130.static.tpgi.com.au [110.174.235.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E90CF1A1AB4; Wed, 28 Jan 2015 20:25:50 -0800 (PST)
Received: from bacardi.hollandpark.frase.id.au (bacardi.hollandpark.frase.id.au [192.168.0.100]) by captainmorgan.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0T4PF7p036188; Thu, 29 Jan 2015 14:25:15 +1000 (EST) (envelope-from frase@frase.id.au)
Received: from bacardi.hollandpark.frase.id.au (localhost [127.0.0.1]) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0T4PFnJ004856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 29 Jan 2015 14:25:15 +1000 (EST) (envelope-from frase@frase.id.au)
Received: (from fraser@localhost) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9/Submit) id t0T4P9xr004855; Thu, 29 Jan 2015 14:25:09 +1000 (EST) (envelope-from frase@frase.id.au)
X-Authentication-Warning: bacardi.hollandpark.frase.id.au: fraser set sender to frase@frase.id.au using -f
Date: Thu, 29 Jan 2015 14:25:09 +1000
From: Fraser Tweedale <frase@frase.id.au>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Message-ID: <20150129042508.GA4845@bacardi.hollandpark.frase.id.au>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm"
Content-Disposition: inline
In-Reply-To: <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/RQJBZj2FQznt6BCRdkhi4eqI4EM>
Cc: "Manger, James" <James.H.Manger@team.telstra.com>, "acme@ietf.org" <acme@ietf.org>, Nat Sakimura <sakimura@gmail.com>, JSON WG <json@ietf.org>
Subject: Re: [Acme] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 04:25:52 -0000

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 28, 2015 at 11:03:05PM -0500, Phillip Hallam-Baker wrote:
> On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <sakimura@gmail.com> wrote:
>=20
> > On a side note: if such a spec is to be defined here, IMHO, it should u=
se
> > the algorithms and probably header parameters specified by JWA, etc. It
> > should limit the scope to payload processing and expression of the enti=
re
> > thing in JSON Log like format, and leave the rest to JOSE.
> >
>=20
> Absolutely. In fact that is why I am not raising it in JOSE as that just
> provides the format for the main crypto attributes.
>=20
>=20
>=20
>=20
>=20
>=20
> > On Thu Jan 29 2015 at 11:51:24 Manger, James <
> > James.H.Manger@team.telstra.com> wrote:
> >
> >> A signed JAR file meets some of these requirements.
> >>
> >> Metadata and signatures are in extra files in the ZIP archive:
> >> META-INF/MANIFEST.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.
> >>
> >> Content is the other files in the archive.
> >>
> >> It is not JSON of course, and the signature & certs are packaged in
> >> ASN.1, but it is a useful comparison. It avoids BASE64 on the content;=
 can
> >> adds signatures, digests, and other metadata; can transport content and
> >> metadata as a regular blob (*.jar file); can sign complete code
> >> distributions.
> >>
> >>
> >>
> I have used signed jar files. But Sun rather poisoned the well there by
> suing Microsoft over control of Java followed up by further lawsuits from
> Oracle.
>=20
> I can't imagine anyone is going to accept Jar or anything involving
> assinine.1 as a wire format for packaging. Those days are long past. The
> way you get coherence is to pick one encoding and stick to it. JSON seems
> to have been the one we picked. It has all the functionality offered by t=
he
> alternatives and none of the drawbacks.

There are =E2=88=9E valid ways to serialise a JSON object.  If a JSON object
is signed over, it must be canonicalised, or signed over and
transported in serialised form.  JOSE takes the latter approach
(base64url-encoded serialised JSON object, inside a JSON object),
while JWK thumbprint draft uses canonicalisation.  ASN.1 encodings
and deterministic binary serialisations can avoid the need for these
sorts of hacks.

I agree the JSON ship has sailed, but there *are* drawbacks.

Regards,
Fraser

> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme


--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature

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

iQIcBAEBCgAGBQJUybYiAAoJEEtTkFJBEeHiZboP/ixGct5l+DmLVt8MW/bAGgWX
Yw/EW282qrzKfNVjgzuG6fQVPqUr7QVH6SRPCr7Rx4vZSlI+N9NmG+ySHon9Lhjc
4Hr9rLa1zyk6Lj7ZXAo24MmiKoHwDd0MdXOMymS/VjHXLLXmZONnqswLQ7NG9CeS
0xyuVO2DfuSyUfBlBoyngaZbExoLnbcRVVA9dgMBg8k3okcccYS+VuhH2evm6yo2
s7IO5w6xp5HqyVkM1SxC0fYIDILIikPMBYTivCSZVrQ/iW9TN+t5gJx6DhTr+sgL
MyPlFbgEDYN8haXov9NwMxsrpjSQIZdNtjD7jv2TFUcZKFXgHB82UPlQ7p8pr+pU
qFbvj935946N1ctRzSCHpEOubLXnaMp6cUxiDqf+GtOw13y7EcAa3tDVj/UNHuGf
PI0uPbrWJcjWW33p3T9EZCzM08jlHXgjyIJ6yPNlxQP6+uP9brJnFlwVoRUup4bB
b5eJyes2vH4iTDhlZ7zxXr+/KDUCARtlV+sfeYYbEHjh7nQO5Au6HiRun9bLdmgo
8mNDD/yXmtfCoXVve8p2YQsd2mI7nsqnTlRYYgWXYImvkz3GPOtcvOlYPb/FjW6t
pdF4/x77p/YHjnS51rIZvJd5fsh9ZDHi/JUT1O4JWc/rlciZpPtXDv/PzTd22OFz
37rD1NYbk3KPD7VMyXuy
=PtXX
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--


From nobody Wed Jan 28 21:38:58 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E9F761A8BC1; Wed, 28 Jan 2015 21:38:55 -0800 (PST)
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 bsOdZ3hEJoQ3; Wed, 28 Jan 2015 21:38:52 -0800 (PST)
Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (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 5EAA51A8BB1; Wed, 28 Jan 2015 21:38:52 -0800 (PST)
Received: by mail-wi0-f170.google.com with SMTP id bs8so4767616wib.1; Wed, 28 Jan 2015 21:38:51 -0800 (PST)
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=g+Wal+x6H83KcEl3DvwZ2gitgI5r3t3f2meSx5Ch+CY=; b=qncVj/JPPT8lzv+hiZO0sph45Pyglt6iDBpEWTf18p04P50VarYzRnPt+LqZqVFNq1 M7zHrH2IKC8Gq97uWz4wDX1fZiE8iB8o7Gont21su73HFiDBa0Ar5IUT/qXsA122MtYD /vlSAZ2AmUEPqxvMqPMuPhGe7FnQiFuGEjqDW0z7z3HB57E/CZDh0+Qyv0zPbUw0NMG2 Tegguda6Nlmx4hMlwyKM69QpZWwXr78EX9LmBcsrpUn7qk1/2UJsPJSz5wUW+vYXpMZB aTlPbI6pC1OOywqsIh3tAkk8RoaU2MXDOld2RHxDeP8zkiktW9z2f2Ug5NGVTsK/Rjaj oT3g==
X-Received: by 10.180.72.199 with SMTP id f7mr822923wiv.58.1422509931176; Wed, 28 Jan 2015 21:38:51 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id dc1sm887196wib.18.2015.01.28.21.38.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 21:38:50 -0800 (PST)
Message-ID: <54C9C765.7080604@gmail.com>
Date: Thu, 29 Jan 2015 06:38:45 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Fraser Tweedale <frase@frase.id.au>,  Phillip Hallam-Baker <phill@hallambaker.com>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au>
In-Reply-To: <20150129042508.GA4845@bacardi.hollandpark.frase.id.au>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/KLbBnpdxpB9K8d7SbY8cAdpwg-E>
Cc: Nat Sakimura <sakimura@gmail.com>, "acme@ietf.org" <acme@ietf.org>, "Manger, James" <James.H.Manger@team.telstra.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [Acme] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 05:38:56 -0000

On 2015-01-29 05:25, Fraser Tweedale wrote:
Hi Fraser,

 > I agree the JSON ship has sailed, but there *are* drawbacks.


The JSON ship may have sailed but it is actually more like a dinghy when
look closer making a turn or two fairly realistic.

Using predictable serialization which is anything but rocket-science,
"canonicalization" can [often] be reduced to "stringify":

https://openkeystore.googlecode.com/svn/resources/trunk/docs/jcs.html

https://code.google.com/p/openkeystore/source/browse/python/trunk/src/org/webpki/json
https://code.google.com/p/openkeystore/source/browse/resources/trunk/docs/JCSDemo.cs

Anders

> On Wed, Jan 28, 2015 at 11:03:05PM -0500, Phillip Hallam-Baker wrote:
>> On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <sakimura@gmail.com> wrote:
>>
>>> On a side note: if such a spec is to be defined here, IMHO, it should use
>>> the algorithms and probably header parameters specified by JWA, etc. It
>>> should limit the scope to payload processing and expression of the entire
>>> thing in JSON Log like format, and leave the rest to JOSE.
>>>
>>
>> Absolutely. In fact that is why I am not raising it in JOSE as that just
>> provides the format for the main crypto attributes.
>>
>>
>>
>>
>>
>>
>>> On Thu Jan 29 2015 at 11:51:24 Manger, James <
>>> James.H.Manger@team.telstra.com> wrote:
>>>
>>>> A signed JAR file meets some of these requirements.
>>>>
>>>> Metadata and signatures are in extra files in the ZIP archive:
>>>> META-INF/MANIFEST.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.
>>>>
>>>> Content is the other files in the archive.
>>>>
>>>> It is not JSON of course, and the signature & certs are packaged in
>>>> ASN.1, but it is a useful comparison. It avoids BASE64 on the content; can
>>>> adds signatures, digests, and other metadata; can transport content and
>>>> metadata as a regular blob (*.jar file); can sign complete code
>>>> distributions.
>>>>
>>>>
>>>>
>> I have used signed jar files. But Sun rather poisoned the well there by
>> suing Microsoft over control of Java followed up by further lawsuits from
>> Oracle.
>>
>> I can't imagine anyone is going to accept Jar or anything involving
>> assinine.1 as a wire format for packaging. Those days are long past. The
>> way you get coherence is to pick one encoding and stick to it. JSON seems
>> to have been the one we picked. It has all the functionality offered by the
>> alternatives and none of the drawbacks.
>
> There are ∞ valid ways to serialise a JSON object.  If a JSON object
> is signed over, it must be canonicalised, or signed over and
> transported in serialised form.  JOSE takes the latter approach
> (base64url-encoded serialised JSON object, inside a JSON object),
> while JWK thumbprint draft uses canonicalisation.  ASN.1 encodings
> and deterministic binary serialisations can avoid the need for these
> sorts of hacks.
>
> I agree the JSON ship has sailed, but there *are* drawbacks.
>
> Regards,
> Fraser
>
>> _______________________________________________
>> Acme mailing list
>> Acme@ietf.org
>> https://www.ietf.org/mailman/listinfo/acme
>
>
>
> _______________________________________________
> Acme mailing list
> Acme@ietf.org
> https://www.ietf.org/mailman/listinfo/acme
>


From nobody Wed Jan 28 22:59:46 2015
Return-Path: <frase@frase.id.au>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D2B261A8F4A; Wed, 28 Jan 2015 22:59:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.628
X-Spam-Level: *
X-Spam-Status: No, score=1.628 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FH_HOST_EQ_D_D_D_D=0.765, FH_HOST_EQ_D_D_D_DB=0.888, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, HOST_EQ_STATIC=1.172, 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 3rnsD0KzzJyW; Wed, 28 Jan 2015 22:59:29 -0800 (PST)
Received: from captainmorgan.hollandpark.frase.id.au (110-174-235-130.static.tpgi.com.au [110.174.235.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D56851A8F49; Wed, 28 Jan 2015 22:59:28 -0800 (PST)
Received: from bacardi.hollandpark.frase.id.au (bacardi.hollandpark.frase.id.au [192.168.0.100]) by captainmorgan.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0T6x9kN037051; Thu, 29 Jan 2015 16:59:09 +1000 (EST) (envelope-from frase@frase.id.au)
Received: from bacardi.hollandpark.frase.id.au (localhost [127.0.0.1]) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9) with ESMTP id t0T6x9ga005821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 29 Jan 2015 16:59:09 +1000 (EST) (envelope-from frase@frase.id.au)
Received: (from fraser@localhost) by bacardi.hollandpark.frase.id.au (8.14.9/8.14.9/Submit) id t0T6x4je005820; Thu, 29 Jan 2015 16:59:04 +1000 (EST) (envelope-from frase@frase.id.au)
X-Authentication-Warning: bacardi.hollandpark.frase.id.au: fraser set sender to frase@frase.id.au using -f
Date: Thu, 29 Jan 2015 16:59:04 +1000
From: Fraser Tweedale <frase@frase.id.au>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <20150129065903.GC4845@bacardi.hollandpark.frase.id.au>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7gGkHNMELEOhSGF6"
Content-Disposition: inline
In-Reply-To: <54C9C765.7080604@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/c2zzNaPUgONwh2QtKsZX45An9Wo>
Cc: Nat Sakimura <sakimura@gmail.com>, Phillip Hallam-Baker <phill@hallambaker.com>, "Manger, James" <James.H.Manger@team.telstra.com>, "jose@ietf.org" <jose@ietf.org>, "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 06:59:31 -0000

--7gGkHNMELEOhSGF6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 29, 2015 at 06:38:45AM +0100, Anders Rundgren wrote:
> On 2015-01-29 05:25, Fraser Tweedale wrote:
> Hi Fraser,
>=20
>  > I agree the JSON ship has sailed, but there *are* drawbacks.
>=20
>=20
> The JSON ship may have sailed but it is actually more like a dinghy when
> look closer making a turn or two fairly realistic.
>=20
> Using predictable serialization which is anything but rocket-science,
> "canonicalization" can [often] be reduced to "stringify":
>=20
This means that you either:

    a) have a JSON library that serialises objects in precisely the
       manner required, or affords users the degree of control needed
       to achieve it, or
    b) must write the serialisation function yourself

Although b) is not rocket-science, the format is hostile to code
reuse.  JOSE made a different tradeoff - you can use any JSON
library but the format is more complex.  One drawback is traded off
against another.

JSON has benefits compared with ASN.1, but using it presents you
with an unavoidable choice between significant drawbacks.  This fact
ought not be glibly ignored.

Regards,
Fraser


> https://openkeystore.googlecode.com/svn/resources/trunk/docs/jcs.html
>=20
> https://code.google.com/p/openkeystore/source/browse/python/trunk/src/org=
/webpki/json
> https://code.google.com/p/openkeystore/source/browse/resources/trunk/docs=
/JCSDemo.cs
>=20
> Anders
>=20
> > On Wed, Jan 28, 2015 at 11:03:05PM -0500, Phillip Hallam-Baker wrote:
> >> On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <sakimura@gmail.com> wro=
te:
> >>
> >>> On a side note: if such a spec is to be defined here, IMHO, it should=
 use
> >>> the algorithms and probably header parameters specified by JWA, etc. =
It
> >>> should limit the scope to payload processing and expression of the en=
tire
> >>> thing in JSON Log like format, and leave the rest to JOSE.
> >>>
> >>
> >> Absolutely. In fact that is why I am not raising it in JOSE as that ju=
st
> >> provides the format for the main crypto attributes.
> >>
> >>
> >>
> >>
> >>
> >>
> >>> On Thu Jan 29 2015 at 11:51:24 Manger, James <
> >>> James.H.Manger@team.telstra.com> wrote:
> >>>
> >>>> A signed JAR file meets some of these requirements.
> >>>>
> >>>> Metadata and signatures are in extra files in the ZIP archive:
> >>>> META-INF/MANIFEST.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.
> >>>>
> >>>> Content is the other files in the archive.
> >>>>
> >>>> It is not JSON of course, and the signature & certs are packaged in
> >>>> ASN.1, but it is a useful comparison. It avoids BASE64 on the conten=
t; can
> >>>> adds signatures, digests, and other metadata; can transport content =
and
> >>>> metadata as a regular blob (*.jar file); can sign complete code
> >>>> distributions.
> >>>>
> >>>>
> >>>>
> >> I have used signed jar files. But Sun rather poisoned the well there by
> >> suing Microsoft over control of Java followed up by further lawsuits f=
rom
> >> Oracle.
> >>
> >> I can't imagine anyone is going to accept Jar or anything involving
> >> assinine.1 as a wire format for packaging. Those days are long past. T=
he
> >> way you get coherence is to pick one encoding and stick to it. JSON se=
ems
> >> to have been the one we picked. It has all the functionality offered b=
y the
> >> alternatives and none of the drawbacks.
> >
> > There are =E2=88=9E valid ways to serialise a JSON object.  If a JSON o=
bject
> > is signed over, it must be canonicalised, or signed over and
> > transported in serialised form.  JOSE takes the latter approach
> > (base64url-encoded serialised JSON object, inside a JSON object),
> > while JWK thumbprint draft uses canonicalisation.  ASN.1 encodings
> > and deterministic binary serialisations can avoid the need for these
> > sorts of hacks.
> >
> > I agree the JSON ship has sailed, but there *are* drawbacks.
> >
> > Regards,
> > Fraser
> >
> >> _______________________________________________
> >> Acme mailing list
> >> Acme@ietf.org
> >> https://www.ietf.org/mailman/listinfo/acme
> >
> >
> >
> > _______________________________________________
> > Acme mailing list
> > Acme@ietf.org
> > https://www.ietf.org/mailman/listinfo/acme
> >
>=20

--7gGkHNMELEOhSGF6
Content-Type: application/pgp-signature

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

iQIcBAEBCgAGBQJUydo1AAoJEEtTkFJBEeHiNFwP/AqelVvZ5fnhEtFWIDH0rpm2
e3nNkj3qsAWp8H2tULBOv5vnHmtPnkx6UKBA1oFN9nTSzTeVFq6qpqlrbFe3sJFz
jK9qrh/awp9jcN31xXezKg2gUkCcwlW16grLpqc5lbzQ7DfCzgcXSq3nfkD5jUNh
yyKykwmV87CDrtIGPZH9DICje3KPT1o5QzogOQ4w3yZwNtdfRgybPpDpgXxW6uE5
SsYYa8dJvStsROyorX2ErMCKVt1+GFU5GqO0ZqdNes5a0mThaEnjwkOfcXnJIvU4
BTJlMSs7n2BvIG0eQZoMjrIqUn87Y7pCG8f1x1O65Oy7LPr69tuThxcAhuuAt5IX
VeL/c5kTm/7pmAjJcICga2vG5WzCKFdrFfpB8vQFTs7l3553AhDjC3mU0vsfj0pG
vEKloDgrllzm1K7otQxiyAIwrAd7WN0MRNJR7uYRzTBq9j47cbW1hyiETyC3vgge
3lIpB9fpeG/JiZFfH+rOunP/YBtM37Todi34dbNAL2WsSdOGvii2x3vwX2JD1fc1
R6Xu4sOvNJ8XoTUvDeSewZKk/+So3n7t5StVvuKvPvkUyAdeXOReZzSSFeC4OgKD
VdwczSbjd5ZDQ2lUfcdKU3bObMtylPfoENYea5uk5U6nYv43aCivJBkaXm/UU2Rh
GAqIHJeL0Pmek14OJCGm
=CkV4
-----END PGP SIGNATURE-----

--7gGkHNMELEOhSGF6--


From nobody Thu Jan 29 05:54:17 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83F2F1A0B00; Thu, 29 Jan 2015 05:54:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zeHFw1ny6hlD; Thu, 29 Jan 2015 05:54:01 -0800 (PST)
Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8D261A0687; Thu, 29 Jan 2015 05:54:00 -0800 (PST)
Received: by mail-lb0-f181.google.com with SMTP id u10so28239382lbd.12; Thu, 29 Jan 2015 05:53:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=t/mdFXacjFz1BdHg0lzpYmRbLgW0JgIh65XA3Ylr/7I=; b=mQ/0o6vs0WeOr56WZawrz2aWPzJAyvS2zQSliJSpJM7n3IcAqodW3z5wiP9mszIOrV lWjI8ccrKWj3mQFIfI4gkEnwft83iFWPpdq6upuXxtstKMSGNyFe17v1yiQuQPT5Gxte iPnO1aSO65CnCZrLQIGDVs8ExT2g4Ezm7LlU8sykVMX0SDoexc3QbZ5PECMgW0ROzNZu lTb8vKJ+/cdYKm9Jerp8Yu/h602gBxfdgSq94JGTssd/21wHZE/ASmGhcOs2MiLHpPqn EAq/OlDflqqFZw8hdYv1nTwWb+uWoGVxvAv1eV4eG/XcjDbBcUzJ0nJ/cBIhi9xzCC3p K7iw==
MIME-Version: 1.0
X-Received: by 10.112.131.1 with SMTP id oi1mr954551lbb.2.1422539639121; Thu, 29 Jan 2015 05:53:59 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 05:53:58 -0800 (PST)
In-Reply-To: <54CA3242.10109@mit.edu>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com> <54CA3242.10109@mit.edu>
Date: Thu, 29 Jan 2015 08:53:58 -0500
X-Google-Sender-Auth: Qp_Ffgb9ZpDRLYvKmLleHPX6nOc
Message-ID: <CAMm+LwiUbys9J-MnmAcnUxTiKnJTz+49OSxWpUXQtHKgu_pnxw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Justin Richer <jricher@mit.edu>
Content-Type: multipart/alternative; boundary=047d7b343106de6e62050dcad1c3
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/OfcPRcO4Lp4jAgUymS2VCHLte2U>
Cc: "acme@ietf.org" <acme@ietf.org>, Anders Rundgren <anders.rundgren.net@gmail.com>, Nat Sakimura <sakimura@gmail.com>, "jose@ietf.org" <jose@ietf.org>, "Manger, James" <James.H.Manger@team.telstra.com>, Fraser Tweedale <frase@frase.id.au>
Subject: Re: [Acme] [jose] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 13:54:02 -0000

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

On Thu, Jan 29, 2015 at 8:14 AM, Justin Richer <jricher@mit.edu> wrote:

> Relying on side-effects of a handful of contemporary implementations is
> dangerous at best and absolutely foolhardy at worst, especially when it
> comes to security systems. You *need* to have a formal canonicalization,
> normalization, or serialization in order for these things to work in
> practice.
>
> Otherwise, you're betting on luck, and that's just daft.
>

-1E200

Canonicalization is the stupidest idea in computer security. It is never
ever necessary and never ever implemented reliably.

A digital signature signs a sequence of bits. So if you ever want to check
a signature again, make sure you keep hold of your original sequence of
bits. Simple!

I see people say that canonicalization is 'essential' in every discussion
of signatures. What I have never seen is an example of something that is a
reasonable thing to do that goes wrong if you don't have C15N.

And by reasonable, I do not mean 'take a cert, store it in X.500 directory,
reassemble'. DER encoding is the stupidest stupid of all the steaming piles
of stupid in ASN.1. BER meets the needs of X.509 just as well, as was
proved by the fact that the Web ran quite happily on BER encoded certs
until some spoilsport let on what we had been doing.


The reason I am proposing JSON Container is precisely to avoid the need for
canonicalization. That does not work in XML Dig sig and it won't work for
JSON.

My proposal has three parts:

1) A blob of data where the only requirement is that it must be a valid
JSON encoding. Changing this is permitted. Want to add another signature,
go ahead! So not only are syntactic differences allowed, semantic changes
are allowed as well.

2) A separator marker to unambiguously define the end of (1) and the start
of (3)

3) The sequence of bits that was signed.


A signature in (1) cannot refer to any part of (1), it can only reference
(3) and is by default the whole of (3) but could be a well defined range
inside (3) instead.

That is it, no JSON canonicalization or unique serialization required. This
is a proposal for wrapping arbitrary content data with a wrapper that
contains JSON metadata which might include signatures. There is no reason
for either the signature or the data to be in a canonical form.

If you want to have signed metadata, you would need to first wrap the
content with a JSON Container with the metadata and then wrap that with a
second container with the signature.

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

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
hu, Jan 29, 2015 at 8:14 AM, Justin Richer <span dir=3D"ltr">&lt;<a href=3D=
"mailto:jricher@mit.edu" target=3D"_blank">jricher@mit.edu</a>&gt;</span> w=
rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex">Relying on side-effects of a handfu=
l of contemporary implementations is dangerous at best and absolutely foolh=
ardy at worst, especially when it comes to security systems. You *need* to =
have a formal canonicalization, normalization, or serialization in order fo=
r these things to work in practice.<br>
<br>
Otherwise, you&#39;re betting on luck, and that&#39;s just daft.<br></block=
quote><div><br></div><div>-1E200</div><div><br></div><div>Canonicalization =
is the stupidest idea in computer security. It is never ever necessary and =
never ever implemented reliably.=C2=A0</div><div><br></div><div>A digital s=
ignature signs a sequence of bits. So if you ever want to check a signature=
 again, make sure you keep hold of your original sequence of bits. Simple!<=
/div><div><br></div><div>I see people say that canonicalization is &#39;ess=
ential&#39; in every discussion of signatures. What I have never seen is an=
 example of something that is a reasonable thing to do that goes wrong if y=
ou don&#39;t have C15N.</div><div><br></div><div>And by reasonable, I do no=
t mean &#39;take a cert, store it in X.500 directory, reassemble&#39;. DER =
encoding is the stupidest stupid of all the steaming piles of stupid in ASN=
.1. BER meets the needs of X.509 just as well, as was proved by the fact th=
at the Web ran quite happily on BER encoded certs until some spoilsport let=
 on what we had been doing.</div><div><br></div><div><br></div><div>The rea=
son I am proposing JSON Container is precisely to avoid the need for canoni=
calization. That does not work in XML Dig sig and it won&#39;t work for JSO=
N.</div><div><br></div><div>My proposal has three parts:</div><div><br></di=
v><div>1) A blob of data where the only requirement is that it must be a va=
lid JSON encoding. Changing this is permitted. Want to add another signatur=
e, go ahead! So not only are syntactic differences allowed, semantic change=
s are allowed as well.</div><div><br></div><div>2) A separator marker to un=
ambiguously define the end of (1) and the start of (3)</div><div><br></div>=
<div>3) The sequence of bits that was signed.</div><div><br></div><div><br>=
</div><div>A signature in (1) cannot refer to any part of (1), it can only =
reference (3) and is by default the whole of (3) but could be a well define=
d range inside (3) instead.</div><div><br></div><div>That is it, no JSON ca=
nonicalization or unique serialization required. This is a proposal for wra=
pping arbitrary content data with a wrapper that contains JSON metadata whi=
ch might include signatures. There is no reason for either the signature or=
 the data to be in a canonical form.=C2=A0</div><div><br></div><div>If you =
want to have signed metadata, you would need to first wrap the content with=
 a JSON Container with the metadata and then wrap that with a second contai=
ner with the signature.</div></div></div></div>

--047d7b343106de6e62050dcad1c3--


From nobody Thu Jan 29 06:26:17 2015
Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A27A1A19E9; Thu, 29 Jan 2015 06:26:12 -0800 (PST)
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 bawPE3Lrrwaf; Thu, 29 Jan 2015 06:26:08 -0800 (PST)
Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59B291A03A3; Thu, 29 Jan 2015 06:26:08 -0800 (PST)
Received: by mail-wg0-f46.google.com with SMTP id l2so23310306wgh.5; Thu, 29 Jan 2015 06:26:07 -0800 (PST)
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=wK9ZOHRUr2sBy1X727+94m2OGRidRCqFrFp+aqgrnXM=; b=H+Uohog/YHqX93EFJbOEZXgSFqzrPPuEWd17kq1Es+8jM8nBracEzrFQgcVkPqX77i lac9Zn/ixhdzfQve+EFKTfNjZDqCmQG4hxJD0K5Cz9zjfkuoiKuVOdkdjNi4yMBJovkL 5lkXW/d0QBrV90gSJH5BMBFMh4x1KLpl2sMioonFTd0oTFU4RMsqYA0/OecN6x68oJIm nZvpTP03ha+Fv9UnagKTH45Fk5eHKG5QqIUbsQoCRDAFNDHUpb5zVvkYhyDmweyaCE/P sOqWNlg6kpIC/3IC1b3WembyWvlQi11HtR7EUMXK2Y7r1N18ge/z3mluVgtMS/2djO/Q dpfg==
X-Received: by 10.194.236.200 with SMTP id uw8mr1895478wjc.10.1422541566905; Thu, 29 Jan 2015 06:26:06 -0800 (PST)
Received: from [192.168.1.79] (48.194.130.77.rev.sfr.net. [77.130.194.48]) by mx.google.com with ESMTPSA id bb2sm10678480wjc.43.2015.01.29.06.26.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jan 2015 06:26:06 -0800 (PST)
Message-ID: <54CA42FC.7040201@gmail.com>
Date: Thu, 29 Jan 2015 15:26:04 +0100
From: Anders Rundgren <anders.rundgren.net@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Justin Richer <jricher@mit.edu>, Fraser Tweedale <frase@frase.id.au>,  Phillip Hallam-Baker <phill@hallambaker.com>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com> <54CA3242.10109@mit.edu>
In-Reply-To: <54CA3242.10109@mit.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/YLAUZzkB2QzMTD0qNZwS5iU5St4>
Cc: "Manger, James" <James.H.Manger@team.telstra.com>, "acme@ietf.org" <acme@ietf.org>, Nat Sakimura <sakimura@gmail.com>, "jose@ietf.org" <jose@ietf.org>
Subject: Re: [Acme] [jose] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 14:26:12 -0000

On 2015-01-29 14:14, Justin Richer wrote:
> Relying on side-effects of a handful of contemporary implementations is
> dangerous at best and absolutely foolhardy at worst, especially when it
> comes to security systems. You *need* to have a formal canonicalization,
> normalization, or serialization in order for these things to work in
> practice.

You are right: JCS isn't guaranteed to run on any JSON implementation.

However, JCS doesn't rely on side-effects, it has a formal normalization
scheme (the description may be crap but there is one at least), which is
explicitly implemented in two (yes, only two) reference implementations.

Then I have with the help of available documentation and communication
with the authors, verified that two "commercial" JSON implementations
also can support "predictive serialization" which BTW is a requested
item by the general JSON community for the simple reason that humans
(unlike computers) find it somewhat odd that if you define properties
A,B,C they come out as A,C,B.

The only (known NB) "fly in the soup" is that floating-point serialization
usually requires some specific measures to work as mandated by the JCS
normalization scheme.  If this is a show-stopper and can't be corrected,
your best option is using JWS of course.  The idea was never ever to
"compete" but to "complement".  I have adjusted the JCS during the voyage
so that it nowadays reuses JOSE algorithms, curves, public key objects, and
signature blob format.  "Crypto compatible".

> Otherwise, you're betting on luck, and that's just daft.

Since I don't consider myself a gambler, I guess I have to settle on "daft" then :-)

Anders


>
>    -- Justin
>
> On 1/29/2015 12:38 AM, Anders Rundgren wrote:
>> On 2015-01-29 05:25, Fraser Tweedale wrote:
>> Hi Fraser,
>>
>>> I agree the JSON ship has sailed, but there *are* drawbacks.
>>
>>
>> The JSON ship may have sailed but it is actually more like a dinghy when
>> look closer making a turn or two fairly realistic.
>>
>> Using predictable serialization which is anything but rocket-science,
>> "canonicalization" can [often] be reduced to "stringify":
>>
>> https://openkeystore.googlecode.com/svn/resources/trunk/docs/jcs.html
>>
>> https://code.google.com/p/openkeystore/source/browse/python/trunk/src/org/webpki/json
>>
>> https://code.google.com/p/openkeystore/source/browse/resources/trunk/docs/JCSDemo.cs
>>
>>
>> Anders
>>
>>> On Wed, Jan 28, 2015 at 11:03:05PM -0500, Phillip Hallam-Baker wrote:
>>>> On Wed, Jan 28, 2015 at 9:57 PM, Nat Sakimura <sakimura@gmail.com>
>>>> wrote:
>>>>
>>>>> On a side note: if such a spec is to be defined here, IMHO, it
>>>>> should use
>>>>> the algorithms and probably header parameters specified by JWA,
>>>>> etc. It
>>>>> should limit the scope to payload processing and expression of the
>>>>> entire
>>>>> thing in JSON Log like format, and leave the rest to JOSE.
>>>>>
>>>>
>>>> Absolutely. In fact that is why I am not raising it in JOSE as that
>>>> just
>>>> provides the format for the main crypto attributes.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> On Thu Jan 29 2015 at 11:51:24 Manger, James <
>>>>> James.H.Manger@team.telstra.com> wrote:
>>>>>
>>>>>> A signed JAR file meets some of these requirements.
>>>>>>
>>>>>> Metadata and signatures are in extra files in the ZIP archive:
>>>>>> META-INF/MANIFEST.MF, META-INF/MYKEY.SF, META-INF/MYKEY.RSA.
>>>>>>
>>>>>> Content is the other files in the archive.
>>>>>>
>>>>>> It is not JSON of course, and the signature & certs are packaged in
>>>>>> ASN.1, but it is a useful comparison. It avoids BASE64 on the
>>>>>> content; can
>>>>>> adds signatures, digests, and other metadata; can transport
>>>>>> content and
>>>>>> metadata as a regular blob (*.jar file); can sign complete code
>>>>>> distributions.
>>>>>>
>>>>>>
>>>>>>
>>>> I have used signed jar files. But Sun rather poisoned the well there by
>>>> suing Microsoft over control of Java followed up by further lawsuits
>>>> from
>>>> Oracle.
>>>>
>>>> I can't imagine anyone is going to accept Jar or anything involving
>>>> assinine.1 as a wire format for packaging. Those days are long past.
>>>> The
>>>> way you get coherence is to pick one encoding and stick to it. JSON
>>>> seems
>>>> to have been the one we picked. It has all the functionality offered
>>>> by the
>>>> alternatives and none of the drawbacks.
>>>
>>> There are ∞ valid ways to serialise a JSON object.  If a JSON object
>>> is signed over, it must be canonicalised, or signed over and
>>> transported in serialised form.  JOSE takes the latter approach
>>> (base64url-encoded serialised JSON object, inside a JSON object),
>>> while JWK thumbprint draft uses canonicalisation.  ASN.1 encodings
>>> and deterministic binary serialisations can avoid the need for these
>>> sorts of hacks.
>>>
>>> I agree the JSON ship has sailed, but there *are* drawbacks.
>>>
>>> Regards,
>>> Fraser
>>>
>>>> _______________________________________________
>>>> Acme mailing list
>>>> Acme@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/acme
>>>
>>>
>>>
>>> _______________________________________________
>>> Acme mailing list
>>> Acme@ietf.org
>>> https://www.ietf.org/mailman/listinfo/acme
>>>
>>
>> _______________________________________________
>> jose mailing list
>> jose@ietf.org
>> https://www.ietf.org/mailman/listinfo/jose
>


From nobody Thu Jan 29 11:40:43 2015
Return-Path: <dkg@fifthhorseman.net>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D13081A1B27 for <acme@ietfa.amsl.com>; Thu, 29 Jan 2015 11:40:36 -0800 (PST)
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 aArLhtudLf_Y for <acme@ietfa.amsl.com>; Thu, 29 Jan 2015 11:40:30 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by ietfa.amsl.com (Postfix) with ESMTP id 337EA1A049A for <acme@ietf.org>; Thu, 29 Jan 2015 11:40:30 -0800 (PST)
Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 54CC6F984 for <acme@ietf.org>; Thu, 29 Jan 2015 14:40:27 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id 7565A203A0; Thu, 29 Jan 2015 14:40:26 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: acme@ietf.org
In-Reply-To: <CAMm+LwiUbys9J-MnmAcnUxTiKnJTz+49OSxWpUXQtHKgu_pnxw@mail.gmail.com>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com> <54CA3242.10109@mit.edu> <CAMm+LwiUbys9J-MnmAcnUxTiKnJTz+49OSxWpUXQtHKgu_pnxw@mail.gmail.com>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu)
Date: Thu, 29 Jan 2015 14:40:26 -0500
Message-ID: <87iofpcr4l.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/_bvueuvTuO-LVXFM8yEi1qbJuw4>
Subject: Re: [Acme] [jose] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 19:40:37 -0000

On Thu 2015-01-29 08:53:58 -0500, Phillip Hallam-Baker wrote:
> Canonicalization is the stupidest idea in computer security. It is never
> ever necessary and never ever implemented reliably.
>
> A digital signature signs a sequence of bits. So if you ever want to check
> a signature again, make sure you keep hold of your original sequence of
> bits. Simple!
>
> I see people say that canonicalization is 'essential' in every discussion
> of signatures. What I have never seen is an example of something that is a
> reasonable thing to do that goes wrong if you don't have C15N.

RFC 1847 (Security Multiparts for MIME) [0] recommended this "keep the
original sequence of bits intact" variant way back in 1995:

>>    The entire contents of the multipart/signed container must be treated
>>    as opaque while it is in transit from an originator to a recipient.

But some implementations still get this wrong, and it breaks some signed
messages today, depending on how those messages are handled in transit.
(this is about RFC822 header canonicalization, fwiw, not JSON
canonicalization, but the point is the same).

For example, In 2004 (probably earlier), it was observed that python
e-mail parser failed to "keep the original sequence of bits intact" [1],
and the bug is still not fixed today, afaict.

We're talking about nearly 20 years of failing to do this "easy"
approach.  

Taking the other approach, OpenPGP signatures of textual data use a
canonicalized document format (specifying <CR><LF> line-endings,
ignoring whitespace at the end of lines, back in 1998) [2], and that
seems to have actually worked out OK in terms of interop, though i've
seen some (quickly-fixed) errors pop up over the years.

People want to investigate and parse and display the content they're
working with, even if there is a signature on it.  It's very tempting
for implementors to treat the parsed form as the sole internal data, and
not to keep around the other binary blob.  Having a well-documented
canonicalization procedure makes that easier.

i'm not saying that canonicalization is necessarily the right solution
here, but it's not like the "just keep your bits intact" proposal is
particularly robust either.

       --dkg

[0] https://tools.ietf.org/html/rfc1847#page-4
[1] http://bugs.python.org/issue968430
[2] https://tools.ietf.org/html/rfc2440#section-7.1


From nobody Thu Jan 29 15:18:44 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6BAB71A1A4E for <acme@ietfa.amsl.com>; Thu, 29 Jan 2015 15:18:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TWoKxcFxjiVn for <acme@ietfa.amsl.com>; Thu, 29 Jan 2015 15:18:39 -0800 (PST)
Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E3271A1AB8 for <acme@ietf.org>; Thu, 29 Jan 2015 15:18:39 -0800 (PST)
Received: by mail-lb0-f173.google.com with SMTP id p9so33708486lbv.4 for <acme@ietf.org>; Thu, 29 Jan 2015 15:18:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iDNw8yzQfxY9eIpfb3DVf4XnfxC4Gkw/ed8Csmlkf58=; b=LUDeJSmiSh0SiMGZLX8A836sRpdcq//RYbgKk/0wTC2wcwCvBN0sKXVXRhGLhwtq/e 8henRGPf7vjFqSchK1tpYv6V+0lqLdCGxG2TqB39vSvHPstu3wZBRXeL8RhFmOtIn/nB o9h1J7bQ4EICbgw5uWDXHwGIJ7gZxDG2ziPt62QQ3CpAtd9PmiCKu0BzfSutKl1Wf8Wf HWOYtR2pItgWM3MUDYdCMwsD7L5bR8yWn401oxGjEQxIc7CGO1+1o57HxrSW+gJ7LQjA E+5HzuJCV3/WB1Hf43km1QaCLt3j3swHHTRXLUFAZ4PQoJNZJZs+Eq1F8L9W0Nm/AwBt OxQg==
MIME-Version: 1.0
X-Received: by 10.112.119.201 with SMTP id kw9mr3553442lbb.99.1422573517638; Thu, 29 Jan 2015 15:18:37 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 15:18:37 -0800 (PST)
In-Reply-To: <87iofpcr4l.fsf@alice.fifthhorseman.net>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com> <54CA3242.10109@mit.edu> <CAMm+LwiUbys9J-MnmAcnUxTiKnJTz+49OSxWpUXQtHKgu_pnxw@mail.gmail.com> <87iofpcr4l.fsf@alice.fifthhorseman.net>
Date: Thu, 29 Jan 2015 18:18:37 -0500
X-Google-Sender-Auth: -JiYkUevrBFjfAGRNbRsKYLP3HE
Message-ID: <CAMm+Lwi=7Cvz-KbLt9Fxgzp=pK4Zbrm5RdsNA9SkzHkiW+dfDA@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Content-Type: multipart/alternative; boundary=047d7bae49da2f919b050dd2b5c7
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/6EdcUarwN_lwo1tntDm8clqLHHE>
Cc: "acme@ietf.org" <acme@ietf.org>
Subject: Re: [Acme] [jose] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Jan 2015 23:18:41 -0000

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

On Thu, Jan 29, 2015 at 2:40 PM, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
wrote:

> On Thu 2015-01-29 08:53:58 -0500, Phillip Hallam-Baker wrote:
> > Canonicalization is the stupidest idea in computer security. It is never
> > ever necessary and never ever implemented reliably.
> >
> > A digital signature signs a sequence of bits. So if you ever want to
> check
> > a signature again, make sure you keep hold of your original sequence of
> > bits. Simple!
> >
> > I see people say that canonicalization is 'essential' in every discussion
> > of signatures. What I have never seen is an example of something that is
> a
> > reasonable thing to do that goes wrong if you don't have C15N.
>
> RFC 1847 (Security Multiparts for MIME) [0] recommended this "keep the
> original sequence of bits intact" variant way back in 1995:
>
> >>    The entire contents of the multipart/signed container must be treated
> >>    as opaque while it is in transit from an originator to a recipient.
>
> But some implementations still get this wrong, and it breaks some signed
> messages today, depending on how those messages are handled in transit.
> (this is about RFC822 header canonicalization, fwiw, not JSON
> canonicalization, but the point is the same).
>

HTTP is defined as a 8-bit clean. If the content does not pass through with
every bit intact then abort and retry.

Now certainly, if you want to transfer huge gobs of data then you probably
want to use a different transfer encoding that divides the content into
chunks with separate error checks.




> For example, In 2004 (probably earlier), it was observed that python
> e-mail parser failed to "keep the original sequence of bits intact" [1],
> and the bug is still not fixed today, afaict.
>

Which is why I would only use HTTP which does not have that issue.



> We're talking about nearly 20 years of failing to do this "easy"
> approach.


Only for SMTP. HTTP has had 20 glorious years of success in that regard.


>  Taking the other approach, OpenPGP signatures of textual data use a

canonicalized document format (specifying <CR><LF> line-endings,
> ignoring whitespace at the end of lines, back in 1998) [2], and that
> seems to have actually worked out OK in terms of interop, though i've
> seen some (quickly-fixed) errors pop up over the years.
>

Only if you don't want to use MIME messages in which case weeping and
gnashing of teeth awaits one.



> People want to investigate and parse and display the content they're
> working with, even if there is a signature on it.  It's very tempting
> for implementors to treat the parsed form as the sole internal data, and
> not to keep around the other binary blob.  Having a well-documented
> canonicalization procedure makes that easier.
>

And deliberately not using a canonicalization scheme makes that misguided
approach impossible.



> i'm not saying that canonicalization is necessarily the right solution
> here, but it's not like the "just keep your bits intact" proposal is
> particularly robust either.

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 2:40 PM, Daniel Kahn Gillmor <span dir=3D"ltr">=
&lt;<a href=3D"mailto:dkg@fifthhorseman.net" target=3D"_blank">dkg@fifthhor=
seman.net</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"><span cl=
ass=3D"">On Thu 2015-01-29 08:53:58 -0500, Phillip Hallam-Baker wrote:<br>
&gt; Canonicalization is the stupidest idea in computer security. It is nev=
er<br>
&gt; ever necessary and never ever implemented reliably.<br>
&gt;<br>
&gt; A digital signature signs a sequence of bits. So if you ever want to c=
heck<br>
&gt; a signature again, make sure you keep hold of your original sequence o=
f<br>
&gt; bits. Simple!<br>
&gt;<br>
&gt; I see people say that canonicalization is &#39;essential&#39; in every=
 discussion<br>
&gt; of signatures. What I have never seen is an example of something that =
is a<br>
&gt; reasonable thing to do that goes wrong if you don&#39;t have C15N.<br>
<br>
</span>RFC 1847 (Security Multiparts for MIME) [0] recommended this &quot;k=
eep the<br>
original sequence of bits intact&quot; variant way back in 1995:<br>
<br>
&gt;&gt;=C2=A0 =C2=A0 The entire contents of the multipart/signed container=
 must be treated<br>
&gt;&gt;=C2=A0 =C2=A0 as opaque while it is in transit from an originator t=
o a recipient.<br>
<br>
But some implementations still get this wrong, and it breaks some signed<br=
>
messages today, depending on how those messages are handled in transit.<br>
(this is about RFC822 header canonicalization, fwiw, not JSON<br>
canonicalization, but the point is the same).<br></blockquote><div><br></di=
v><div>HTTP is defined as a 8-bit clean. If the content does not pass throu=
gh with every bit intact then abort and retry.</div><div><br></div><div>Now=
 certainly, if you want to transfer huge gobs of data then you probably wan=
t to use a different transfer encoding that divides the content into chunks=
 with separate error checks.</div><div><br></div><div><br></div><div>=C2=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">
For example, In 2004 (probably earlier), it was observed that python<br>
e-mail parser failed to &quot;keep the original sequence of bits intact&quo=
t; [1],<br>
and the bug is still not fixed today, afaict.<br></blockquote><div><br></di=
v><div>Which is why I would only use HTTP which does not have that issue.</=
div><div><br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We&#39;re talking about nearly 20 years of failing to do this &quot;easy&qu=
ot;<br>
approach.</blockquote><div><br></div><div>Only for SMTP. HTTP has had 20 gl=
orious years of success in that regard.</div><div>=C2=A0</div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
padding-left:1ex">=C2=A0Taking the other approach, OpenPGP signatures of te=
xtual data use a</blockquote><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
canonicalized document format (specifying &lt;CR&gt;&lt;LF&gt; line-endings=
,<br>
ignoring whitespace at the end of lines, back in 1998) [2], and that<br>
seems to have actually worked out OK in terms of interop, though i&#39;ve<b=
r>
seen some (quickly-fixed) errors pop up over the years.<br></blockquote><di=
v><br></div><div>Only if you don&#39;t want to use MIME messages in which c=
ase weeping and gnashing of teeth awaits one.</div><div><br></div><div>=C2=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex">
People want to investigate and parse and display the content they&#39;re<br=
>
working with, even if there is a signature on it.=C2=A0 It&#39;s very tempt=
ing<br>
for implementors to treat the parsed form as the sole internal data, and<br=
>
not to keep around the other binary blob.=C2=A0 Having a well-documented<br=
>
canonicalization procedure makes that easier.<br></blockquote><div><br></di=
v><div>And deliberately not using a canonicalization scheme makes that misg=
uided approach impossible.</div><div><br></div><div>=C2=A0</div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex">
i&#39;m not saying that canonicalization is necessarily the right solution<=
br>
here, but it&#39;s not like the &quot;just keep your bits intact&quot; prop=
osal is<br>
particularly robust either.</blockquote></div><br></div></div>

--047d7bae49da2f919b050dd2b5c7--


From nobody Thu Jan 29 16:48:00 2015
Return-Path: <hallam@gmail.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C24201A88ED; Thu, 29 Jan 2015 16:47:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level: 
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uqhvZzGdNCBV; Thu, 29 Jan 2015 16:47:56 -0800 (PST)
Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 862EA1A8889; Thu, 29 Jan 2015 16:47:54 -0800 (PST)
Received: by mail-lb0-f176.google.com with SMTP id z12so33886624lbi.7; Thu, 29 Jan 2015 16:47:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=/gPIYPaFVa58uVQheWrmDtTSODqF+V8AVRjuKHzk9bY=; b=n7j2Xfuzvdqq4F6ig0ToZeZLxHZsj/i5GgCXpugNCpGz109Ur3S2sS+CmHO6bJrSgw B2kD3y8PzTp9eKaF+TWPZmcxE3GwseohfP0ED2RA51jKqFxlWsOmfzWBR+nN2a4kTJ+A /abLXMK5ZckAg3gMT0N1bHchSRnXFautBLYdRUaq+ogbJLKtf7nQpM2VTuWlIIfN/z7C OPZgoF98OMpowxNOdhopQHn9pqtdlfRLfCvx6hiZDuMjNAzHQ3aK3GH38g+LT+F8XU4K m9EjAO9xwVGv+hPX7GHgMNsjZs2Ge+3RHx1y/3Nu8SK6MLJh5guecaQS4pr69SXXpls4 gYQw==
MIME-Version: 1.0
X-Received: by 10.112.160.193 with SMTP id xm1mr3987076lbb.5.1422578873048; Thu, 29 Jan 2015 16:47:53 -0800 (PST)
Sender: hallam@gmail.com
Received: by 10.112.147.193 with HTTP; Thu, 29 Jan 2015 16:47:52 -0800 (PST)
In-Reply-To: <EC21E47F-F099-49B2-B717-5BC3FA22F6FF@mitre.org>
References: <CAMm+Lwh12jzrH3ZVaS4HTqkNZkteg9mL+n6LYRsj5P1r-Q-DbQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1284ED9AA38@WSMSG3153V.srv.dir.telstra.com> <CABzCy2DTa+2usPhGJRX7kq8vdxaC+LgAEgoZWNiBmaQNOaYdEg@mail.gmail.com> <CAMm+Lwirvv5tLU-2AEqnQe9DUDKT=GbJK9Jyy69BJVfeDZjCiA@mail.gmail.com> <20150129042508.GA4845@bacardi.hollandpark.frase.id.au> <54C9C765.7080604@gmail.com> <54CA3242.10109@mit.edu> <CAMm+LwiUbys9J-MnmAcnUxTiKnJTz+49OSxWpUXQtHKgu_pnxw@mail.gmail.com> <EC21E47F-F099-49B2-B717-5BC3FA22F6FF@mitre.org>
Date: Thu, 29 Jan 2015 19:47:52 -0500
X-Google-Sender-Auth: 0RuwJOL8aqSTy0pp7yAnM7uLVUQ
Message-ID: <CAMm+LwirkncVQrZ2Te_NuHD79S_JhjXqMfCZzprPdQoOTk3XrQ@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: "Richer, Justin P." <jricher@mitre.org>
Content-Type: multipart/alternative; boundary=001a11c3381864a53b050dd3f430
Archived-At: <http://mailarchive.ietf.org/arch/msg/acme/hOEJP4v1UFLQeyMdkd9iq-CbWcs>
Cc: "acme@ietf.org" <acme@ietf.org>, Anders Rundgren <anders.rundgren.net@gmail.com>, Nat Sakimura <sakimura@gmail.com>, "jose@ietf.org" <jose@ietf.org>, "Manger, James" <James.H.Manger@team.telstra.com>, Fraser Tweedale <frase@frase.id.au>
Subject: Re: [Acme] [jose] [Json] Signed JSON document / Json Content Metaheader / JSON Container
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Jan 2015 00:47:58 -0000

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

On Thu, Jan 29, 2015 at 4:28 PM, Richer, Justin P. <jricher@mitre.org>
wrote:

>  I think you missed my point. I wasn't saying that I *liked*
> canonicalization and normalization but rather that you *need* either it or
> something *equivalent* in order to get the same set of bits out of either
> end. Like you, what I was saying was that you need *something* that makes
> your bit stream stable.
>

Sure but that does not need to be in the signature format. I would prefer
to simply tell people that they have to get this package from A to B with
absolutely no modifications or it won't work.






> I'm actually in favor of the JOSE approach, which is exactly to keep the
> original bits around by protecting them with Base64url over the network so
> that they don't get munched. As an implementor, this is fantastic, as it
> makes my code much simpler in terms of both generation and consumption.
>

I don't like that for the general case though as the main advantage of JSON
is that it is human readable and I can't translate back and forth between
Base64 in my head any more.


> I have the JSON objects where I need them and the raw streams where I need
> them, and I can easily keep them separated with a reasonable assumption
> about them not being confused with each other. For heaven's sake, don't do
> canonicalization. But at the same time, don't assume that a JSON blob is
> going to be kept pristine as a string by any JSON-processing system.
>

That is one of the reasons for insisting on a sharp division between 'that
which is signed' and 'the JSON bit'.


> So we're actually in violent agreement on this point. In my view, JOSE's
> approach of keeping the original bits around is the desirable one by far.
>

I thought you might intend something like that but its not what I think you
said and it gave me an opportunity to use the phrase steaming piles of
stupid :-)

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

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Thu, Jan 29, 2015 at 4:28 PM, Richer, Justin P. <span dir=3D"ltr">&l=
t;<a href=3D"mailto:jricher@mitre.org" target=3D"_blank">jricher@mitre.org<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);=
border-left-style:solid;padding-left:1ex">



<div style=3D"word-wrap:break-word">
I think you missed my point. I wasn&#39;t saying that I *liked* canonicaliz=
ation and normalization but rather that you *need* either it or something *=
equivalent* in order to get the same set of bits out of either end. Like yo=
u, what I was saying was that you need
 *something* that makes your bit stream stable. </div></blockquote><div><br=
></div><div>Sure but that does not need to be in the signature format. I wo=
uld prefer to simply tell people that they have to get this package from A =
to B with absolutely no modifications or it won&#39;t work.</div><div><br><=
/div><div><br></div><div><br></div><div><br></div><div>=C2=A0</div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wid=
th:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-l=
eft:1ex"><div style=3D"word-wrap:break-word">I&#39;m actually in favor of t=
he JOSE approach, which is exactly to keep the original bits around by prot=
ecting them with Base64url over the network so that they don&#39;t get munc=
hed. As an implementor, this is fantastic,
 as it makes my code much simpler in terms of both generation and consumpti=
on. </div></blockquote><div><br></div><div>I don&#39;t like that for the ge=
neral case though as the main advantage of JSON is that it is human readabl=
e and I can&#39;t translate back and forth between Base64 in my head any mo=
re.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204)=
;border-left-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-wo=
rd">I have the JSON objects where I need them and the raw streams where I n=
eed them, and I can easily keep them separated with a reasonable assumption=
 about them not being confused with
 each other. For heaven&#39;s sake, don&#39;t do canonicalization. But at t=
he same time, don&#39;t assume that a JSON blob is going to be kept pristin=
e as a string by any JSON-processing system.</div></blockquote><div><br></d=
iv><div>That is one of the reasons for insisting on a sharp division betwee=
n &#39;that which is signed&#39; and &#39;the JSON bit&#39;.=C2=A0</div><di=
v>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left=
-style:solid;padding-left:1ex"><div style=3D"word-wrap:break-word">
<div>So we&#39;re actually in violent agreement on this point. In my view, =
JOSE&#39;s approach of keeping the original bits around is the desirable on=
e by far.</div></div></blockquote><div><br></div><div>I thought you might i=
ntend something like that but its not what I think you said and it gave me =
an opportunity to use the phrase steaming piles of stupid :-)</div></div></=
div></div>

--001a11c3381864a53b050dd3f430--

