[COSE] Re: extending application/cose-x509

Thomas Fossati <thomas.fossati@linaro.org> Fri, 03 October 2025 19:14 UTC

Return-Path: <thomas.fossati@linaro.org>
X-Original-To: cose@mail2.ietf.org
Delivered-To: cose@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 0C1DE6D09E27 for <cose@mail2.ietf.org>; Fri, 3 Oct 2025 12:14:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=linaro.org
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G9eZfdZVVZqc for <cose@mail2.ietf.org>; Fri, 3 Oct 2025 12:14:39 -0700 (PDT)
Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 mail2.ietf.org (Postfix) with ESMTPS id A45056D09E22 for <cose@ietf.org>; Fri, 3 Oct 2025 12:14:39 -0700 (PDT)
Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-36527ac0750so25217371fa.3 for <cose@ietf.org>; Fri, 03 Oct 2025 12:14:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759518878; x=1760123678; 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=1Ha92NP0rI0lcfcHoVq4cV6rHvy7XTQehD9P2/xvpFA=; b=MSGSEdALd53qd2dFV6atjcgglDHso/vJfT+CozH98/K9eM41BJoaw9BPf4Bgil7vn4 KXv+ZkHe/MDNgd/cRU6y9k+zCrUjI+P4gIaQNc2RApTrAEP3MvPUU1L3RbXNj1JVgvfi AvYoBihWk/tNUTksa/V1/Ve9rxyxc27YJb5xr1Km2CTT6ArrqWQE+XBMxDJqZjcYVsGi oFrEO2bgJ8t7saFyteH84AIiyMexDIairnqAaQ+VrVzo1D03svoiK5JZZoYP3uLCDLU0 X0ovnfmjPAyTRyxpWyYN3BoEBdcZnO+YRsjOviVxEx1oqycw624PGUa+KGGEV5KMpt3n 4cXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759518878; x=1760123678; 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=1Ha92NP0rI0lcfcHoVq4cV6rHvy7XTQehD9P2/xvpFA=; b=aSPcsqE6xfk5cA37fAkthkk1NpT8mIvXv1lyOrucrfyfm4Ea6A0vgu29CxQnMoa4uu Ic4w3OLy/dNJzTrAoZX6ZC9jZKZ2Jzi1ZL9kK/k9/JxsyZGuzYnohE460ef9KdS7zTUZ RNpzwmtc5UN8+Y4ZwSvCRHTFeoMG1aSa7rgKcltutifAWdGFItTUEW8LSXA+pZTO82KJ 10rO3mPBamysqXSN/rdssMobYJsZkQ89MpWo0EYM/10NXJ3YzVxVypqgmfBc7kJVP/i0 36DzC4H+InBFt9R2ARE1X0+lFzlAv4v5a+oAdJSa8OGQ67RFWzP5KIH7K3rcyWcJxeUP XiHw==
X-Gm-Message-State: AOJu0YwfygN1SlzmBeZiAZXX/vf5ZWsFMQUn1HW/nGbp7T4arhyyNu0G OPrmbM6J/+TAGr8Oy3c2EGYLiTmSaoFLNYdS20sbOJGZDBM+dvQGPWARSfu0Rl18ObwUt9luSEz /nrWGWmbyZK8q8o85TkNAN4n2cyEgtVEbULSFdcVFclIGXJVuMcShJtr5cw==
X-Gm-Gg: ASbGncs9dyxXDFbUNuq9qQybDor+dicI69ID+RoByYbnrzUM40P2+kbEK/+Ci9fZYxe DG/umPdNEY2Z0emOVS9sH/yf7u265ulH/G6ozxDfcBbWAmXLKSKWN54Da64B01kP1CHDr5DcpOJ 13FGy65tDZUEAhczQ1ZJ5BFl2oRkiDiVvsbD2p73Du6X+dWWdszDznzZyXA+6aBY73E1qS4ZuhH M3KwyFFbmzqg+mJ0v+4HnePI9kWpUjfL51HXZ+Kmgnmi6C0UlSaNiKquVhtpQIWQX8ABDSgo9Gm Y7s4fRpMfcOyBLdWKzoDBpwZM4QaIEQAb5tf0pd0rve/1w2OKfbEyRzsboUZqQS3lySFthuOwFi gxpie4hSA+Q1RGJDtd905ckIk/D0PR1I+9V0=
X-Google-Smtp-Source: AGHT+IEtRqfC2RXcAozm+CFWUk7dGTqJyDGq9kbNfijSzRfCsCe/LYDNUFNHbQB3BPgCFN15jOaBkb1CnShoCAWCTH8=
X-Received: by 2002:a05:651c:b20:b0:36a:3817:8991 with SMTP id 38308e7fff4ca-374c3713df3mr10826611fa.16.1759518878068; Fri, 03 Oct 2025 12:14:38 -0700 (PDT)
MIME-Version: 1.0
References: <CA+1=6ydHCGoDoUXS2ayHJ-TV2TXZex-Sw+e-Hb=oZ=4FgJWCvg@mail.gmail.com> <16285.1759508921@obiwan.sandelman.ca>
In-Reply-To: <16285.1759508921@obiwan.sandelman.ca>
From: Thomas Fossati <thomas.fossati@linaro.org>
Date: Fri, 03 Oct 2025 21:14:21 +0200
X-Gm-Features: AS18NWARm6tsvBOSpsDgfOl14sD4UeIjLZn3Gzg2NTF9XNRZwU3p6z9vBSS8KtI
Message-ID: <CA+1=6yc_eYwBizMpNP3WBCDYFN=SNMuEn8bErhrSsNOLXWtVjg@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Content-Type: text/plain; charset="UTF-8"
Message-ID-Hash: Y7NZI2JGCSU4T6JCVR4Y6NUIPKLWGKDS
X-Message-ID-Hash: Y7NZI2JGCSU4T6JCVR4Y6NUIPKLWGKDS
X-MailFrom: thomas.fossati@linaro.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: cose <cose@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [COSE] Re: extending application/cose-x509
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/g-o8OL7g5IIaHdGBUkpSvCPsLss>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Owner: <mailto:cose-owner@ietf.org>
List-Post: <mailto:cose@ietf.org>
List-Subscribe: <mailto:cose-join@ietf.org>
List-Unsubscribe: <mailto:cose-leave@ietf.org>

