[Add] Re: Hosting Encrypted Servers on CPEs / HTTPS for Local Domains

Lanlan Pan <abbypan@gmail.com> Wed, 28 August 2024 03:47 UTC

Return-Path: <abbypan@gmail.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B4CB4C14F74E for <add@ietfa.amsl.com>; Tue, 27 Aug 2024 20:47:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.004
X-Spam-Level:
X-Spam-Status: No, score=-1.004 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, GOOGLE_DOC_SUSP=1, HTML_FONT_FACE_BAD=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6_cqjvO7xFsB for <add@ietfa.amsl.com>; Tue, 27 Aug 2024 20:47:55 -0700 (PDT)
Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81A79C14F70D for <add@ietf.org>; Tue, 27 Aug 2024 20:47:55 -0700 (PDT)
Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5343e75c642so5542445e87.2 for <add@ietf.org>; Tue, 27 Aug 2024 20:47:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724816873; x=1725421673; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VDp5JJ6tDtSiQWOEIZYSMXAZOcaODH7C10CFTeTJ+NE=; b=hJvBnfUEMfuCNaXn4ltaMnOXENaQfUVnWLhK2AbFM1Bqj3WbJvWJIpCZ8pagBnwilb Z/P+AbkzQzLktt+9BW69BBI9V64ndE91Wo8nfuU1hN+fgwrnzDvYZOuJJTznJqbsq019 u0tllrGfd2yD9coVblRHsHkdr0YhJkq8qN1dMrgedfVHi3dVXS03NWdPcXV7k8OI18Ar aEcfVGyrTvAPQyMWkLR+hUy5yIVljBeNBEoaiqhGgNHYPuKkpXOmY6Z+xFubHx5sYCS+ BPtXoN2Q5aJWVxoWSpJjTvOGAb+O2Ph69zf6M3ChqV5gQHREHgy1sp2ElDx2PI88oO6S h8DQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724816873; x=1725421673; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VDp5JJ6tDtSiQWOEIZYSMXAZOcaODH7C10CFTeTJ+NE=; b=qm2dL5hkbZl+3Ex8udanAZbjmX2lBcoZeJ52DIQrorNPt6RJ5Qa8YNxRjGQaqVREHr O2Y38OA0GKpsdaU9Pqxf1ABySy+NZ8ChC5CP3OtnTkOzRZBPF6QjWxEUfZWkNqM7d9PV tyjQ8TNPDLhkyGmrrylYNP4f/YLJ9iR2u9Ebh8KgQTYDAgDPJuLgDtQBv6RVqCdDltAy ixjd5gRQdbmG5DRs/n02maz+QcbjqNj83C3ePB+YY5KUpRmaovUygSLNVdv1UVcObJt6 Dacqu5Qm2g/tEmFUb/TfzWTe5Fcmoz1Rvtvz00MS8PLxMHv4RfjylBXQnWbFacVK7mbB 5eVg==
X-Forwarded-Encrypted: i=1; AJvYcCVFLIu4/OTyQXQDctBOHgkICZAV62BDeO+2Vgug6AKrDkIJEKnUOq1GtCcadf4RGK+kEC0=@ietf.org
X-Gm-Message-State: AOJu0YyCOQnKJ/ml9YPo4cii2m4Oe/gA0ZPH8HIhvhtCW81uoVY5NRRI TVY3Sndz5t0chV0KkhARUdE/U68DCrKQVCdFt59ffGE/AFEeo4UpPWfO2fCs1ycE5aH2nkn2YD0 GC14ZQ9C10E7rVcaweL+oeN2ZHZU=
X-Google-Smtp-Source: AGHT+IGidSUZwBxJyhjPsVxbw/uC0t0yKYyvif6YvK/FDn+xM7dIAT2Odkp2ZcTN3z+9/V10BNz8fWihwN8M3PKTDzk=
X-Received: by 2002:a05:6512:3e19:b0:533:4722:ebbe with SMTP id 2adb3069b0e04-5343883b0d9mr11428062e87.26.1724816872202; Tue, 27 Aug 2024 20:47:52 -0700 (PDT)
MIME-Version: 1.0
References: <6FCA933A-F329-4B45-9C72-32FFCAD289BE@gmail.com> <CACJ6M16MgxzE+8Yiebd9hbYC_tY2tt0Sroc4_izOnP3kO3e5fQ@mail.gmail.com> <MW4PR15MB437956E8735320FFE83037C7B3952@MW4PR15MB4379.namprd15.prod.outlook.com>
In-Reply-To: <MW4PR15MB437956E8735320FFE83037C7B3952@MW4PR15MB4379.namprd15.prod.outlook.com>
From: Lanlan Pan <abbypan@gmail.com>
Date: Wed, 28 Aug 2024 11:47:40 +0800
Message-ID: <CANLjSvU85BaOSWP462KPHHjNNtwS3D5GRJrfqS68ekeT_pbfMg@mail.gmail.com>
To: Ben Schwartz <bemasc=40meta.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f86af20620b638d2"
Message-ID-Hash: OP77SHUBAS6DK7DBCCYQTRPI5PQJZFTF
X-Message-ID-Hash: OP77SHUBAS6DK7DBCCYQTRPI5PQJZFTF
X-MailFrom: abbypan@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Chris Box <chris.box.ietf@gmail.com>, Dan Wing <danwing@gmail.com>, "add@ietf.org" <add@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Add] Re: Hosting Encrypted Servers on CPEs / HTTPS for Local Domains
List-Id: Applications Doing DNS <add.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/ddd6TRRXx7FICO2Oi2MKpgKNbaE>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Owner: <mailto:add-owner@ietf.org>
List-Post: <mailto:add@ietf.org>
List-Subscribe: <mailto:add-join@ietf.org>
List-Unsubscribe: <mailto:add-leave@ietf.org>

