Re: [Anima] Feedback on constrained-voucher example certificates (in Github / -09 )

Peter van der Stok <stokcons@bbhmail.nl> Tue, 17 November 2020 10:53 UTC

Return-Path: <stokcons@bbhmail.nl>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60BBA3A0FAF for <anima@ietfa.amsl.com>; Tue, 17 Nov 2020 02:53:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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=bbhmail.nl
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 OdlyHGroHKuR for <anima@ietfa.amsl.com>; Tue, 17 Nov 2020 02:53:34 -0800 (PST)
Received: from smtprelay.hostedemail.com (smtprelay0151.hostedemail.com [216.40.44.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 301033A0F74 for <anima@ietf.org>; Tue, 17 Nov 2020 02:53:33 -0800 (PST)
Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id C8E8018009534; Tue, 17 Nov 2020 10:53:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bbhmail.nl; h= mime-version:content-type:date:from:to:cc:subject:reply-to :in-reply-to:references:message-id; s=key; bh=jwO8UsY5y8D2M2zd2+ yVf/iDjdUmaYyqqo4M2aeUhx4=; b=AsmWtVqLD9Bi4XykYZlha2HOuIrK0qHohq O1X6z9DwBPGPFtthErfFXNAbjsMmJDfxPG6Uayg0dUZ4IL0dK+eViM3tv9rC72xY e1wsUXOGNq8IjjlFKK9i4MEVSo2nqiNVR0Puh8L7m86AANIIEeOChHGCjco2WR7F PxatL3LRg=
X-Session-Marker: 73746F6B636F6E73406262686D61696C2E6E6C
X-Spam-Summary: 2, -10, 0, , d41d8cd98f00b204, stokcons@bbhmail.nl, , RULES_HIT:4:41:72:152:334:355:368:369:379:421:582:599:800:962:967:973:983:988:989:1152:1189:1208:1212:1221:1260:1313:1314:1345:1359:1431:1436:1437:1516:1517:1518:1575:1588:1589:1592:1594:1605:1730:1775:1792:2068:2069:2194:2198:2199:2200:2525:2526:2527:2553:2557:2568:2631:2636:2682:2685:2689:2693:2859:2902:2911:2915:2917:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3421:3622:3769:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4361:4379:4425:4860:5007:6119:6248:6261:6657:6659:6678:7775:7875:7903:8603:8828:8957:9010:9025:9036:9040:9080:9108:9177:10004:10026:10226:11232:11656:11658:11914:12043:12050:12291:12294:12295:12379:12438:12555:12663:12683:12698:12737:12740:12895:12986:13139:13149:13230:13255:13846:13870:13972:14093:14095:14096:21060:21063:21080:21324:21433:21451:21499:21525:21611:21627:21740:21819:21939:21990:30022:30054:30060:30069:30090:30
X-HE-Tag: wool59_48064c227331
X-Filterd-Recvd-Size: 15438
Received: from mail.bbhmail.nl (imap-ext [216.40.42.5]) (Authenticated sender: webmail@stokcons@bbhmail.nl) by omf13.hostedemail.com (Postfix) with ESMTPA; Tue, 17 Nov 2020 10:53:32 +0000 (UTC)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_1f5e450bc6c36354117dcc9d1ee4c2a6"
Date: Tue, 17 Nov 2020 11:53:31 +0100
From: Peter van der Stok <stokcons@bbhmail.nl>
To: Esko Dijk <esko.dijk@iotconsultancy.nl>
Cc: 'peter van der Stok' <stokcons@xs4all.nl>, Michael Richardson <mcr+ietf@sandelman.ca>, "Panos Kampanakis (pkampana" <pkampana@cisco.com>, anima@ietf.org
Reply-To: consultancy@vanderstok.org
In-Reply-To: <AM8P190MB0979397BCEE4561869E4CD5DFDE20@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
References: <AM8P190MB0979397BCEE4561869E4CD5DFDE20@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
User-Agent: Roundcube Webmail/1.4-rc2
Message-ID: <e66293e13fa0aa50111b339a9c7b4567@bbhmail.nl>
X-Sender: stokcons@bbhmail.nl
Organization: vanderstok consultancy
X-Originating-IP: [5.206.216.229]
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/3EgxYcl1FNoSE8FFu341E3Su2Z4>
Subject: Re: [Anima] Feedback on constrained-voucher example certificates (in Github / -09 )
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Nov 2020 10:53:37 -0000

Hi Esko,

many thanks,

This week I will react. Many of the recommendations look quite viable.

Peter

Esko Dijk schreef op 2020-11-17 11:12:

>> 

> Hello Peter, 
> 
> I did my review of the new example certificates in Github. Below my feedback. Because examples are used in the constrained-voucher draft Appendix C, I include all authors in this email. 
> 
> pledge-cert.txt / pledge-cert.hex (https://github.com/anima-wg/constrained-voucher/blob/master/examples/pledge-cert.txt) : 
> 
> * The X509v3 extension 'subjectKeyIdentifier' should not be included according to the 802.1AR-2009 spec section 7.2.6 (for IDevID/LDevID).  Reason is that this value in an EE certificate is never used for chain building; it's unnecessary bytes effectively.  Only CA certs do need this extension.
> 
> * The X509v3 extension 'keyUsage' is present, and is allowed per the 802.1AR-2009 spec section 7.2.13 , however looking at the 802.1AR text there it basically says restrictions of key usage shouldn't be necessary for an IDevID - it can be used for any purpose whether defined today or in the future. (Up to the year 9999 at least :-) )
> BRSKI-45 also writes "therefore RECOMMENDS that no key usage restrictions be included" for IDevID. 
> 
> masa-cert.txt / masa-cert.hex (https://github.com/anima-wg/constrained-voucher/blob/master/examples/masa-cert.txt) : 
> 
> * the validity (1 year) seems a little short for a manufacturing root CA.  3, 5, 7, or 10 years I would expect to be more usual for such a CA.
> * Of course a Pledge stores this root CA cert in its trust store for the entire device lifetime, and will keep using it during this lifetime. Even if that root CA cert expired and the Pledge has a realtime clock so it *could* verify expiry in principle. But it will not do that, because the cert is hardcoded in its trust store. So I'm not sure if the validity of it has any impact in practice; it seems not.
> * Side note 1: the MASA will need to sign Vouchers with this root CA identity , for many years to come,  and in the meantime the root CA cert may expire and MASA may be given a renewed root CA cert that uses the same public/private keypair.  The latter - using same keypair - ensures that 'older' Pledges can still recognize the signer and so accept these newer Vouchers. So the MASA's root CA cert validity period will impact how often the cert needs to be renewed - all the time using the same pub/private keypair - and that seems to be all.
> * Side note 2: one can also have a MASA signing the Vouchers using an expired root CA cert/identity.  The Registrar and the Pledges won't mind.
> * Side note 3: another easy way out of this is to give the MASA root CA certificate also a very long / infinite lifetime just like the IDevID.
> 
> registrar-cert.txt / registrar-cert.hex (https://github.com/anima-wg/constrained-voucher/blob/master/examples/registrar-cert.txt) 
> 
> * (Looks ok)
> 
> pledge-to-regis.txt  (https://github.com/anima-wg/constrained-voucher/blob/master/examples/pledge-to-regis.txt) 
> 
> * Looks like this should be a .hex file! Not .txt.
> * (May consider a filename like 'pledge-to-regis.cbor.hex' to indicate it is hex-format CBOR binary)
> * Similar comment for the other 'x-to-y' .txt files.
> * I will review the contents of these files later on!
> 
> Best regards 
> 
> Esko 
> 
> IoTconsultancy.nl  |  Email/Teams: esko.dijk@iotconsultancy.nl 
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://www.ietf.org/mailman/listinfo/anima