From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 02736C678D5 for ; Wed, 8 Mar 2023 13:20:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B28885DB2; Wed, 8 Mar 2023 14:20:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FnSCqMUq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F75085C68; Tue, 7 Mar 2023 23:13:54 +0100 (CET) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB3BF85C4C for ; Tue, 7 Mar 2023 23:13:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=fr0st61te@gmail.com Received: by mail-lf1-x12c.google.com with SMTP id t11so19027464lfr.1 for ; Tue, 07 Mar 2023 14:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678227229; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XVATZheWPW99m9Cm7eF0WZzi1Clx0sjWamBb2QPfFk4=; b=FnSCqMUqII5ca2g/dYv1GGYbJ8wfXG0f3dfNtVPKCm2o4cpW1+OUCEjjEjxpT/dN9g XOPSfd85JI/SjPBzuIqPTkd95/jCj1GFrljmv3ct6TZTbMNujJGwaKnPR+zfDj+96Onp R+PPKiTzeEtm/yV9uKCl/a6qxwNItC20CBiKoxPHx5K2Mg0cm6mwf969r3McLlKboXf3 iTMt9VnekF7wIqZiktc1nDciXdlxwg4NClDMGMrGSwOi8SpF2pZpY4WJnF81YiP+ydTL 3FHReKxwHURnXNrc3dCnAg+CnUJJS3ItCc+BHZoXiXXUsI062EjA4JtnRY24HvZY0Eg5 9f8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678227229; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XVATZheWPW99m9Cm7eF0WZzi1Clx0sjWamBb2QPfFk4=; b=6rgQcXp7jJRTxk2r62K4mJ0ocEXNDgSIvRn6xDo8bCVKSBMoUhykq56/9Fry0cuDrB VLkViARM/deLYZ0jYifYw0Avv0Sp4yoe6cZoilsTB7ll+sIfObVJQFBx2QU9xUDXtXBU rKgXRfZVtpel275Y05Svzkq0UhHXkzTOhpnB5UlcH1BHi2NcCxA4WZnTiRuJC3bYoeA4 FRfQSjOrYo1LoMELoNZcbAHhkIkcAzuI0eKK+W2v4q8JlJdtYXPo+Ital/XZsAWS3igm cdmOTjByqt1jtFsuYv4mmqed/TYtYEFmEBID0tOGOw5AYYaUeUxmgGmbVITtBXOOSZ7u 8ksw== X-Gm-Message-State: AO0yUKXE+4Ltd+vv+/YBA+q12VE6sn5gpfY5Qr3hHzgvntlfUHRxITod iPqXGrInEmjGw3zh8BfddJsh0M766+zw2sM1 X-Google-Smtp-Source: AK7set9Ja5iWeU8AEBksgdxbT9nSAHAdE10kq+DXydUwQl6zGJEfNKqOVhBzJ69bPNzltPZWWlGc0A== X-Received: by 2002:a05:6512:20f:b0:4dd:995b:feaa with SMTP id a15-20020a056512020f00b004dd995bfeaamr4089892lfo.24.1678227229115; Tue, 07 Mar 2023 14:13:49 -0800 (PST) Received: from localhost.localdomain (95-31-185-99.broadband.corbina.ru. [95.31.185.99]) by smtp.googlemail.com with ESMTPSA id l8-20020a19c208000000b004db3890cb53sm2159726lfc.223.2023.03.07.14.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 14:13:48 -0800 (PST) From: Ivan Mikhaylov To: Simon Glass , Jan Kiszka Cc: u-boot@lists.denx.de, Ivan Mikhaylov Subject: [PATCH v2 1/5] binman: add documentation for binman sign option Date: Wed, 8 Mar 2023 01:13:38 +0000 Message-Id: <20230308011342.21992-2-fr0st61te@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230308011342.21992-1-fr0st61te@gmail.com> References: <20230308011342.21992-1-fr0st61te@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 08 Mar 2023 14:20:15 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Add the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov --- tools/binman/binman.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 0921e31878..c9d352e3ba 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -1330,6 +1330,24 @@ You can also replace just a selection of entries:: .. _`BinmanLogging`: +Signing FIT container with private key in an image +-------------------------------------------------- + +You can sign FIT container with private key in your image. +For example:: + + $ binman sign -i image.bin -k privatekey -a sha256,rsa4096 fit + +binman will extract FIT container, sign and replace it immediately. + +If you want to sign and replace FIT container in place:: + + $ binman sign -i image.bin -k privatekey -a sha256,rsa4096 -f fit.fit fit + +which will sign FIT container with private key and replace it immediately +inside your image. + + Logging ------- -- 2.39.1