Re: [lamps] I-D Action: draft-ietf-lamps-samples-03.txt

"David A. Cooper" <david.cooper@nist.gov> Mon, 17 May 2021 19:47 UTC

Return-Path: <david.cooper@nist.gov>
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 848C83A4270 for <spasm@ietfa.amsl.com>; Mon, 17 May 2021 12:47:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Level:
X-Spam-Status: No, score=-3.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.698, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_GOV_DKIM_AU=-0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nist.gov
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 Ukd0tZvPQVKW for <spasm@ietfa.amsl.com>; Mon, 17 May 2021 12:47:05 -0700 (PDT)
Received: from GCC02-BL0-obe.outbound.protection.outlook.com (mail-bl2gcc02on2126.outbound.protection.outlook.com [40.107.89.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CBB4A3A426E for <spasm@ietf.org>; Mon, 17 May 2021 12:47:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ScmZa5rAS1sn9jm8+5A22R7gQWBinALmHkUf798rXvtlVh4C+KdhCVnE4/0ON0hQWnojH9M94jBg4VbhZFVPJxnUzLZvolfN8t6xzLpcHj52T6xyZHoMCQj6y+iG56C5vK6Pi5FyIe0RqdFLxl+BA0UdwjzeM2EdXGjwZ01/VjRWIayaBg8PCPtvZNp2zg7tSLsqMeRtqWbgVYxsptIUTtFTTKCWjIKrwHopIQt0CaDRzhR2F1wrEtVe5R59BzMP1UeD6bvyETiIsk7pGTEm9iZQhb1FdzVJW/144CSz1lZzg6J/Pi4cpNlfq0NYerTPSvQisEbf8L+LR5RiL9CjmQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ahqIKxcqa4gQuj0v8nLpBO5+SSII8bSa+iW7bgrS17Y=; b=O8PAEr651RKOF/Imwji13s1oqaZlGuS3OR/83vyMDpIc8/6gr0YlOaWzP35LUyUcG+pTfbFzT6s8eB440XiPv2V27SG8wXDvdQSnmSWRsk5oWlEy4uQ7m+0f86HcYF9DX4JNGLsF5UTuH6znev/xOSNzgDLz5FOqMApVkZ4JMCGr6E/vdF+SNK8L8hvfCCwfb+xdMXmLfxORNrDRBhwYWNA/UJ/OS50iGtZd5aOoOc5WUIZXLKtnc8f+SfM1Jxll4eeDJT4AKFhofX0tt5igrLRvwaC948yKeObUwkhZ5ELxCisz0pmEUZkN+V9dBtQ5ufaN+12FGz18y+/Th98AAw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 129.6.16.77) smtp.rcpttodomain=ietf.org smtp.mailfrom=nist.gov; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nist.gov; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nist.gov; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ahqIKxcqa4gQuj0v8nLpBO5+SSII8bSa+iW7bgrS17Y=; b=nSSudXBCIK9bnVp3z2mYERzf1m0tp/yUTABgbGqcq6iwWYUcSy2UhgG3oOieAMG0Td8vp8ivRI3LWCtCE8zoEuFTrRidMmTOk5L79B8H3eY0xl4Wgld9JhsOyIB/12nGWMOY9U7BiHmxxGptN8CJb5IobU5Rh7ZB0YB9bQvqcK0=
Received: from BN6PR09CA0023.namprd09.prod.outlook.com (2603:10b6:405::33) by DM8PR09MB6437.namprd09.prod.outlook.com (2603:10b6:5:2e6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Mon, 17 May 2021 19:47:03 +0000
Received: from DM3GCC02FT012.eop-gcc02.prod.protection.outlook.com (2a01:111:f400:7d04::205) by BN6PR09CA0023.outlook.office365.com (2603:10b6:405::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Mon, 17 May 2021 19:47:01 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 129.6.16.77) smtp.mailfrom=nist.gov; ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=pass action=none header.from=nist.gov;
Received-SPF: Pass (protection.outlook.com: domain of nist.gov designates 129.6.16.77 as permitted sender) receiver=protection.outlook.com; client-ip=129.6.16.77; helo=smtp2.nist.gov;
Received: from smtp2.nist.gov (129.6.16.77) by DM3GCC02FT012.mail.protection.outlook.com (10.97.8.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Mon, 17 May 2021 19:47:00 +0000
Received: from PN105734.campus.nist.gov ([129.6.152.35]) by smtp2.nist.gov with Microsoft SMTPSVC(10.0.14393.4169); Mon, 17 May 2021 15:46:57 -0400
From: "David A. Cooper" <david.cooper@nist.gov>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: spasm@ietf.org
References: <891809b1-adf9-bfec-c3ad-54328a182410@gmail.com>
Message-ID: <b7f8bf8c-6c73-1a30-bba2-58455faeb3dd@nist.gov>
Date: Mon, 17 May 2021 15:46:57 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1
MIME-Version: 1.0
In-Reply-To: <891809b1-adf9-bfec-c3ad-54328a182410@gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-OriginalArrivalTime: 17 May 2021 19:46:57.0853 (UTC) FILETIME=[658976D0:01D74B55]
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: dc91ba9f-98e9-4d1c-d021-08d9196c8969
X-MS-TrafficTypeDiagnostic: DM8PR09MB6437:
X-Microsoft-Antispam-PRVS: <DM8PR09MB64374EF948B146D28574C6AFFE2D9@DM8PR09MB6437.namprd09.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:8273;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: DM5iF1S1Uv8wNZvtheXTz9Q++m0WwQwLU1K4pwdGinJRQiPXgGmWJquulA1BH/JI/XcKHC7Li8N8kmjnqqIjsD6Urp22gtzWVO6RuQWEr5JESkaUABw1RXFxhEc99CkAstQMuVtr61+rjdK1Dby81FcPBgxSBe5Q4pJQkSb3gESOKRJ++TwSu9uMtVk9vu7yOnTCPX8wwgzE5nIv9X1yTQx9ItTufZu1SbapyG160uciuAU0Rwckq5jg+Xe5JCXLdTAsuBzxwuMNOK5+r7x9AZf4wx77lVDuvTnUsmeDS40GVN5kxA7+LK+zKfAxB9Gk7qMnZBwLkKE4t3Fefl5hrQJYBV2rRiCgUOE+ouzOscXpuwm2mMfnL3uGOqBHVa1OpyeDohQjhrekufHrg4hpOcOHRNbKGH26Fx4BxECFQo751H2KOe/3le6yMKUJmaocuPle1ldycUMzakYbcLj98//++jyUY/jRscCiHO39g72s7wweBDn9f/gJuK0aZY1U62nCnO7+efD2Vm7QXYmAZ98JeCoDKkC49jpDj4/bttENTHbuY3ls6znOJ6c1HgRMI3R04vlxixDGxh/852ILcO6RUMQHTpptQfm+1lCq943rOvRaYlCxBBTO6IH3GyQ3OGsuq9mKucd4Itk/aNoUNlf3GmT7RBSvq7kprZXuyU3Z5dnIAM6+i5UYmHbshx5Pep5nQrm6wT4x9qvIWQjOhERIfu3xPXoSkljCqF4nRJc7OepGtmfpynUe0E+C9w5FXJkkCwQDBmr4ucyTvs+Fvw==
X-Forefront-Antispam-Report: CIP:129.6.16.77; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:smtp2.nist.gov; PTR:smtp2.nist.gov; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39850400004)(396003)(46966006)(36840700001)(36860700001)(31686004)(31696002)(86362001)(47076005)(7696005)(83380400001)(4326008)(70586007)(7596003)(7636003)(82310400003)(4744005)(70206006)(478600001)(2906002)(8936002)(8676002)(36906005)(316002)(956004)(6862004)(426003)(186003)(2616005)(356005)(966005)(336012)(82740400003)(36756003)(26005)(5660300002)(43740500002); DIR:OUT; SFP:1102;
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2021 19:47:00.1721 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: dc91ba9f-98e9-4d1c-d021-08d9196c8969
X-MS-Exchange-CrossTenant-Id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=2ab5d82f-d8fa-4797-a93e-054655c61dec; Ip=[129.6.16.77]; Helo=[smtp2.nist.gov]
X-MS-Exchange-CrossTenant-AuthSource: DM3GCC02FT012.eop-gcc02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR09MB6437
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/dDB3vVtC1K8SbA8KBGFKLoeXnRc>
Subject: Re: [lamps] I-D Action: draft-ietf-lamps-samples-03.txt
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, 17 May 2021 19:47:10 -0000

On 5/14/21 7:34pm, Daniel Kahn Gillmor wrote:
>  - Add organization and organizational unit to all certificates.

I ran the certificates in draft-ietf-lamps-samples-03 through 
https://github.com/dcooper16/cert_check, and it did not find any 
problems. However, I noticed that the attributes in the issuer and 
subject fields of the certificates are encoded in the reverse order of 
what one would expect. For example, the name of the RSA CA is encoded as:

     SEQUENCE {
       SET {
         SEQUENCE {
           OBJECT IDENTIFIER commonName (2 5 4 3)
           PrintableString 'Sample LAMPS RSA Certification Authority'
           }
         }
       SET {
         SEQUENCE {
           OBJECT IDENTIFIER organizationalUnitName (2 5 4 11)
           PrintableString 'LAMPS WG'
           }
         }
       SET {
         SEQUENCE {
           OBJECT IDENTIFIER organizationName (2 5 4 10)
           PrintableString 'IETF'
           }
         }
       }