Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 091F1C07E96 for ; Thu, 8 Jul 2021 09:13:45 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B77A26146E for ; Thu, 8 Jul 2021 09:13:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B77A26146E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 76B7A82A13; Thu, 8 Jul 2021 11:13:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8DAB180661; Thu, 8 Jul 2021 11:13:40 +0200 (CEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2254080661 for ; Thu, 8 Jul 2021 11:13:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thomas.perrot@bootlin.com Received: (Authenticated sender: thomas.perrot@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 98DB520013 for ; Thu, 8 Jul 2021 09:13:36 +0000 (UTC) Message-ID: Subject: Some questions about the U-Boot verified boot From: Thomas Perrot To: u-boot@lists.denx.de Date: Thu, 08 Jul 2021 11:13:35 +0200 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-C45vjIqX4WPzI53EjAqa" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --=-C45vjIqX4WPzI53EjAqa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello everyone, I have a question about the verified boot, is it possible to sign both images and configurations in the same fitimage? I ask the question because when I try to do that then the image signature checking always fails, when calling the source command, without preventing the loading of the bootscr. I would like that the loading is strictly interrupted, in case of failure of an image signature checking or a configuration signature checking. Moreover, when configurations aren=E2=80=99t signed or with an invalid key = then an error is well raised and loading interrupted. In addition, from the dtb, the property =E2=80=9Crequired=E2=80=9D of the s= ignature node is set to config. Then it doesn=E2=80=99t seem possible to sign images and configurations wit= h the same key, even using different fitimage. Could using two keys solve my issue? Is there a way to make the verified boot strict, to prohibit the use of fitimage which does not contain any signature, and ensure that either the images or the configurations are always signed? In my case, setting the variable verify=3Dyes seems doesn=E2=80=99t work correctly. NB. I=E2=80=99m using the version 2020.04.=20 Best regards, Thomas Perrot --=20 Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com --=-C45vjIqX4WPzI53EjAqa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEh0B3xqajCiMDqBIhn8ALBXH+Cu0FAmDmwb8ACgkQn8ALBXH+ Cu3kYwv/YF1W7s2Rf+FXLoWh6DeRcSQbbQiudGaP8MQgFFBjzpLSINVw0SfhX7pn QCIZz7ji624gsjjPdcJorgC4lTXpd0cJyc/tcoLlEuelgNetAAT7S0JLbZHbz/vr Lb92W7FU3vj6w50CG/jE70pPX8ag5InZh84sADWbe4s//q6HvptYs7JQTy0FBc1p GP3jrZZS7BxB5QscV/sE3BJGcfeWn2Zv1GD2pSRxowIVA3Yk2y0Nt6nGZYo+KR1o CQKMsd+7w+ISvXznkHSu+712a9pAPoeSArKfiNvw/ZsWNUGQfNYuO0B7Upf+2tqy +It7Gw50TOEGaDhJxlafjSOC/mnMeyYACms53une/IBGcP2IhyT7Um52hBUqTLRo 7/Hr61iGDP01k1OorMGL4hDatsCBHeKh0l8XtsVaoQFLdEB7UBHRj9GamiE0/bbA 3YTWCLVE9v2+wGNofaWcKYzbQVqnDUdfVh86zTKJf2cUnbwgQHXR5u3jefDZ8Y35 Fw8ah47L =PusH -----END PGP SIGNATURE----- --=-C45vjIqX4WPzI53EjAqa--