
From nobody Mon Feb 10 08:02:50 2020
Return-Path: <mranga@gmail.com>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2375012008C for <iot-onboarding@ietfa.amsl.com>; Sun,  9 Feb 2020 19:28:28 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2w0Q_QverfQt for <iot-onboarding@ietfa.amsl.com>; Sun,  9 Feb 2020 19:28:26 -0800 (PST)
Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (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 A3443120041 for <iot-onboarding@ietf.org>; Sun,  9 Feb 2020 19:28:26 -0800 (PST)
Received: by mail-il1-x135.google.com with SMTP id i7so4523048ilr.7 for <iot-onboarding@ietf.org>; Sun, 09 Feb 2020 19:28:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=8oaH+K8z5hfkGgWPSGZlQOdDaJvoePOmq3dxZv9Bdz8=; b=ol2scXPhvwe2PPkI5UBL6EmPLAPcwfNOzw0pq2X1wp+2+Tn916m/zkOQYvq2NbSm0J zwhZSdt5z6cYEwU/j4NYRGB0M9sxknimCsiDTymoMmdLAWTr4E+1WvTCsiWVmohQoaiK eGMbAx0GpaiqBzhKsT6Lrmj35YOuGvJXeVvmXnCXd8Bsl+sezjsRswaE0qD0ac7ts0F4 bLvPz/dG2IvUvrvkwOeHcNSm0qe76jsH9npB0v9Nn09ft2RXgeRhmgteKMMEpFA8n4Pj HayWHbMNnNWOz8KfnsG8pED/j+idqvnn91Qdnnw0wiO2bsBp/xSVapOrt2Aj1dC/vyjM F9Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8oaH+K8z5hfkGgWPSGZlQOdDaJvoePOmq3dxZv9Bdz8=; b=ZwyMN+ExxC/SdFicd+WMHF9bLEEY2LHiujXwQkkmkXjVbRrX9h18W/z0STzE4VPTDJ EMK7F1EBj1cQ0Nc1HHfGxzAc4LWI0/jDgZdc37OIWVn5INzm3BJoBWfhFgKi0x1Kr2tQ 51A2IGIOlDkoVSqK9H4jTJkRZBOvSuR900fStkryF+Ls4qgcw2e9B0594klzA7SZzVAo tZDTr5MWpf7QDTQqhY1wSJ8lXGdUGWRgXhcj9Uz5d1oV+WilHjhd+ff/1DSwNq9B5VWA hPTBgETyoPZvAy3wGh8+tM6DVTT7JMUlNgT7XyB7ByqWOT+0WqCvJS5nddmRzXJwMY00 gJgA==
X-Gm-Message-State: APjAAAW43SGHx4KKkYfgMUrxNv4Vef57GKBtCulCpP+gz5xAbnSw1NiU UJwcdfxonLd7++KjOoC/JHWeJtVup7y0z/z4JD74rXAnXS542Ae7
X-Google-Smtp-Source: APXvYqwp3kjjTF2ZFn2qDT5Xr0p97I2LUSAfqUXAdOvVdNF1FlymllkT1O+QbeE+AYDyX9DVTgViRrvpgxKyOjVvasM=
X-Received: by 2002:a92:50a:: with SMTP id q10mr8157175ile.294.1581305305496;  Sun, 09 Feb 2020 19:28:25 -0800 (PST)
MIME-Version: 1.0
From: "M. Ranganathan" <mranga@gmail.com>
Date: Sun, 9 Feb 2020 22:27:49 -0500
Message-ID: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com>
To: iot-onboarding@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/nhPu4DT6wQlkgBV5wLULURnGhVA>
Subject: [Iot-onboarding] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Feb 2020 03:28:28 -0000

Hello,

I am wondering if the format of the example should be
{
  "ietf-voucher:voucher-artifact": {
    "voucher": {
      "created-on": "2016-10-07T19:31:42Z"
      ......
instead of

{ "ietf-voucher:voucher":
    { "created-on": "2016-10-07T19:31:42Z",
      "assertion": "logged",

Based on the yang hierarchy (tree diagram).

I am going by what ygot is producing. I had to change the yang-data to
a container for ygot to work - perhaps this is the reason why the
output is different?  Not sure if this is quite right but I thought
I'd just point it out.

Ranga

--
M. Ranganathan


From nobody Mon Feb 10 10:05:16 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27ABC12080E; Mon, 10 Feb 2020 10:05:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.501
X-Spam-Level: **
X-Spam-Status: No, score=2.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=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 u9EGj860GkFw; Mon, 10 Feb 2020 10:05:13 -0800 (PST)
Received: from relay.sandelman.ca (minerva.sandelman.ca [IPv6:2a01:7e00::3d:b000]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7FFC012001A; Mon, 10 Feb 2020 10:05:13 -0800 (PST)
Received: from dooku.sandelman.ca (unknown [IPv6:2a02:8109:b6c0:52b8:584d:5a6f:7ed3:c298]) by relay.sandelman.ca (Postfix) with ESMTPS id A494D1F459; Mon, 10 Feb 2020 18:05:11 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 1AB851A29B4; Mon, 10 Feb 2020 19:05:10 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "M. Ranganathan" <mranga@gmail.com>, Kent Watsen <kwatsen@juniper.net>, anima@ietf.org
cc: iot-onboarding@ietf.org
In-reply-to: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com>
Comments: In-reply-to "M. Ranganathan" <mranga@gmail.com> message dated "Sun, 09 Feb 2020 22:27:49 -0500."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Mon, 10 Feb 2020 19:05:10 +0100
Message-ID: <1556.1581357910@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/du7iiO2NpbfqRb57K-lARORS4dU>
Subject: Re: [Iot-onboarding] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 Feb 2020 18:05:15 -0000

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


M. Ranganathan <mranga@gmail.com> wrote:
    > I am wondering if the format of the example should be
    > {
    > "ietf-voucher:voucher-artifact": {
    > "voucher": {
    > "created-on": "2016-10-07T19:31:42Z"
    > ......
    > instead of

    > { "ietf-voucher:voucher":
    > { "created-on": "2016-10-07T19:31:42Z",
    > "assertion": "logged",

    > Based on the yang hierarchy (tree diagram).

No, the tree diagam is wrong.
I'm not sure what to do exactly.

    > I am going by what ygot is producing. I had to change the yang-data to
    > a container for ygot to work - perhaps this is the reason why the
    > output is different?  Not sure if this is quite right but I thought
    > I'd just point it out.

It seems that there should be an errata.

Kent, is there a way we can change the YANG to match things correctly?
It seems that we might change:

   // Top-level statement
   rc:yang-data voucher-artifact {
     uses voucher-artifact-grouping;
   }

to:
   rc:yang-data voucher {

===
Or, do you think that we should changing the BRSKI document to match?

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-

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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5Bm1UACgkQlUzhVv38
QpAjqgf9H48kPs0gbxdQh82DqIYg4H3XYAxyaIbCxS/Ik8oqEjtgXLINOWhdGEjh
6kvo/Ro0jh1UcgyNg0AOpDcOzUnDacqNITPVQBKccaVTmvEx2b+3x1RU5d9VrC1F
2CAL/wpJrG0nEgzxoQbMzk+D98OhvEdRVicvedak1iK3bZb86ClQsasZaeLzkz4S
8YvPn2Jl+Br/UCt5JGACRuoMc6HaH6FmIXHlr2bnfklMYrS4x64AvCBbREs/RMXC
td/w1PUmiBvrGweZr4pUfFnamMAYAslvFT8XhIzwN5bDxRpk3xx1KQDTMk0PtuqI
SGVgEDll5TJzOKb3C/03sIYxePQZLA==
=Qpib
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Mon Feb 10 16:25:33 2020
Return-Path: <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@amazonses.watsen.net>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8405A120071; Mon, 10 Feb 2020 16:25:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3-VJLjFlWWlU; Mon, 10 Feb 2020 16:25:22 -0800 (PST)
Received: from a48-94.smtp-out.amazonses.com (a48-94.smtp-out.amazonses.com [54.240.48.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C592012089D; Mon, 10 Feb 2020 16:25:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1581380720; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=sV+q+ECW72LvIwH7zCd3nUqni/qLhx5D2RQVsuGGYao=; b=mffRuhl73hE2h6gD384mS2YZ1QoVE3KLmBH+Xa0QppULA3kJvfUEjbYBLE0mI+42 2qpzucwjIf7hP4+c9oXxgXSQLLzxv88LEvJoXc7rTLGEVWVEoIbJyNPyaaFKFXHCCcy 7JbvsSKyJ3fyC5+Zn/ZAhGaRr7KN3+n2WqPNAxAg=
From: Kent Watsen <kent@watsen.net>
Message-ID: <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_152D9D99-5507-481D-A67E-CECAB0D000F6"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 11 Feb 2020 00:25:20 +0000
In-Reply-To: <1556.1581357910@dooku>
Cc: "M. Ranganathan" <mranga@gmail.com>, Kent Watsen <kwatsen@juniper.net>, anima@ietf.org, iot-onboarding@ietf.org
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com> <1556.1581357910@dooku>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.02.11-54.240.48.94
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/CBPBIGYGVKe98rEv3a8gqaFqluc>
Subject: Re: [Iot-onboarding] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2020 00:25:24 -0000

--Apple-Mail=_152D9D99-5507-481D-A67E-CECAB0D000F6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


>> I am wondering if the format of the example should be
>> {
>> "ietf-voucher:voucher-artifact": {
>> "voucher": {
>> "created-on": "2016-10-07T19:31:42Z"
>> ......
>> instead of
>=20
>> { "ietf-voucher:voucher":
>> { "created-on": "2016-10-07T19:31:42Z",
>> "assertion": "logged",
>=20
>> Based on the yang hierarchy (tree diagram).
>=20
> No, the tree diagam is wrong.
> I'm not sure what to do exactly.

The tree diagram and examples in RFC 8366 are all correct.  The examples =
were validated via this script: =
https://github.com/anima-wg/voucher/blob/master/refs/validate-all.sh =
<https://github.com/anima-wg/voucher/blob/master/refs/validate-all.sh>.


The confusion is likely because folks expect that the =E2=80=9Cyang-data=E2=
=80=9D extension define a node, but it doesn=E2=80=99t.  It acts more =
like a YANG =E2=80=9Cgrouping=E2=80=9D than a YANG =E2=80=9Ccontainer=E2=80=
=9D in that regard. For instance, give the YANG:

	rc:yang-data foo {
	  leaf bar {
	    type string;
	  }
	}

A valid =E2=80=9Cfoo=E2=80=9D instance document (in JSON) would be:

	{
	    =E2=80=9Cbar=E2=80=9D: =E2=80=9Cthis is a string.=E2=80=9D
	}


Kent



>> I am going by what ygot is producing. I had to change the yang-data =
to
>> a container for ygot to work - perhaps this is the reason why the
>> output is different?  Not sure if this is quite right but I thought
>> I'd just point it out.
>=20
> It seems that there should be an errata.
>=20
> Kent, is there a way we can change the YANG to match things correctly?
> It seems that we might change:
>=20
>   // Top-level statement
>   rc:yang-data voucher-artifact {
>     uses voucher-artifact-grouping;
>   }
>=20
> to:
>   rc:yang-data voucher {
>=20
> =3D=3D=3D
> Or, do you think that we should changing the BRSKI document to match?





--Apple-Mail=_152D9D99-5507-481D-A67E-CECAB0D000F6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D""><br class=3D""></div><div><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D""><blockquote type=3D"cite" =
class=3D"">I am wondering if the format of the example should be<br =
class=3D"">{<br class=3D"">"ietf-voucher:voucher-artifact": {<br =
class=3D"">"voucher": {<br class=3D"">"created-on": =
"2016-10-07T19:31:42Z"<br class=3D"">......<br class=3D"">instead of<br =
class=3D""></blockquote><br class=3D""><blockquote type=3D"cite" =
class=3D"">{ "ietf-voucher:voucher":<br class=3D"">{ "created-on": =
"2016-10-07T19:31:42Z",<br class=3D"">"assertion": "logged",<br =
class=3D""></blockquote><br class=3D""><blockquote type=3D"cite" =
class=3D"">Based on the yang hierarchy (tree diagram).<br =
class=3D""></blockquote><br class=3D"">No, the tree diagam is wrong.<br =
class=3D"">I'm not sure what to do exactly.<br =
class=3D""></div></div></blockquote><div><br class=3D""></div><div>The =
tree diagram and examples in RFC 8366 are all correct. &nbsp;The =
examples were validated via this script:&nbsp;<a =
href=3D"https://github.com/anima-wg/voucher/blob/master/refs/validate-all.=
sh" =
class=3D"">https://github.com/anima-wg/voucher/blob/master/refs/validate-a=
ll.sh</a>.</div><div><br class=3D""></div><div><br =
class=3D""></div><div>The confusion is likely because folks expect that =
the =E2=80=9Cyang-data=E2=80=9D extension define a node, but it =
doesn=E2=80=99t. &nbsp;It acts more like a YANG =E2=80=9Cgrouping=E2=80=9D=
 than a YANG =E2=80=9Ccontainer=E2=80=9D in that regard. For instance, =
give the YANG:</div><div><br class=3D""></div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>rc:yang-data foo {</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>&nbsp; leaf bar {</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&nbsp; =
&nbsp; type string;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>&nbsp; }</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>}</div><div><br class=3D""></div><div>A valid =E2=80=9Cfoo=E2=80=9D=
 instance document (in JSON) would be:</div><div><br =
class=3D""></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>{</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&nbsp; =
&nbsp; =E2=80=9Cbar=E2=80=9D: =E2=80=9Cthis is a =
string.=E2=80=9D</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>}</div><div><br =
class=3D""></div><div><br class=3D""></div><div>Kent</div><div><br =
class=3D""></div><div><br class=3D""></div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D""><blockquote =
type=3D"cite" class=3D"">I am going by what ygot is producing. I had to =
change the yang-data to<br class=3D"">a container for ygot to work - =
perhaps this is the reason why the<br class=3D"">output is different? =
&nbsp;Not sure if this is quite right but I thought<br class=3D"">I'd =
just point it out.<br class=3D""></blockquote><br class=3D"">It seems =
that there should be an errata.<br class=3D""><br class=3D"">Kent, is =
there a way we can change the YANG to match things correctly?<br =
class=3D"">It seems that we might change:<br class=3D""><br class=3D""> =
&nbsp;&nbsp;// Top-level statement<br class=3D""> =
&nbsp;&nbsp;rc:yang-data voucher-artifact {<br class=3D""> =
&nbsp;&nbsp;&nbsp;&nbsp;uses voucher-artifact-grouping;<br class=3D""> =
&nbsp;&nbsp;}<br class=3D""><br class=3D"">to:<br class=3D""> =
&nbsp;&nbsp;rc:yang-data voucher {<br class=3D""><br class=3D"">=3D=3D=3D<=
br class=3D"">Or, do you think that we should changing the BRSKI =
document to match?<br class=3D""></div></div></blockquote></div><br =
class=3D""><div class=3D""><br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_152D9D99-5507-481D-A67E-CECAB0D000F6--


From nobody Tue Feb 11 03:25:29 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B98211200B7; Tue, 11 Feb 2020 03:25:24 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 imZCfNAOvqw0; Tue, 11 Feb 2020 03:25:22 -0800 (PST)
Received: from relay.sandelman.ca (relay.cooperix.net [176.58.120.209]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0F0F51200BA; Tue, 11 Feb 2020 03:25:21 -0800 (PST)
Received: from dooku.sandelman.ca (unknown [IPv6:2a02:8109:b6c0:52b8:584d:5a6f:7ed3:c298]) by relay.sandelman.ca (Postfix) with ESMTPS id 360581F459; Tue, 11 Feb 2020 11:25:20 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 7CAA31A1478; Tue, 11 Feb 2020 12:25:19 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Kent Watsen <kent@watsen.net>
cc: "M. Ranganathan" <mranga@gmail.com>, Kent Watsen <kwatsen@juniper.net>, anima@ietf.org, iot-onboarding@ietf.org
In-reply-to: <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com> <1556.1581357910@dooku> <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com>
Comments: In-reply-to Kent Watsen <kent@watsen.net> message dated "Tue, 11 Feb 2020 00:25:20 +0000."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Tue, 11 Feb 2020 12:25:19 +0100
Message-ID: <27564.1581420319@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/1EJOEPLrw25qJOYMFmSFwBdXHXg>
Subject: Re: [Iot-onboarding] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2020 11:25:25 -0000

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


Kent Watsen <kent@watsen.net> wrote:
    > The confusion is likely because folks expect that the =E2=80=9Cyang-d=
ata=E2=80=9D
    > extension define a node, but it doesn=E2=80=99t.  It acts more like a=
 YANG
    > =E2=80=9Cgrouping=E2=80=9D than a YANG =E2=80=9Ccontainer=E2=80=9D in=
 that regard. For instance, give
    > the YANG:

Okay, so are you saying that it has to be a voucher-artifact, not a voucher,
and the examples in BRSKI are wrong?
(That's really annoying)

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -=3D IPv6 IoT consulting =3D-




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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5Cjx8ACgkQlUzhVv38
QpAAKAf9EAEamZFlRj9fQZLfZiGyLo0rKjIN9mbmDobiND0VRZdC9K7HUmbtdnSM
3LnKVBQyyg4AfJM9vNDFMQ/cgshUVkiAgDeRFAptmSY7LB/E/DC3pKIPWhzACec9
Mxs7xLWwNFt+Xsjggo7VWRNiHkpG0PobK6qMSZNSSiard9RIEjCpPgS3REKQ799h
3FpS0fA1DFzuLRRhuCmCo7NX+4r6114qF/oagy/IQHBIRJLYheKS98M/BC+qtqvS
oHEk6smBVbSbea8UjGVelBq9ShjyJf6nhdBNhTWuVEk58eFeUjotD4yUJF6XuDUr
iHjvEmeNnXmli1OxKdnuPuX/hBuU8A==
=4Sbb
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Tue Feb 11 07:18:18 2020
Return-Path: <0100017034d44195-102b3d22-0c0f-48dd-b9f2-0487e81270f2-000000@amazonses.watsen.net>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB3D212013D; Tue, 11 Feb 2020 07:18:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level: 
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R4uBNIS2Ah4U; Tue, 11 Feb 2020 07:18:15 -0800 (PST)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E54612013F; Tue, 11 Feb 2020 07:18:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1581434293; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:Feedback-ID; bh=qVfPbUMAwFr+xJZp0O3Sh/1czj31BQI/h6fu3ST3rjQ=; b=HZ4fi2sxkTRS7bu53LO+8d2t6C7dapO/BqqGuPPVP8DD3kblg8XAWI12b0x495Fg BvEYFCy2l29Okqcprox8LSvchlBxnosXT6MTUaHgbzsmpnLidQUxQxlHMLbb0DgXtdN a6JgHF4t+VPtGHC305SIFNE5G/aThP7q2Svc3wEA=
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Kent Watsen <kent+ietf@watsen.net>
In-Reply-To: <27564.1581420319@dooku>
Date: Tue, 11 Feb 2020 15:18:12 +0000
Cc: iot-onboarding@ietf.org, anima@ietf.org, "M. Ranganathan" <mranga@gmail.com>
Content-Transfer-Encoding: quoted-printable
Message-ID: <0100017034d44195-102b3d22-0c0f-48dd-b9f2-0487e81270f2-000000@email.amazonses.com>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com> <1556.1581357910@dooku> <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com> <27564.1581420319@dooku>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.02.11-54.240.8.88
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/X6MZ9cZpZpF0YqReVNrS77syOMU>
Subject: Re: [Iot-onboarding] [Anima] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2020 15:18:17 -0000

> On Feb 11, 2020, at 6:25 AM, Michael Richardson =
<mcr+ietf@sandelman.ca> wrote:
>=20
>=20
> Kent Watsen <kent@watsen.net> wrote:
>> The confusion is likely because folks expect that the =E2=80=9Cyang-dat=
a=E2=80=9D
>> extension define a node, but it doesn=E2=80=99t.  It acts more like a =
YANG
>> =E2=80=9Cgrouping=E2=80=9D than a YANG =E2=80=9Ccontainer=E2=80=9D in =
that regard. For instance, give
>> the YANG:
>=20
> Okay, so are you saying that it has to be a voucher-artifact, not a =
voucher,
> and the examples in BRSKI are wrong?
> (That's really annoying)

I=E2=80=99m unsure what you mean by =E2=80=9Cit=E2=80=9D but, again, the =
examples in RFC 8366 are correct.
Note that =E2=80=9Cvoucher-artifact=E2=80=9D does NOT appear in the =
examples.

AFAICT, the examples in Section 3.3 in keyinfra-35 are also correct.

K.


From nobody Tue Feb 11 13:02:08 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CB62120132; Tue, 11 Feb 2020 13:02:04 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 pnAQ6isQnz_u; Tue, 11 Feb 2020 13:02:02 -0800 (PST)
Received: from relay.sandelman.ca (relay.cooperix.net [176.58.120.209]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17DE412006F; Tue, 11 Feb 2020 13:02:01 -0800 (PST)
Received: from dooku.sandelman.ca (unknown [46.183.103.8]) by relay.sandelman.ca (Postfix) with ESMTPS id 827DD1F459; Tue, 11 Feb 2020 21:02:00 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 64DC81A26A6; Tue, 11 Feb 2020 22:01:53 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Kent Watsen <kent+ietf@watsen.net>
cc: iot-onboarding@ietf.org, anima@ietf.org, "M. Ranganathan" <mranga@gmail.com>
In-reply-to: <0100017034d44195-102b3d22-0c0f-48dd-b9f2-0487e81270f2-000000@email.amazonses.com>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com> <1556.1581357910@dooku> <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com> <27564.1581420319@dooku> <0100017034d44195-102b3d22-0c0f-48dd-b9f2-0487e81270f2-000000@email.amazonses.com>
Comments: In-reply-to Kent Watsen <kent+ietf@watsen.net> message dated "Tue, 11 Feb 2020 15:18:12 +0000."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Tue, 11 Feb 2020 22:01:53 +0100
Message-ID: <2056.1581454913@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/45LyCclxHaEdrtC4AeAajMSvI1M>
Subject: Re: [Iot-onboarding] [Anima] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2020 21:02:05 -0000

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


Kent Watsen <kent+ietf@watsen.net> wrote:
    >> Kent Watsen <kent@watsen.net> wrote:
    >>> The confusion is likely because folks expect that the =E2=80=9Cyang=
-data=E2=80=9D
    >>> extension define a node, but it doesn=E2=80=99t.  It acts more like=
 a YANG
    >>> =E2=80=9Cgrouping=E2=80=9D than a YANG =E2=80=9Ccontainer=E2=80=9D =
in that regard. For instance, give
    >>> the YANG:
    >>
    >> Okay, so are you saying that it has to be a voucher-artifact, not a =
voucher,
    >> and the examples in BRSKI are wrong?
    >> (That's really annoying)

    > I=E2=80=99m unsure what you mean by =E2=80=9Cit=E2=80=9D but, again, =
the examples in RFC 8366 are correct.
    > Note that =E2=80=9Cvoucher-artifact=E2=80=9D does NOT appear in the e=
xamples.

By, "it", I meant the marker in the JSON:

    ranga> {
    ranga> "ietf-voucher:voucher-artifact": {

    > AFAICT, the examples in Section 3.3 in keyinfra-35 are also correct.

okay, I was worried it didn't work out. (Whew!!!)
What is it in the YANG that means the serialized JSON is
     "ietf-voucher:voucher" rather than "ietf-voucher:voucher-artifact"?

=2D-
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -=3D IPv6 IoT consulting =3D-

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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5DFkEACgkQlUzhVv38
QpAwAQf/XKH/OuRka5r1RVBMKuZZ8fzrbIkqC21l9pWpBtdeEPvnYcosZon4kIvr
/EcvCe+XbkGQCkUZ/vH46vNqMYE9+fJAzY/dZWYlE0MuoNTGrArOhbT35aS8DOci
+mbr3LXZW3VahvJaZuEOdBIndPdiqykK7QG0DNo+HDPZMbCnFv06D9JjS5oj9FcK
wneIhcxu73foEdvSoUf2bFzzt1U9pn49GFJ6JKPROre7oM/4SY38b5XfOcxQZ3xH
d7Q/5SnK+9fkt5Y0pmRnN3nJZyqcsikAbWYZATtycLSqfd8LFpgcMGhZQP46hIzz
/zXP+BUhoNjjuP2kork2XJRwyFDzIQ==
=Vlc0
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Tue Feb 11 16:01:05 2020
Return-Path: <0100017036b2e734-98b9ea60-f321-4ef1-92cf-c1243dc9d07c-000000@amazonses.watsen.net>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 74C0512006D; Tue, 11 Feb 2020 16:01:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level: 
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xLQo5ePRJ02r; Tue, 11 Feb 2020 16:01:01 -0800 (PST)
Received: from a8-83.smtp-out.amazonses.com (a8-83.smtp-out.amazonses.com [54.240.8.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EFAEC12004C; Tue, 11 Feb 2020 16:01:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1581465659; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=Do2YJ14hNNIyrh9SmwDZhEhS2PfmWU95FJU08WI5cKQ=; b=CA1U+v+T98dXoR1js8FzGW5ycBS0glDJgAuF8zFyP05ziTer1xFdNckFAoO4rpyt g98U3Dpwdq4Va24PJYSzSBHcdHBClNUYdPhMA6Jsc82edqxdgAU4UtmRV3ri/MBp4go gUfemuh3zAlXBryB4owroRZ5YKsBXdDFc68vvmuA=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100017036b2e734-98b9ea60-f321-4ef1-92cf-c1243dc9d07c-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_E78B1EED-B330-47A5-9848-4CFFAE7B38EA"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 12 Feb 2020 00:00:59 +0000
In-Reply-To: <2056.1581454913@dooku>
Cc: iot-onboarding@ietf.org, anima@ietf.org, "M. Ranganathan" <mranga@gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <CAHiu4JOMfY2oZb1TG5Lbbyb=Wd09+Ju9fOcBU5VcvmvmCQ7_ZQ@mail.gmail.com> <1556.1581357910@dooku> <0100017031a2d6ec-545e8e6a-1259-45da-a7da-1da0a461cce6-000000@email.amazonses.com> <27564.1581420319@dooku> <0100017034d44195-102b3d22-0c0f-48dd-b9f2-0487e81270f2-000000@email.amazonses.com> <2056.1581454913@dooku>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.02.12-54.240.8.83
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/Kz9JHcQBCIZZtP6AtkcwTy_QcIc>
Subject: Re: [Iot-onboarding] [Anima] RFC 8366: voucher artifact error in example?
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Feb 2020 00:01:03 -0000

--Apple-Mail=_E78B1EED-B330-47A5-9848-4CFFAE7B38EA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


>>>> The confusion is likely because folks expect that the =
=E2=80=9Cyang-data=E2=80=9D
>>>> extension define a node, but it doesn=E2=80=99t.  It acts more like =
a YANG
>>>> =E2=80=9Cgrouping=E2=80=9D than a YANG =E2=80=9Ccontainer=E2=80=9D =
in that regard. For instance, give
>>>> the YANG:
>>>=20
>>> Okay, so are you saying that it has to be a voucher-artifact, not a =
voucher,
>>> and the examples in BRSKI are wrong?
>>> (That's really annoying)
>=20
>> I=E2=80=99m unsure what you mean by =E2=80=9Cit=E2=80=9D but, again, =
the examples in RFC 8366 are correct.
>> Note that =E2=80=9Cvoucher-artifact=E2=80=9D does NOT appear in the =
examples.
>=20
> By, "it", I meant the marker in the JSON:
>=20
>    ranga> {
>    ranga> "ietf-voucher:voucher-artifact": {

Ranga=E2=80=99s question was if this should be the case.  The answer is =
=E2=80=9Cno=E2=80=9D and no errata is needed.



>> AFAICT, the examples in Section 3.3 in keyinfra-35 are also correct.
>=20
> okay, I was worried it didn't work out. (Whew!!!)

> What is it in the YANG that means the serialized JSON is
>     "ietf-voucher:voucher" rather than =
"ietf-voucher:voucher-artifact=E2=80=9D?

The "ietf-voucher:=E2=80=9D prefix appears because =E2=80=9Cietf-voucher" =
is the name of the module (i.e. ietf-voucher@2018-05-09.yang =
<mailto:ietf-voucher@2018-05-09.yang>).

The =E2=80=9Cname=E2=80=9D parameter of the =E2=80=9Crc:yang-data=E2=80=9D=
 statement has no effect on the serialized encoding.  Yes, the name is =
=E2=80=9Cvoucher-artifact=E2=80=9D, but that string never appears in =
instance documents.

What does matter is that the rc:yang-data=E2=80=99s immediate descendent =
is a =E2=80=98container=E2=80=99 node called =E2=80=9Cvoucher=E2=80=9D.  =
This string *does* appear in the serialized form.

Hence it is "ietf-voucher:voucher" rather than =
"ietf-voucher:voucher-artifact=E2=80=9D.

Kent






--Apple-Mail=_E78B1EED-B330-47A5-9848-4CFFAE7B38EA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D""><blockquote type=3D"cite" class=3D""><blockquote type=3D"cite" =
class=3D""><blockquote type=3D"cite" class=3D"">The confusion is likely =
because folks expect that the =E2=80=9Cyang-data=E2=80=9D<br =
class=3D"">extension define a node, but it doesn=E2=80=99t. &nbsp;It =
acts more like a YANG<br class=3D"">=E2=80=9Cgrouping=E2=80=9D than a =
YANG =E2=80=9Ccontainer=E2=80=9D in that regard. For instance, give<br =
class=3D"">the YANG:<br class=3D""></blockquote><br class=3D"">Okay, so =
are you saying that it has to be a voucher-artifact, not a voucher,<br =
class=3D"">and the examples in BRSKI are wrong?<br class=3D"">(That's =
really annoying)<br class=3D""></blockquote></blockquote><br =
class=3D""><blockquote type=3D"cite" class=3D"">I=E2=80=99m unsure what =
you mean by =E2=80=9Cit=E2=80=9D but, again, the examples in RFC 8366 =
are correct.<br class=3D"">Note that =E2=80=9Cvoucher-artifact=E2=80=9D =
does NOT appear in the examples.<br class=3D""></blockquote><br =
class=3D"">By, "it", I meant the marker in the JSON:<br class=3D""><br =
class=3D""> &nbsp;&nbsp;&nbsp;ranga&gt; {<br class=3D""> =
&nbsp;&nbsp;&nbsp;ranga&gt; "ietf-voucher:voucher-artifact": {<br =
class=3D""></div></div></blockquote><div><br class=3D""></div>Ranga=E2=80=99=
s question was if this should be the case. &nbsp;The answer is =E2=80=9Cno=
=E2=80=9D and no errata is needed.<br class=3D""><div><br =
class=3D""></div><div><br class=3D""></div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D""><blockquote =
type=3D"cite" class=3D"">AFAICT, the examples in Section 3.3 in =
keyinfra-35 are also correct.<br class=3D""></blockquote><br =
class=3D"">okay, I was worried it didn't work out. =
(Whew!!!)</div></div></blockquote></div><div><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D"">What is it in the YANG that =
means the serialized JSON is<br class=3D""> =
&nbsp;&nbsp;&nbsp;&nbsp;"ietf-voucher:voucher" rather than =
"ietf-voucher:voucher-artifact=E2=80=9D?<br =
class=3D""></div></div></blockquote><div><br =
class=3D""></div><div><div>The "ietf-voucher:=E2=80=9D prefix appears =
because =E2=80=9Cietf-voucher" is the name of the module (i.e.&nbsp;<a =
href=3D"mailto:ietf-voucher@2018-05-09.yang" =
class=3D"">ietf-voucher@2018-05-09.yang</a>).</div><div class=3D""><br =
class=3D""></div></div><div>The =E2=80=9Cname=E2=80=9D parameter of the =
=E2=80=9Crc:yang-data=E2=80=9D statement has no effect on the serialized =
encoding. &nbsp;Yes, the name is =E2=80=9Cvoucher-artifact=E2=80=9D, but =
that string never appears in instance documents.</div><div><br =
class=3D""></div><div>What does matter is that the rc:yang-data=E2=80=99s =
immediate descendent is a =E2=80=98container=E2=80=99 node called =
=E2=80=9Cvoucher=E2=80=9D. &nbsp;This string *does* appear in the =
serialized form.</div><div><br class=3D""></div><div>Hence it =
is&nbsp;"ietf-voucher:voucher" rather than =
"ietf-voucher:voucher-artifact=E2=80=9D.</div><div><br =
class=3D""></div><div>Kent</div><div><br class=3D""></div><div><br =
class=3D""></div><div><br class=3D""></div><div><br =
class=3D""></div><div><br class=3D""></div></div></body></html>=

--Apple-Mail=_E78B1EED-B330-47A5-9848-4CFFAE7B38EA--


From nobody Tue Feb 18 14:24:31 2020
Return-Path: <mranga@gmail.com>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C57E4120807 for <iot-onboarding@ietfa.amsl.com>; Tue, 18 Feb 2020 14:24:29 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dOJupCkQd7lG for <iot-onboarding@ietfa.amsl.com>; Tue, 18 Feb 2020 14:24:28 -0800 (PST)
Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 50FA3120823 for <iot-onboarding@ietf.org>; Tue, 18 Feb 2020 14:24:28 -0800 (PST)
Received: by mail-io1-xd33.google.com with SMTP id z16so24129038iod.11 for <iot-onboarding@ietf.org>; Tue, 18 Feb 2020 14:24:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=hu6sDDuyRnb3mS2h9PrpD6F7q9OMxXj+CHbixhcPXEI=; b=FZD8moPwE5FQTsZh0+2HMABwVPNnYenTra05JpjtY8Nj6flhom9eec+CXCmBtEl7SN n3p8h+rf9ZZP3nbGC2YG1k53yQl4j5thWpDbK51ussQjbT+X32aDDxBn9cYnPqP7XnrJ f+8y14ZYHQXPL7F2IKXyNAdZa+tQ3buChTmu49hdu8CYvivJuEg0y79kDhQv+0Ax34dy BpZT8/pqWSTmuipR/UR3d1PYdyysOnTIgHKTaovPwO0gAGG5H+sdGpO29sUF9JyMrt0L eSDwqg7G42+6sUmQJgciYyKo48zfJ89nvMArqWqt51NBvvDNZtjuYpTauadZp0oXIecG pToA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hu6sDDuyRnb3mS2h9PrpD6F7q9OMxXj+CHbixhcPXEI=; b=aGuAPg2LML4Rz2cBoOeI2zgh37+uHwTefATROdnFBjEF/mfPPljgvhrz7uwr56d1cj Xv2e8Md3U83m+Ujgr5vKe36FKiFE2UOezFXFAaSAWmde+dWILlIrDY+xD5JwDSURRpgp u6gQJwyehEZJsqU+ylOJohJbZ5fCMdOTbfewpnWCzSREeSs/9+KTQuI68uVwW28B3gRM w1gwmm6fKRM3q+tjm2KSrTvZaXcGfr9iWnXH4gQelpJ5x8ENteCrYrquFf2L7kLYqvNP aezIS4sx5BBXaCoJzRWZG5gT1PZ5EtVASoBR/NzMZ+0wrTiFRLc73pDrr2Hqqu0vg+1z 72jg==
X-Gm-Message-State: APjAAAXWbprnIlZ8eyHz69G4JVIVEguq4zmRAmucc/SDJ1ku77VyuahK RBcEJQw2OBbv9FUxK1bJJckZ7tD0AGvCx4RyM+0Ujxwg
X-Google-Smtp-Source: APXvYqwa/5ogL5S/VuI8giF026IaUQkaiTZnPzGrzxFLgo2fpegkBcMR8vmThCAvZSg2qyN9ckf/Pn6nqZ2+uHNZaDc=
X-Received: by 2002:a5e:924c:: with SMTP id z12mr17773250iop.296.1582064667197;  Tue, 18 Feb 2020 14:24:27 -0800 (PST)
MIME-Version: 1.0
From: "M. Ranganathan" <mranga@gmail.com>
Date: Tue, 18 Feb 2020 17:23:51 -0500
Message-ID: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com>
To: iot-onboarding@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/3dp5hZluzS7YKMePBbBIkWHwsZU>
Subject: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Feb 2020 22:24:30 -0000

Hello,

The BRSKI spec says that the pledge needs to send the proximity
registrar certificate when it requests a voucher. This establishes to
the registrar that it is the same pledge with whom it established a
TLS association. Can the server certificate be re-used if a different
pledge connects?

I don't understand the MITM scenario. An example would be helpful.

Thanks

Ranga

-- 
M. Ranganathan


From nobody Wed Feb 19 01:15:09 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 98D091200E9 for <iot-onboarding@ietfa.amsl.com>; Wed, 19 Feb 2020 01:15:06 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 HKc7MuhW8M_g for <iot-onboarding@ietfa.amsl.com>; Wed, 19 Feb 2020 01:15:04 -0800 (PST)
Received: from relay.sandelman.ca (relay.cooperix.net [176.58.120.209]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E78B120024 for <iot-onboarding@ietf.org>; Wed, 19 Feb 2020 01:15:04 -0800 (PST)
Received: from dooku.sandelman.ca (client-141-23-163-163.wlan.tu-berlin.de [141.23.163.163]) by relay.sandelman.ca (Postfix) with ESMTPS id BFF8F1F458; Wed, 19 Feb 2020 09:15:02 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 5BE3A1A2BAC; Wed, 19 Feb 2020 10:15:02 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "M. Ranganathan" <mranga@gmail.com>
cc: iot-onboarding@ietf.org
In-reply-to: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com>
References: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com>
Comments: In-reply-to "M. Ranganathan" <mranga@gmail.com> message dated "Tue, 18 Feb 2020 17:23:51 -0500."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Wed, 19 Feb 2020 10:15:02 +0100
Message-ID: <25486.1582103702@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/gFK-n29gPCPFyBsEJhoYKeC-cw4>
Subject: Re: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Feb 2020 09:15:07 -0000

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


M. Ranganathan <mranga@gmail.com> wrote:
    > The BRSKI spec says that the pledge needs to send the proximity
    > registrar certificate when it requests a voucher. This establishes to
    > the registrar that it is the same pledge with whom it established a T=
LS
    > association. Can the server certificate be re-used if a different
    > pledge connects?

The registrar uses the same certificate for all pledges.
The pledge puts that certificate into the voucher request, which is a kind =
of
witness to the connection.

    > I don't understand the MITM scenario. An example would be helpful.

Which specific scenario are you talking about?
A lot of situations turn out to be difficult to construct in a convincing w=
ay
because the device is authenticated by it's IDevID, and so a MITM would have
to have an acceptable IDevID as well.

=2D-=20
]               Never tell me the odds!                 | ipv6 mesh network=
s [=20
]   Michael Richardson, Sandelman Software Works        | network architect=
  [=20
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails  =
  [=20
=09

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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5M/JYACgkQlUzhVv38
QpAeLggAg1F8ixilBcYItspcunhIFSABkVpmvE8lOnxegjkVCYsyOByM2UD9r5e/
t6F7MVuxFK6/mxaHPSetIlC1E1daJCgz6nHBbKypz10fA5+NZuMAwhRYoB3S2xtP
HM7n73Ua9t8u2UI87jLURdGF145qQdQTBkef8Owicq+gRMeNdvhNhg23gojb46nR
gHcs0IgRjkI6tFMgHWvmmAXc61+ksC+EHeV2w08RWUM9D0Ps+OCGQ5BHB/axYlpA
H2UBTt8vAfYr0zQWt4hupeXWSdIesu9nWCd2oKtmuMQ8HnptBUmow6rZ4tT0/wJE
fITnkGVxjhcqf9pd6RW1eC/seEHagg==
=Q3/i
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Wed Feb 19 07:55:52 2020
Return-Path: <mranga@gmail.com>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2F7A1120169 for <iot-onboarding@ietfa.amsl.com>; Wed, 19 Feb 2020 07:55:51 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id voR_1fzS8SYg for <iot-onboarding@ietfa.amsl.com>; Wed, 19 Feb 2020 07:55:49 -0800 (PST)
Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 5B24D120154 for <iot-onboarding@ietf.org>; Wed, 19 Feb 2020 07:55:49 -0800 (PST)
Received: by mail-io1-xd2d.google.com with SMTP id m25so1075712ioo.8 for <iot-onboarding@ietf.org>; Wed, 19 Feb 2020 07:55:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=it4wPlC1Gv0rQs9Xul8uPL8/tCMRcf7qe/Xw2N2aTaI=; b=NKNuRem79Us/qjqOVJqS+YCQaIswLqY7JVdsEwasBxxPHnnkkMGM8oPdAUZVmpbatx KRFNMP3GsFvZkRNfZc9PiJrQyTbbfQPeEwn+aYxzSrBgqKbtw2gMYnDNGT5bddoeD1O0 V1dUFq332id8jjww29veEpt+sdpt5QjPcfk6s1U2YIPTbHskaqMQsRTaRh6bKev9+KAH F1UlhEs408Zz5m6MfR2trLFskHkxOyAYJv7qRS0kdU0F9mwKwur4Y9TS4vD+8ByK7kHE BEXnwSLlXz0aes+alz/CCicoW5yi/xyK8lSdcMlKjLKjj+wIGyHRBnxm9RSUbWFSSnle 3PsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=it4wPlC1Gv0rQs9Xul8uPL8/tCMRcf7qe/Xw2N2aTaI=; b=mFCqYjMxgQ5w5PFfpqyl944AqqpU7Ktxml5eVnp5LuRAdrWYShT68LfQvJXpRjZBH2 DhdL8ivWk1sS5aIHGKh9nT36LyX14qaG58EklkxUZ/5j6S2fndlGRAb8jDPb3aLBLF0/ qbdMITiQeLnR0UGCgyWBGaBEYiYCGw4OD00g1+7u4KrDxAK5+/+gOMZc7PvMg3t8aLWX +wM/HNTNDexiaLaz7iU64yMGJf89n4VmRa5bJcMGKmxFbv1VSwKejZK4JzeL/0VYsCqP huaQJHMjW6nlqUtjWogwZDU2B/fbntppVYZvQJ8yqVcSh4V40qdbojJmrNoTXi84KLFs ooqw==
X-Gm-Message-State: APjAAAU8Av3hh6G3Q529bUJI92c7FlHUciYZjiNTtezKOVmmFel0+GAy W3DxbmR+E6yzuDo3wb0Gd+xTxknQsl3YEUfaik0=
X-Google-Smtp-Source: APXvYqz1BNkqb6TSOLu4sHOaO9B2xndqDiWzV7jffP3yForLcdDF8wh+abLN2ApQNoLG1uHI+U7+tXydO0jcDhahgCk=
X-Received: by 2002:a6b:e601:: with SMTP id g1mr19991865ioh.55.1582127748425;  Wed, 19 Feb 2020 07:55:48 -0800 (PST)
MIME-Version: 1.0
References: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com> <25486.1582103702@dooku>
In-Reply-To: <25486.1582103702@dooku>
From: "M. Ranganathan" <mranga@gmail.com>
Date: Wed, 19 Feb 2020 10:55:12 -0500
Message-ID: <CAHiu4JO2oBKeTypA+opUMOhCcWeuxJ-Vi8=qzji8dUMbQ6fP7A@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: iot-onboarding@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/M5Iurw5pUBM2mEXfUjFhRSpsWYU>
Subject: Re: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Feb 2020 15:55:51 -0000

On Wed, Feb 19, 2020 at 4:15 AM Michael Richardson
<mcr+ietf@sandelman.ca> wrote:
>
>
> M. Ranganathan <mranga@gmail.com> wrote:
>     > The BRSKI spec says that the pledge needs to send the proximity
>     > registrar certificate when it requests a voucher. This establishes to
>     > the registrar that it is the same pledge with whom it established a TLS
>     > association. Can the server certificate be re-used if a different
>     > pledge connects?
>
> The registrar uses the same certificate for all pledges.
> The pledge puts that certificate into the voucher request, which is a kind of
> witness to the connection.
>
>     > I don't understand the MITM scenario. An example would be helpful.
>
> Which specific scenario are you talking about?

Thanks for your response.

In section 5.2 it says : The registrar confirms that the assertion is
'proximity' and that pinned 'proximity-registrar-cert' is the
Registrar's certificate. If this validation fails, then there is an
On-Path Attacker (MITM), and the connection MUST be closed after the
returning an HTTP 401 error code.

I was wondering about how that could occur and was trying to construct
a MITM attack which would be thwarted by having that certificate.

> A lot of situations turn out to be difficult to construct in a convincing way
> because the device is authenticated by it's IDevID, and so a MITM would have
> to have an acceptable IDevID as well.

The device signs the request with it's private key and likewise
accepts a Voucher signed by the MASA which it has the ability to
verify. How can a MITM intervene?




>
> --
> ]               Never tell me the odds!                 | ipv6 mesh networks [
> ]   Michael Richardson, Sandelman Software Works        | network architect  [
> ]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [
>


-- 
M. Ranganathan


From nobody Thu Feb 20 01:10:19 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7CFDE120868 for <iot-onboarding@ietfa.amsl.com>; Thu, 20 Feb 2020 01:10:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 9yMvbIMtxtYW for <iot-onboarding@ietfa.amsl.com>; Thu, 20 Feb 2020 01:10:01 -0800 (PST)
Received: from relay.sandelman.ca (relay.cooperix.net [176.58.120.209]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8BC4D1200D8 for <iot-onboarding@ietf.org>; Thu, 20 Feb 2020 01:10:01 -0800 (PST)
Received: from dooku.sandelman.ca (unknown [46.114.38.67]) by relay.sandelman.ca (Postfix) with ESMTPS id E9D0A1F481; Thu, 20 Feb 2020 09:09:58 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 4D5081A3B74; Thu, 20 Feb 2020 10:04:36 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "M. Ranganathan" <mranga@gmail.com>
cc: iot-onboarding@ietf.org
In-reply-to: <CAHiu4JO2oBKeTypA+opUMOhCcWeuxJ-Vi8=qzji8dUMbQ6fP7A@mail.gmail.com>
References: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com> <25486.1582103702@dooku> <CAHiu4JO2oBKeTypA+opUMOhCcWeuxJ-Vi8=qzji8dUMbQ6fP7A@mail.gmail.com>
Comments: In-reply-to "M. Ranganathan" <mranga@gmail.com> message dated "Wed, 19 Feb 2020 10:55:12 -0500."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Thu, 20 Feb 2020 10:04:36 +0100
Message-ID: <12970.1582189476@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/1Bwr5T6G2aQAW9QF2YW9rpNR_V0>
Subject: Re: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Feb 2020 09:10:08 -0000

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


M. Ranganathan <mranga@gmail.com> wrote:
    >> M. Ranganathan <mranga@gmail.com> wrote: > The BRSKI spec says that
    >> the pledge needs to send the proximity > registrar certificate when it
    >> requests a voucher. This establishes to > the registrar that it is the
    >> same pledge with whom it established a TLS > association. Can the
    >> server certificate be re-used if a different > pledge connects?
    >>
    >> The registrar uses the same certificate for all pledges.  The pledge
    >> puts that certificate into the voucher request, which is a kind of
    >> witness to the connection.
    >>
    >> > I don't understand the MITM scenario. An example would be helpful.
    >>
    >> Which specific scenario are you talking about?

    > Thanks for your response.

    > In section 5.2 it says : The registrar confirms that the assertion is
    > 'proximity' and that pinned 'proximity-registrar-cert' is the
    > Registrar's certificate. If this validation fails, then there is an
    > On-Path Attacker (MITM), and the connection MUST be closed after the
    > returning an HTTP 401 error code.

    > I was wondering about how that could occur and was trying to construct
    > a MITM attack which would be thwarted by having that certificate.

okay.
Let's assume use the BRSKI/ANIMA use case of ISP operators ("ISP-A")
So, assume multi-port router ("BFR1") at a peering data center (IX-A).

It is cabled to customers, to an IX switch, to the insides of the operator
network (maybe via long-haul fiber), and due to a human error (or enemy
action), it is also cabled into a cabinet of attackers who also happen to
have connectivity to the edge of the operator's network via another IX-B.

So, BFR1 sees Join Proxy announcements from:
1) ISP-B via the IX switch
2) CustomerC via the customer connection
3) ISP-A via it's long haul connection
4) nest-of-vipers "NV-D"

It runs BRSKI-EST with (4) first.
NV-D terminates the TLS connection to it's Rogue Registrar, presenting it's
Registrar Certificate to BFR1.   BFR1 pins this certificate into a voucher request.
NV-D then uses a Join Proxy belonging to ISP-A that it found at IX-B to form
a TLS connection to ISP-A's legitimate Registrar.  It uses an IDevID from a
a router (BFR2, same brand as BFR1) to form the TLS connection.
ISP-A's Registrar can't tell BFR1 from BFR2 at this point.

The Voucher-Request is then relayed from BFR1 via NV-D to ISP-A's Registrar.
(I can draw a picture if it will help)

ISP-A's registrar now has:
  1) TLS connection from NV-D's BFR2 with Client Certificate-2.
  2) Voucher-Request from BFR1 that pins NV-D's Registrar.

In thie case, ISP-A can see that the Voucher-Request pins a certificate which
is not it's certificate.  It also can see that the TLS connection is from
an entity other than that which signed the voucher-request, so it knows that
there was a (failing) attempt to MITM the connection.

    >> A lot of situations turn out to be difficult to construct in a
    >> convincing way because the device is authenticated by it's IDevID, and
    >> so a MITM would have to have an acceptable IDevID as well.

    > The device signs the request with it's private key and likewise accepts
    > a Voucher signed by the MASA which it has the ability to verify. How
    > can a MITM intervene?

Yes, it's because of those signatures that a MITM attempt is defeated.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [


--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-




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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5OS6MACgkQlUzhVv38
QpAR6wf/e4hf0CuBdQAps5mwkbQDsmeIMKn1nSmvZ0VRNq8sq2PSszaUnPwPjqyf
63THBxO+RcSt2t5iJnGYQpozu5trNDAveZgRWRq4Bcs12GZhw41tWnGstVz/Spez
4zkdMORhhveVbFRBsb6lnTREWGRrYMBT5z9BY4O4MWbGtRTiOFAgrDk9dcWnZ9gd
tGVSXmR7HAJCg38hojIRlrUYa+xW5+dtWpyWBHDp4JZIQaJyDY6I0kmqRfJ3iNpH
h1mvQdv6ZdVRbd+8z5Zbrjoi9Fm2Gf9kF2orZfnjoUVximnxWHg2+ZEdR1kYl+Y+
Nql0RWJ7l+Swh5BlXtGFsgzj/LMafQ==
=kZal
-----END PGP SIGNATURE-----
--=-=-=--


From nobody Thu Feb 20 13:46:39 2020
Return-Path: <mranga@gmail.com>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A545A1201CE for <iot-onboarding@ietfa.amsl.com>; Thu, 20 Feb 2020 13:46:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L40ma-jYi13j for <iot-onboarding@ietfa.amsl.com>; Thu, 20 Feb 2020 13:46:35 -0800 (PST)
Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 B465E12018B for <iot-onboarding@ietf.org>; Thu, 20 Feb 2020 13:46:35 -0800 (PST)
Received: by mail-il1-x133.google.com with SMTP id t17so24917326ilm.13 for <iot-onboarding@ietf.org>; Thu, 20 Feb 2020 13:46:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jkJjE5YnKH+x/Hh4z1fIZSs4C144twOXaMX+EPQJglM=; b=VC3ePNzWRAOD5xDHW3vNGfa9AOB1qtRXn9YwmZv8f2U6r6+y/zrJ58Arai1albquJd pjhXsNCJlHbY+KELlKFYvkeA7Lu3W/Nf/DRwOJ4RuVxPKkHszoo2zUGE4BkdK5X6sLNX UCK8aaas2ZOwVx7vLDX9ECQTUO3OfVAZh8NCXwMIYfaVGh4IikzAmGwmqEf0Ui0lIsyW x6+eCQjWg8OE9nQAqb/301NaHdNFcAkCVMwvxoNx7pGUYYXRvrG/MwQF/NTpZRe7x9SI o7ao1Bl7w2HGVGMHRilmIZE6X2rJ+ImfRy2uZISQNBkiFjTqZPouyxTaR+Zqm+62dBRh NMXg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jkJjE5YnKH+x/Hh4z1fIZSs4C144twOXaMX+EPQJglM=; b=AAdhh1BYG+peoQblUZ6qvzm417yyyfAThJuJPTfQElvk120IStqr3eGnaA6rhctu4U sz1SOPRGnk79NZXNkShL3zF0EvJam6jJV+bXjVMlJ4UrlzcNEBsH84eaN+b8IFir3txt wps88+ax4N7YU+67E0Fnxw075zsCdVhmqVTzTafOBcrPmlvwYZEwtC/g7ghbKgqiof5E O5V7DHxZj/doutrQ1XRHMrIYkrUqUfkTRWGaw1/51Lh3tVhta0hQAhI+KtBSnFCdzsoI w7BcOlSe9d7UGT+uTvEU41emrFEKX4hnGs9r6t0H1Q6KyCWfVMa3Xd9O62QNh/ZaoL5w uHAw==
X-Gm-Message-State: APjAAAWDrrC6Zsvv8fIYiWsiDqvvInRUQEoiYXEfa/o1+SrrTyEjFVIe V5Re6EMqRe2FUUuFlMt92DscgOuIgEZ+08pfLT7GO4lT
X-Google-Smtp-Source: APXvYqxCgpW4eAP3ddeC/hD9IcRc1J4e0/mPlPwsyiU7xwwOT7augsF7EgF8RWFeB6OrdY6WnxYETqeYAdTqSNWeW5M=
X-Received: by 2002:a92:8458:: with SMTP id l85mr32320059ild.296.1582235194864;  Thu, 20 Feb 2020 13:46:34 -0800 (PST)
MIME-Version: 1.0
References: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com> <25486.1582103702@dooku> <CAHiu4JO2oBKeTypA+opUMOhCcWeuxJ-Vi8=qzji8dUMbQ6fP7A@mail.gmail.com> <12970.1582189476@dooku>
In-Reply-To: <12970.1582189476@dooku>
From: "M. Ranganathan" <mranga@gmail.com>
Date: Thu, 20 Feb 2020 16:45:58 -0500
Message-ID: <CAHiu4JMKt_FwDa1rd=TfkU3eTZzom3pxfPbEthJ4Kcjvp7=fcw@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: iot-onboarding@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/sdQmcafHb0ImvsRyKG9LsY1f7QU>
Subject: Re: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Feb 2020 21:46:38 -0000

On Thu, Feb 20, 2020 at 4:10 AM Michael Richardson
<mcr+ietf@sandelman.ca> wrote:
>
>\
>
> In thie case, ISP-A can see that the Voucher-Request pins a certificate which
> is not it's certificate.  It also can see that the TLS connection is from
> an entity other than that which signed the voucher-request, so it knows that
> there was a (failing) attempt to MITM the connection.

Thanks. I think I get the attack scenario although a picture would
help if you have the time (back of envelope sketch will do).

One thing I am unclear of - lets assume the MITM succeeds and attacker
gets an unauthorized voucher. What damage can it do with this voucher?
It still does not have the private key of the legitimate device that
issued the voucher request so it cannot enroll anyway. Is that a
correct statement? (I agree it is a good design to prevent the MITM in
the first place). I suppose that could screw up the MASA if it is
maintaining a log. Anything else?

>
>     >> A lot of situations turn out to be difficult to construct in a
>     >> convincing way because the device is authenticated by it's IDevID, and
>     >> so a MITM would have to have an acceptable IDevID as well.
>
>     > The device signs the request with it's private key and likewise accepts
>     > a Voucher signed by the MASA which it has the ability to verify. How
>     > can a MITM intervene?
>
> Yes, it's because of those signatures that a MITM attempt is defeated.
>
> --
> ]               Never tell me the odds!                 | ipv6 mesh networks [
> ]   Michael Richardson, Sandelman Software Works        | network architect  [
> ]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>
>
>


-- 
M. Ranganathan


From nobody Fri Feb 21 12:00:37 2020
Return-Path: <mcr@sandelman.ca>
X-Original-To: iot-onboarding@ietfa.amsl.com
Delivered-To: iot-onboarding@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 76B8D12011D for <iot-onboarding@ietfa.amsl.com>; Fri, 21 Feb 2020 12:00:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.501
X-Spam-Level: **
X-Spam-Status: No, score=2.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=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 crJQ1XoPRCeZ for <iot-onboarding@ietfa.amsl.com>; Fri, 21 Feb 2020 12:00:24 -0800 (PST)
Received: from relay.sandelman.ca (minerva.sandelman.ca [IPv6:2a01:7e00::3d:b000]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C1E2212087A for <iot-onboarding@ietf.org>; Fri, 21 Feb 2020 12:00:24 -0800 (PST)
Received: from dooku.sandelman.ca (unknown [209.171.88.160]) by relay.sandelman.ca (Postfix) with ESMTPS id 202C21F458; Fri, 21 Feb 2020 20:00:23 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 7A51C1A2BAC; Fri, 21 Feb 2020 21:00:21 +0100 (CET)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: "M. Ranganathan" <mranga@gmail.com>
cc: iot-onboarding@ietf.org
In-reply-to: <CAHiu4JMKt_FwDa1rd=TfkU3eTZzom3pxfPbEthJ4Kcjvp7=fcw@mail.gmail.com>
References: <CAHiu4JPRyNT=DmykHw6KaU+Q6X_o70Zc_+i0NosM-zU_iiRSZg@mail.gmail.com> <25486.1582103702@dooku> <CAHiu4JO2oBKeTypA+opUMOhCcWeuxJ-Vi8=qzji8dUMbQ6fP7A@mail.gmail.com> <12970.1582189476@dooku> <CAHiu4JMKt_FwDa1rd=TfkU3eTZzom3pxfPbEthJ4Kcjvp7=fcw@mail.gmail.com>
Comments: In-reply-to "M. Ranganathan" <mranga@gmail.com> message dated "Thu, 20 Feb 2020 16:45:58 -0500."
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 25.2.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Fri, 21 Feb 2020 15:00:21 -0500
Message-ID: <19167.1582315221@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-onboarding/cX0cqQMAAv0jU_mtgjcRejpWqC8>
Subject: Re: [Iot-onboarding] BRSKI : proximity registrar cert and MITM question
X-BeenThere: iot-onboarding@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of IoT onboarding mechanisms <iot-onboarding.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-onboarding/>
List-Post: <mailto:iot-onboarding@ietf.org>
List-Help: <mailto:iot-onboarding-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-onboarding>, <mailto:iot-onboarding-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Feb 2020 20:00:36 -0000

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


M. Ranganathan <mranga@gmail.com> wrote:
    > <mcr+ietf@sandelman.ca> wrote:
    >>
    >> \
    >>
    >> In thie case, ISP-A can see that the Voucher-Request pins a
    >> certificate which is not it's certificate.  It also can see that the
    >> TLS connection is from an entity other than that which signed the
    >> voucher-request, so it knows that there was a (failing) attempt to
    >> MITM the connection.

    > Thanks. I think I get the attack scenario although a picture would help
    > if you have the time (back of envelope sketch will do).

Here is a diagram:
     https://github.com/anima-wg/anima-bootstrap/blob/master/diagrams/mitm-attack1.svg

    > One thing I am unclear of - lets assume the MITM succeeds and attacker
    > gets an unauthorized voucher. What damage can it do with this voucher?

If you get the voucher, then you own the device.
So this voucher would let the attacker force the router/device involved to onboard to
the attacker's network.  It would have to get the device to factory reset, and
be directly connected to the device.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-


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

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

iQEzBAEBCgAdFiEERK+9HEcJHTJ9UqTMlUzhVv38QpAFAl5QNtUACgkQlUzhVv38
QpC7fAf7ByCW3iDEys60/aC7PxIx4kXmLV9vc62sGzTt9T4l69Wg0TDDcUaA8LT6
7tu2gNsYLAdjCwtSAfky4LpNe1Kf1Aeb94cIYKPfbj8KC+Nh2mRfOWiKl+pbno2y
buOrm26KGxkq+k5kS1WTqJjyoJa7/gdmh8UeN5CC2zZqvJ+J9uPPiyA39Cpy9qfI
Y7NP1de1OENrL+p+gs+MV7sXoKAakrBvip3eDELW+/lk5NTZ9eWsHRKPqcsTnVvy
uJpWq1GyrN6kRoHubUHrmOrDUfQLqfwUgY9SODapBvWt9Uo2s4BCsgqNG0dFU0L8
LC1SGGQ28pjsGwj0KTMrcHbFKZlB7A==
=YMRU
-----END PGP SIGNATURE-----
--=-=-=--

