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

Peter van der Stok <> Fri, 20 November 2020 08:33 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id B8FE73A1A76 for <>; Fri, 20 Nov 2020 00:33:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.094
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: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id UTNBMkoVdamd for <>; Fri, 20 Nov 2020 00:33:22 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 58C603A1A74 for <>; Fri, 20 Nov 2020 00:33:21 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id F27E2100E7B42; Fri, 20 Nov 2020 08:33:20 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; h= mime-version:content-type:date:from:to:cc:subject:reply-to :in-reply-to:references:message-id; s=key; bh=v2P50oH2JvrjYvku4Q 3ezf/a9SDu30RNuYO4nwRquYE=; b=iETMPvtaNzSYVbtZstkvi4DzV3r6XhUe+Q rK4ZeJFx8k7TtL7qo44tWG+N5rP3bRezkA2h19mf3GObE6QvTQERVhhod7GY8rcQ D0phiXu7jN6GoF1hfqPNxacJCfZPrMaa1E9wcnDi0X+ke24qZX747Xkqmn9hxF0D DkopYJJjg=
X-Session-Marker: 73746F6B636F6E73406262686D61696C2E6E6C
X-Spam-Summary: 2, -10, 0, , d41d8cd98f00b204,, , RULES_HIT:41:72:152:327:334:355:368:369:379:421:582:599:800:960:962:967:968: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:2551:2553:2557:2568:2633:2682:2685:2689:2693:2859:2902:2911:2915:2917:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3421:3586:3622:3769:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4361:4379:4425:4860:5007:6119:6248:6261:6298:6657:6659:6678:7576:7775:7875:7903:8603:8778:8828:8957:9010:9025:9036:9040:9080:9108:9177:9545:10004:10026:10226:10848:10954:11232:11656:11658:11914:12043:12050:12291:12294:12295:12379:12438:12555:12663:12683:12698:12737:12740:12895:12986:13139:13149:13161:13229:13230:13255:13846:13870:13972:14093:14095:14096:21060:21063:21080:21324:21433:21451:21499:21525:2161
X-HE-Tag: door85_010f94c2734a
X-Filterd-Recvd-Size: 26925
Received: from (imap-ext []) (Authenticated sender: by (Postfix) with ESMTPA; Fri, 20 Nov 2020 08:33:20 +0000 (UTC)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_aee91d555419e68fe4eb92a874c74dbc"
Date: Fri, 20 Nov 2020 09:33:19 +0100
From: Peter van der Stok <>
To: Esko Dijk <>
Cc:, Michael Richardson <>, "Panos Kampanakis (pkampana" <>,
In-Reply-To: <AM8P190MB0979B33C6FA2A3A1AECF4B8DFDE10@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
References: <AM8P190MB0979397BCEE4561869E4CD5DFDE20@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM> <AM8P190MB0979B33C6FA2A3A1AECF4B8DFDE10@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
User-Agent: Roundcube Webmail/1.4-rc2
Message-ID: <>
Organization: vanderstok consultancy
X-Originating-IP: []
Archived-At: <>
Subject: Re: [Anima] Feedback on constrained-voucher example certificates (in Github / -09 )
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 20 Nov 2020 08:33:25 -0000

Hi Esko,

Many thanks. Just what I need for comfort.

I did change my openssl config files as you suggested. The EKU has been
added for the masa and the registrar.
But its value.......? it is now TLS web server

The life time of the masa certificate is 1000 days; that will do in my
opinion for an example.
The life time of the registrar is unchanged 1 year.

Attributes of pledge certificate have been removed.

Concerning .txt or .hex extensions; I will leave them as they are for
the moment.

In a few days I will put them in the github. But that necessitates also
some editing of the openssl output to conform to 72 character limits.


Esko Dijk schreef op 2020-11-18 15:50:


> PS one more remark on the Registrar certificate:  per BRSKI, the Registrar must have the id-kp-cmcRA extension in its certificate to make it a Registration Authority (RA). As defined in 
> I did not see this in the certificate.  In principle, the Pledge could reject the Registrar as not-valid EST server for this reason (per RFC 7030) and the MASA will reject the Registrar (per BRSKI). 
> Esko 
> From: Esko Dijk 
> Sent: Tuesday, November 17, 2020 11:12
> To: 'peter van der Stok' <>nl>; Michael Richardson <>ca>; Panos Kampanakis (pkampana <>
> Cc:
> Subject: Feedback on constrained-voucher example certificates (in Github / -09 ) 
> 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 ( : 
> * 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 ( : 
> * 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 ( 
> * (Looks ok)
> 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 
>  |  Email/Teams: 
> _______________________________________________
> Anima mailing list