From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 20 Jul 2021 13:49:58 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oG6-0002M4-MV for lore@lore.pengutronix.de; Tue, 20 Jul 2021 13:49:58 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oG6-0004ZT-07; Tue, 20 Jul 2021 13:49:58 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5oEr-00032X-Dt; Tue, 20 Jul 2021 13:48:41 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m5oEq-0002W3-U6; Tue, 20 Jul 2021 13:48:40 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m5oEq-00AoDw-R6; Tue, 20 Jul 2021 13:48:40 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 20 Jul 2021 13:48:40 +0200 Message-Id: <20210720114840.2574729-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210708203941.30212-3-rhi@pengutronix.de> References: <20210708203941.30212-3-rhi@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] templates/code-signing-provider: set up the 'imx-habv4-srk' role group X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as f1fc06cd534092bd1a4ae84917ecfc33d5ddb2c2. Michael [sent from post-receive hook] On Tue, 20 Jul 2021 13:48:40 +0200, Roland Hieber wrote: > Existing barebox-imx-habv4 recipes can still use the indexed > 'imx-habv4-srk%d ' roles to fetch the SRK keys, but for compatibility > with HSM use cases that don't supported indexed role names, set up a new > role group that contains the roles. > > Signed-off-by: Marc Kleine-Budde > Signed-off-by: Roland Hieber > Message-Id: <20210708203941.30212-3-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh b/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh > index bcd531d69572..b94eff049eac 100755 > --- a/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh > +++ b/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh > @@ -18,7 +18,7 @@ set_rauc_keys() { > } > > set_imx_habv4_keys() { > - local r > + local r g > > # HSM use case, assuming it contains only 1st CSF/IMG key > for i in 1 2 3 4; do > @@ -28,6 +28,10 @@ set_imx_habv4_keys() { > cs_append_ca_from_uri "${r}" > done > > + g="imx-habv4-srk" > + cs_define_group "${g}" > + cs_group_add_roles "${g}" "imx-habv4-srk1" "imx-habv4-srk2" "imx-habv4-srk3" "imx-habv4-srk4" > + > r="imx-habv4-csf1" > cs_define_role ${r} > cs_set_uri "${r}" "pkcs11:token=foo;object=csf1" _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de