Re: [dhcwg] preliminary comments on draft-ietf-dhc-sedhcpv6-17

Lishan Li <lilishan48@gmail.com> Tue, 15 November 2016 07:27 UTC

Return-Path: <lilishan48@gmail.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0FE8512956B for <dhcwg@ietfa.amsl.com>; Mon, 14 Nov 2016 23:27:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level:
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 oJLg0nfircXF for <dhcwg@ietfa.amsl.com>; Mon, 14 Nov 2016 23:27:48 -0800 (PST)
Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (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 0B030129A14 for <dhcwg@ietf.org>; Mon, 14 Nov 2016 23:27:48 -0800 (PST)
Received: by mail-qt0-x22f.google.com with SMTP id w33so62489872qtc.3 for <dhcwg@ietf.org>; Mon, 14 Nov 2016 23:27:47 -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; bh=qbQV5dUF8YrE5MEp/COOGDwq/g4+GrILtFhtpGfLoTE=; b=Dho1ctOQITQlNf4j5ArM7xwd69pdqvGUajU7TtBjmqXbgSU3ExEIs3s4ujDyej4D/c 7eFdWUhUtZCAwTQqHfyhHBpKk8Xsag14E1ydeC0mYdAO0q0ANl+Yr71ZqZaqbYbXi6AX tVjlVCsIeIKUt7embz4ojhSawpK9x/I9CwKSivKH6/UNVDWLqFFashHyI++VWiirrRqC YeQQJ1E6UmQbxtSfi6BI2KcUCuGjV7DPcbgKnN26LtmrJmyEECjxO+taj955DLNfWv+E d2JIMRIgFAU5aQ+ucE7bfqFVYWVhtTq4hN/t2nLrALJ1uqflzHvQVZ/Ee4z+mKly60gi sEMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qbQV5dUF8YrE5MEp/COOGDwq/g4+GrILtFhtpGfLoTE=; b=I+VJAh4bzoPIA7/zJ5hRJQKVB5MubifgyDpq3OR66/y5m2Ik5cP08Q/tIzVRi+y1gF S1fUs2avtPH+YqyjypgJd6/dPo61uQMR2oZLlqWjIhMt7ZMvdNUupM80QqIZNpXf4Fz7 ILLcDmJ26RoPD6DardWQFuk8OdvCKysyjkh6anIo//dSQ6zN6D57TjyvFpuw1PDgVr0p ztBBRk20DEyjPCzx7/3mMxcpWvAw4O25OnE2BJ5XJqs0MNvYB5lYJLw1fvLgpUDue0EQ RV3otw088MrQTlR8rhhQY7843vXhTi7InzlxjWru91WVzW/LUHNVl3JUzu/VWE3ljvpT MyHw==
X-Gm-Message-State: ABUngvcSnJ3FkjDzVSTNqq050/0CKr0gW8T8pOBLky6xfB35vBMd8Gfzs+4W8oiZ8v7s7thr93diWQXZZYhSww==
X-Received: by 10.237.33.240 with SMTP id m45mr9077429qtc.250.1479194867019; Mon, 14 Nov 2016 23:27:47 -0800 (PST)
MIME-Version: 1.0
Received: by 10.237.62.242 with HTTP; Mon, 14 Nov 2016 23:27:46 -0800 (PST)
In-Reply-To: <CAJE_bqc8hkrc3dYefTPWi-mUCtZD+oYsrobCK1KjmVGRnNfMCw@mail.gmail.com>
References: <CAJE_bqebwr2WUUgaNgiYS4_8L77Gxj4Os+oPRG407B6ELMEhCQ@mail.gmail.com> <CAJ3w4Ndi5Gq63n5kZnanRhLM8nWE2wsWGh0kJJLJnq=VoXLuCg@mail.gmail.com> <CAJE_bqegh1DfWjfK2BxeC_fWa0cEk-KJNP0AT-TQuEa39w_wVQ@mail.gmail.com> <CAJ3w4NdM99nv4C19Xj=aosNme+_Ymyys=xQ3UWUfeZReZC4ckA@mail.gmail.com> <CAJE_bqdhGZnK16MooiyujDgthDNnR74EiwW0OevrN6uq4b4ANw@mail.gmail.com> <CAJE_bqfKUZe2yaW1sAq7rrib0M7wz28HHtPLqCHK=vXcN6amgg@mail.gmail.com> <CAJ3w4Nd3s+ZojjiotLkKwys6truhUgK6F-90UYjcpB9iw=fKKQ@mail.gmail.com> <m2r36nuqvn.wl%jinmei.tatuya@gmail.com> <CAJ3w4NeuNYTrX4p5rtZ6UceD5ydQ-B-vY6aqQzxWnXsrDOEFEA@mail.gmail.com> <CAJE_bqdh-bgk7BHZJnaFFBr3PDj4ZnSSGeGNdQ70F7dv91iQrA@mail.gmail.com> <CAJ3w4NfU9PrC9a+MGnJ=Es1yir_asHB3p1=9GfxZZ0iSe+At+Q@mail.gmail.com> <CAJE_bqfRBYkrniWQ+vtPULTURnvyV792QNGvr8JhhZpGQ0MSdA@mail.gmail.com> <CAJ3w4NerRzHYsRqcUAkAjHX23PYVF4Jv0wKcd33vXRRg+-0EAQ@mail.gmail.com> <CAJ3w4NekPk0TuAZW_jmTDYQHd8JP3GsrA0qrKYrnyqSSk3qwxw@mail.gmail.com> <CAJE_bqc8hkrc3dYefTPWi-mUCtZD+oYsrobCK1KjmVGRnNfMCw@mail.gmail.com>
From: Lishan Li <lilishan48@gmail.com>
Date: Tue, 15 Nov 2016 15:27:46 +0800
Message-ID: <CAJ3w4NejrFAT3RK7i0W46HkQNJjhPxbhzQiL=3fcrceidTzHNQ@mail.gmail.com>
To: 神明達哉 <jinmei@wide.ad.jp>
Content-Type: multipart/alternative; boundary="001a11394d429a3bc8054151e4db"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/BCMI6JiOmefTJPjvsaZ4U8dzrJ0>
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>
Subject: Re: [dhcwg] preliminary comments on draft-ietf-dhc-sedhcpv6-17
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Nov 2016 07:27:50 -0000

2016-11-15 1:24 GMT+08:00 神明達哉 <jinmei@wide.ad.jp>:

> At Tue, 15 Nov 2016 00:16:41 +0800,
> Lishan Li <lilishan48@gmail.com> wrote:
>
> > >> Alternatively, we might add both an EA-id and SA-id fields to the
> > >> option:
> > >>
> > >>     0                   1                   2                   3
> > >>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> > >>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >>    |      OPTION_CERTIFICATE       |         option-len            |
> > >>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >>    |            EA-id              |            SA-id              |
> > >>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >>    |                                                               |
> > >>    .                  Certificate List(variable length)            .
> > >>    |                                                               |
> > >>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >> (I'm not sure if this has to be a list of certificates instead of one
> > >> certificate, but that's a different question).
> > >
> > >
> > >> And we can use a value of 0 for EA-id and SA-id to mean this
> > >> certificate is not supposed to be used for encryption and signature,
> > >> respectively.  (The combination of 0, 0 makes no sense so we should
> > >> probably prohibit the use of it explicitly).
> > >>
> > > [LS]: So, there is no need to define a new field. The EA-id and SA-id
> are
> > > used to identify the certificate type.
>
> If you use this approach, correct.  Note, however, that I'm not
> necessarily pushing a particular approach at this time.  I'm just
> showing various possible approaches for discussion.  You may want to
> consider pros and cons of these approaches yourself.
>
> > > And the certificate list field should be changed to certificate field.
> If
> > > multiple
> > > certificates are contained, then multiple certificate option is
> contained.
>
> Regarding this, I'm not sure.  Basically the choice of EA-id and SA-id
> should be fixed (it should be the most preferred one for the server,
> and it's known that the client supports it), so the question is
> whether we want to make it possible to include multiple different
> certificates for that combination of EA and SA.  That sounds to me
> like an unlikely scenario in practice, although being flexible/generic
> itself is not necessarily bad.
>
> > [LS]: In this way, the certificate option and Signature option all
> contain
> > the SA-id field. And the content of the two SA-ids are same.
>
> Yes (otherwise the recipient should treat it as an error condition).
>
> BTW this makes me notice one related issue: it doesn't seem to be
> possible for a server to identify the private key to decrypt the
> message contained in an Encrypted-message Option contained in the
> Encrypted-Query message unless it tries all private keys it might be
> used.
>
[LS]: The private key which is corresponding to the public key for
encryption
algorithm is used for decryption. After sending the Reply message, the
message
transaction-id is used as the identifier of the private key for decryption.