[lamps] examples in lamps-rfc7030-csrattrs

Michael Richardson <mcr+ietf@sandelman.ca> Fri, 30 September 2022 16:38 UTC

Return-Path: <mcr@sandelman.ca>
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 D4A50C1524A5 for <spasm@ietfa.amsl.com>; Fri, 30 Sep 2022 09:38:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] 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 gyBzQ3y5BZIc for <spasm@ietfa.amsl.com>; Fri, 30 Sep 2022 09:38:12 -0700 (PDT)
Received: from relay.sandelman.ca (relay.cooperix.net [IPv6:2a01:7e00:e000:2bb::1]) (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 284F3C1524A1 for <spasm@ietf.org>; Fri, 30 Sep 2022 09:38:11 -0700 (PDT)
Received: from dooku.sandelman.ca (host-87-4-189-54.retail.telecomitalia.it [87.4.189.54]) by relay.sandelman.ca (Postfix) with ESMTPS id 3F0211F455; Fri, 30 Sep 2022 16:38:09 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 9E0741A0753; Fri, 30 Sep 2022 18:38:08 +0200 (CEST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: David von Oheimb <David.von.Oheimb@siemens.com>, LAMPS WG <spasm@ietf.org>
In-reply-to: <56a8af3a-63f2-5f19-62d9-59469ab678bf@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>
Comments: In-reply-to David von Oheimb <David.von.Oheimb@siemens.com> message dated "Tue, 02 Aug 2022 12:45:04 +0200."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Date: Fri, 30 Sep 2022 18:38:08 +0200
Message-ID: <811228.1664555888@dooku>
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/J0MFFNxtSNI7r5KrYNQ7C8rrwW4>
Subject: [lamps] examples in lamps-rfc7030-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: Fri, 30 Sep 2022 16:38:15 -0000

David and I have some back and forth about the examples.
My output, which I've added to -01 which I just posted some from an RFC8995 Registrar.

As I don't have a CSR Attributes model, I'm having to build things with ASN1
primitives, and I am not very knowledgeable about some ASN1 things.
(My thanks to Nico Williams who sorted me out on a fundamental point by chat on Wednesday)

https://www.ietf.org/archive/id/draft-ietf-lamps-rfc7030-csrattrs-01.html#name-rfc8994-acp-subjectaltname-
is my example.  I added to the Makefile:

example01.acp.csrattr.dump: example01.acp.csrattr.der
	dumpasn1 -htl example01.acp.csrattr.der | sed -e's/ *$$//' >example01.acp.csrattr.dump

but, I don't get the OCTET STRING decoded, while the example that David added
does have it.  It could my ASN.1 is not tagged right.  When I go to:

this decoder seems to be okay with it.
  https://lapo.it/asn1js/#MGQwYgYJKoZIhvcNAQkOMVUwUwYDVR0RAQH_BEmgRzBFBggrBgEFBQcICgw5cmZjODk5NCtmZDczOWZjMjNjMzQ0MDExMjIzMzQ0NTUwMDAwMDAwMCtAYWNwLmV4YW1wbGUuY29t

it seems to be okay.  I have added my example as base64 to the appendix.

I have to go eat supper now, but I'll try to close off this thread.
You'll notice a -01 posted.

I have not removed David's example, but I would like the DER associated with
it.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-