Hi, Michael.

On Fri, 3 Oct 2025 at 18:28, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> Thomas Fossati <thomas.fossati@linaro.org> wrote:
>     > We want to transport DICE [0] certificate chains in CMWs [1], and for
>     > that, we need a media type.
>
>     > Note that DICE certificate chains differ semantically from standard
>     > X.509 certificate chains in that they also represent attestation
>     > Evidence [2].  Therefore, using
>     > * application/pkcs7-mime; smime-type="certs-only"
>     > * application/cose-x509; usage=chain, and
>     > * application/pkix-pkipath
>     > would provide too coarse typing information, so we'd like to improve this.
>
>     > One way would be to extend the application/cose-x509 "usage" parameter
>     > to include the value "dice-chain", i.e., application/cose-x509;
>     > usage=dice-chain.
>
> cose-x509.  I was thinking this is from cbor-encoded-cert, but it defines cose-c509-cert.
> And that definition has usage=chain, so was this a typo?  NOPE.
> cose-x509 is RFC9360... and COSE_X509 is a CBOR sequence of bstr wrapped
> DER-encoded PKIX certificates.
> I think that this means that there is CBOR definite(?) array of bytes.
>
> So this becomes a dice-chain.
> And after you do CoAP/Content-Format registration, you get an integer for the
> CBOR CMW, so any verbosity of the media type is a moot point.
>
>     > Would that be acceptable?  If so, what steps need to be taken to
>     > register the new parameter value?
>     > Do we need a specification, and if so, what kind? Or is a request to
>     > the media-types list sufficient?
>
> I understand that an email to media-types@ietf.org with the template is
> enough.  However, I find that one has to poke the reviewers.
> I'm hoping IANA's new DE RT system will get help..

OK, thanks for the tip; I'll forward the request to media-types@ietf.org then.

cheers, t