Using Matter identity model:
1) CPE acts as commissionee device:
The commissionee device (CPE) should make spake2+ pairing with commissioner
device (such as mobile phone),   send its device attestation to
commissioner device, finally get its certificate from commissioner device.
CPE certificate is provided by commissioner device (such as mobile phone),
not a typical TLS certificate with domain names.
CPE certificate can identify the CPE itself  to other commissionee devices,
because they are all pairing with commissioner device, following the same
self-signed root certificate trust chain.

2) Alternatively,  CPE acts as commissioner device:
CPE provides its self-signed root certificate trust chain.
Each commissionee device make wi-fi connection with CPE,  gets CPE's
self-signed root certificate trust chain.
Commissionee device doesn't have its own certificate, but only get CPE's
certificate.
CPE certificate can identify the CPE itself to the commissionee devices,
use some *.local domain name as the TLS certificate subject name.


Commissionee device store the CPE certificate self-signed root certificate
trust chain:
1)  write into local system trusted root ca store
If write into local system trusted root ca, it could extend into web
browsers and the operating system.
But write a self-signed root into local system trusted root ca store will
increase the TLS hijack risk.

2)  Alternatively, write into a specific root certificate store only for
local visit
The specific root certificate store path  should be assigned to a
well-known path, and only for local visit use.
Stub resolver/browser should extend to read the specific root certificate
store, and visit local website (DoH, or the router management console)
follow the chain.


I think this is more secure:  CPE acts as commissioner device, and
commissionee device write the CPE certificate self-signed root certificate
into a specific root certificate store only for local visit.

Best Regards,
潘蓝兰(Pan Lanlan)

Ben Schwartz <bemasc=40meta.com@dmarc.ietf.org> 于2024年8月28日周三 09:24写道:

