Re: [lamps] [saag] subordinate vs intermediate certification authority

Phillip Hallam-Baker <phill@hallambaker.com> Mon, 08 February 2021 19:36 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BA8753A1025 for <spasm@ietfa.amsl.com>; Mon, 8 Feb 2021 11:36:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level:
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 jcjUp8OwetY5 for <spasm@ietfa.amsl.com>; Mon, 8 Feb 2021 11:36:35 -0800 (PST)
Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 55A183A1022 for <spasm@ietf.org>; Mon, 8 Feb 2021 11:36:35 -0800 (PST)
Received: by mail-yb1-f174.google.com with SMTP id d184so4433378ybf.1 for <spasm@ietf.org>; Mon, 08 Feb 2021 11:36:35 -0800 (PST)
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=7lOxmcMaY1JR8iqWHCs7YbiRjSrmDoDI+yNM+AN/FZo=; b=HmcHIiPrS/4o0QbFCRfKO/8H8pqSoIv78ytKTWre+GDTdNJHGKq/qXJH6Ky+qkDyKL 0lmXoLWmPTUduLpgRenTJoZavJLS3Pkb453z1OkuJKdj2cRU6Hix20BHJspxmyKEJv1f +hpAm5wbZ1YW8LDF+FHWjiP5lN504yrJHGJFG473pM5rJCY7vy3CQAucAM04hxC6aIOb WUbcFIdrmBiq26qCyULIcDv30Pt/IK/X8hPTBgz1cdM0mLVUG8VQ3OQvyEmVhSMp7zHo 10dPL/by9DxbLKCXVrxBYiIBUsyRiGK/GnnjzJhuALGtnw5bMakiWXjzJO37wijbo226 A7Bw==
X-Gm-Message-State: AOAM5329AYhWQWMEhIpUtESNj76gtCc6hkFENi3zRbNNsbWHYrSv+pka 3Vfxo8InAECmlJyUkHyq9/BgOp56NgFrnrSDnPg=
X-Google-Smtp-Source: ABdhPJyi8rPshfJcK9QMhXVkOywh0yQ8ZwbZekN9mvUDOKtEIe3nU78pw5+LeV+AHfluCspK17dCbXoI4/Fe3wa2obw=
X-Received: by 2002:a25:aa6d:: with SMTP id s100mr1722100ybi.523.1612812994120; Mon, 08 Feb 2021 11:36:34 -0800 (PST)
MIME-Version: 1.0
References: <30833.1612411843@localhost> <5a88fc8c-dbd2-cc77-2b06-db0fd9da4da4@openca.org> <6108.1612645177@localhost> <CAErg=HHesEG1T+39WCgFGa---wzd884FQNGLndT35dvVAKf+kA@mail.gmail.com> <F54D454D-D8BF-48EC-91E2-8493E4E921A0@cisco.com> <CAErg=HFoN5qo=3i848eeyUXp4sNEGpaa-FRcpku=-N=97rP_jw@mail.gmail.com>
In-Reply-To: <CAErg=HFoN5qo=3i848eeyUXp4sNEGpaa-FRcpku=-N=97rP_jw@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Mon, 08 Feb 2021 14:36:23 -0500
Message-ID: <CAMm+Lwjf9Ne3dJ-=MBpR7J-FWx=MtB8q=ftTQOnGAN2112r-cQ@mail.gmail.com>
To: Ryan Sleevi <ryan-ietf@sleevi.com>
Cc: Eliot Lear <lear@cisco.com>, Michael Richardson <mcr+ietf@sandelman.ca>, LAMPS <spasm@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009a8f5705bad84946"
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/p1NJcdrIKVPk8BFU0j_wEy28mRg>
Subject: Re: [lamps] [saag] subordinate vs intermediate certification authority
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2021 19:36:37 -0000

On Mon, Feb 8, 2021 at 2:09 PM Ryan Sleevi <ryan-ietf@sleevi.com> wrote:

>
> On Mon, Feb 8, 2021 at 1:40 PM Eliot Lear <lear@cisco.com> wrote:
>
>> Ryan,
>>
>>
>> No one, anywhere, should ever pin to a CA that they don’t directly
>> control, and even then, they still shouldn’t :)
>>
>>
>>
>>
>> Pinning is just a poor-man’s attempt at a server controlling the client’s
>> trust anchors, and thus inevitably runs into issues, since client policy is
>> inherently _client_ policy. Especially important is never pinning to a
>> so-called “public” CA, precisely because their very existence is predicated
>> on client policy that is intentionally not controlled/controllable by
>> servers.
>>
>>
>> I think we’ve lost the point of the discussion.  In this case, the client
>> starts with just one CA in its trusted root cache, and maybe not any.
>> These are small devices, and that one cert is a manufacturer CA.
>>
>> When we are talking about pinning we are talking about an environment in
>> which a public CA cert is *somehow* involved.
>>
>
> Yes, and I'm explicitly telling you this is fundamentally unsafe and
> unsound by design :)
>
> You cannot simply "reuse" existing PKIs, bound by existing / other policy
> agreements, and expect a stable interoperability with a different policy
> authority.
>

The problem is deeper than that.

The PKIs bind keys to names. Neither the naming scheme of the WebPKI nor
the naming scheme of DNS is a remotely appropriate fit for IoT.

The policy incompatibilities are a consequence of the naming mismatch.

The device PKIs I have been involved with that used PKIX, all used a
namespace that was separate from everything else. And fo course, once you
do that, if the names don't have to be human readable, a direct trust model
in which the name is a fingerprint of the public key works much better.