Re: [lamps] struggling with CSRAttrs

Russ Housley <housley@vigilsec.com> Tue, 02 August 2022 13:24 UTC

Return-Path: <housley@vigilsec.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 1804CC1907B7 for <spasm@ietfa.amsl.com>; Tue, 2 Aug 2022 06:24:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
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 nW8pYVfj_nz5 for <spasm@ietfa.amsl.com>; Tue, 2 Aug 2022 06:24:38 -0700 (PDT)
Received: from mail3.g24.pair.com (mail3.g24.pair.com [66.39.134.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 18F56C13CCC6 for <spasm@ietf.org>; Tue, 2 Aug 2022 06:24:38 -0700 (PDT)
Received: from mail3.g24.pair.com (localhost [127.0.0.1]) by mail3.g24.pair.com (Postfix) with ESMTP id E34B79EAA9; Tue, 2 Aug 2022 09:24:36 -0400 (EDT)
Received: from a860b60074bd.lan (047-132-240-015.res.spectrum.com [47.132.240.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail3.g24.pair.com (Postfix) with ESMTPSA id 7E7F79EDCC; Tue, 2 Aug 2022 09:24:36 -0400 (EDT)
From: Russ Housley <housley@vigilsec.com>
Message-Id: <1ADF10C3-D998-4A3B-91EF-F0C5B3544129@vigilsec.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_FEC800C9-EC07-4B16-8B4E-10A3168EBCE6"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\))
Date: Tue, 02 Aug 2022 09:24:35 -0400
In-Reply-To: <56a8af3a-63f2-5f19-62d9-59469ab678bf@siemens.com>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, LAMPS <spasm@ietf.org>
To: David von Oheimb <David.von.Oheimb@siemens.com>
References: <12352.1657505901@localhost> <ada963a796ca3fafb42a29751020ff4326fd2a1e.camel@von-Oheimb.de> <563732.1659120308@dooku> <36c409c2-ab92-4ec2-6f1e-235652a243d9@siemens.com> <56a8af3a-63f2-5f19-62d9-59469ab678bf@siemens.com>
X-Mailer: Apple Mail (2.3445.104.21)
X-Scanned-By: mailmunge 3.09 on 66.39.134.11
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/OL714ofjMKFtIlStH_ODQR_F8_g>
Subject: Re: [lamps] struggling with CSRAttrs
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 02 Aug 2022 13:24:39 -0000

David:

> I believe we should clarify that 
> There MUST be at most one attribute describing X.509 extensions,
> i.e., one bearing the OID extensionRequest (1.2.840.113549.1.9.14) as its type.
> The set in such an X.509 extension value MUST contain exactly one element.
> The value of such an attribute MUST be of type Extensions, i.e., a sequence of Extension.
Those all make sense to me.

Recall that the syntax for Extension is:

	Extension  ::=  SEQUENCE  {
	     extnID      OBJECT IDENTIFIER,
	     critical    BOOLEAN DEFAULT FALSE,
	     extnValue   OCTET STRING
                 -- contains the DER encoding of an ASN.1 value
                 -- corresponding to the extension type identified
                 -- by extnID
	     }

I suggest an additional bullet:

 * An extnID object identifier MUST appear at most once in the extensionRequest attribute.

Russ