> After the session we had a brief chat about this topic, and talked a bit
> about the Matter/Thread ecosystem, which is an example of an ecosystem that
> has attempted to solve the problem of bootstrapping trusted identities for
> physically nearby network hardware.  Notably, it does not appear to rely on
> X.509 certificates for globally unique DNS names, like a typical TLS PKI.
>
> I would be interested in whether the Matter/Thread device identity model
> could be used to identify the CPE itself (which is often a "Thread border
> router"), and whether that identity could be extended into web browsers
> (for accessing the router management console) and the operating system (for
> verifying the router's identity at the link layer, and potentially building
> up verification from there to higher layer services like DNS).
>
> --Ben
> ------------------------------
> *From:* Chris Box <chris.box.ietf@gmail.com>
> *Sent:* Saturday, August 24, 2024 10:25 AM
> *To:* Dan Wing <danwing@gmail.com>
> *Cc:* add@ietf.org <add@ietf.org>
> *Subject:* [Add] Re: Hosting Encrypted Servers on CPEs / HTTPS for Local
> Domains
>
> Hi everyone After a burst of discussion in Vancouver, this list has now
> been silent for a month. My impression from the meeting is that we have a
> widespread feeling that ADD isn't the correct venue for this problem. Ben
> was quoted in the
> Hi everyone
>
> After a burst of discussion in Vancouver, this list has now been silent
> for a month.
>
> My impression from the meeting is that we have a widespread feeling that
> ADD isn't the correct venue for this problem.
> Ben was quoted in the minutes with:
>
> I think the right answer here requires deeper
> thought, and possibly going to the W3C and finding a new URI
> scheme instead of "https" to represent local network
> devices.
>
>
> In an effort to try and move this along, I'll ask: where do *you *think
> this should go?
>
> Chris
>
> On Wed, 24 Jul 2024 at 21:24, Dan Wing <danwing@gmail.com> wrote:
>
> ADD WG,
>
> While working to provide TLS for encrypted DNS on CPE, Tiru Reddy's
> IETF119 ADD presentation made it clear ADD had bumped into a larger
> problem: IETF and the industry has not documented how to best get
> certificates onto CPE.  A few companies (McAfee, Mozilla, Cujo) have
> deployed a system where a unique FQDN is assigned to each CPE (e.g., to the
> DNS server) and the CPE requests a vendor-operated cloud service to get
> that certificate signed by a CA and returned to the CPE and CPE uses that
> CA-signed certificate for incoming TLS connections.  Such a system works
> but the disadvantages are needing to get millions of certificates
> continually signed by the CA (short-lived certificates) and continued
> reliance on the vendor to operate the certificate-signing service.
> Experience is that an exception is necessary to overcome the CA's normal
> rate limit.
>
> There are two documents that discuss such a system, its drawbacks, and
> also explore some other system designs:
>   - Martin Thomson's "HTTPS for Local Domains" (*, below), and
>   - draft-rbw-add-encrypted-dns-forwarders (**, below).
>
> Please read them prior to Thursday's ADD meeting, as I will only spend 3-4
> minutes presenting and the rest of the time will be microphone discussion.
>
>
> I am hoping there are authors interested in writing a problem statement
> document (if consensus is existing practice is too difficult) or writing a
> BCP/Informational document on such a vendor-operated service (if consensus
> is continue existing practice).
>
> -d
>
>
> (*) Martin Thomson's "HTTPS for Local Domains",
> https://docs.google.com/document/d/170rFC91jqvpFrKIqG4K8Vox8AL4LeQXzfikBQXYPmzU/edit
> <https://urldefense.com/v3/__https://docs.google.com/document/d/170rFC91jqvpFrKIqG4K8Vox8AL4LeQXzfikBQXYPmzU/edit__;!!Bt8RZUm9aw!7NrFT-OD2YA0YvBly3H9PFhBLw2gdmCZmfBpntETQE0TJhHRYMFrMva9wtxbgyiZw6H1PiBRbeV8W2_JF3YS$>
> , https://tinyurl.com/https-for-local-domains
> <https://urldefense.com/v3/__https://tinyurl.com/https-for-local-domains__;!!Bt8RZUm9aw!7NrFT-OD2YA0YvBly3H9PFhBLw2gdmCZmfBpntETQE0TJhHRYMFrMva9wtxbgyiZw6H1PiBRbeV8W1lu4Aod$>
>
> (**) "Hosting Encrypted Servers on CPEs" slide deck for IETF120 ADD
> meeting, https://datatracker.ietf.org/meeting/120/session/add
> <https://urldefense.com/v3/__https://datatracker.ietf.org/meeting/120/session/add__;!!Bt8RZUm9aw!7NrFT-OD2YA0YvBly3H9PFhBLw2gdmCZmfBpntETQE0TJhHRYMFrMva9wtxbgyiZw6H1PiBRbeV8WwG8mYuZ$>
>       "Hosting Encrypted DNS Forwarders on CPEs",
> https://datatracker.ietf.org/doc/draft-rbw-add-encrypted-dns-forwarders/
> <https://urldefense.com/v3/__https://datatracker.ietf.org/doc/draft-rbw-add-encrypted-dns-forwarders/__;!!Bt8RZUm9aw!7NrFT-OD2YA0YvBly3H9PFhBLw2gdmCZmfBpntETQE0TJhHRYMFrMva9wtxbgyiZw6H1PiBRbeV8WypLQL9h$>
>
> --
> Add mailing list -- add@ietf.org
> To unsubscribe send an email to add-leave@ietf.org
>