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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3907C0502A for ; Sun, 28 Aug 2022 03:35:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbiH1Dft (ORCPT ); Sat, 27 Aug 2022 23:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiH1Dfh (ORCPT ); Sat, 27 Aug 2022 23:35:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 949AA1117A; Sat, 27 Aug 2022 20:35:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8CE3FB8074D; Sun, 28 Aug 2022 03:35:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E429AC433C1; Sun, 28 Aug 2022 03:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661657732; bh=VVcfpsNAHLF7P2X/HpJhkcgqiHaLv9trHdwPqqtHf4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lP1xoofbRH+7IuhG0M9PVmRp2TtnfVdOm/YvovczKk1p6tYwKlpH2C1p2aMwvv7zn BvjL9OxUC7UkU/CM89ZtP7d/tGCs1mW4BsF5zRKV8nUhkJ0X/5ewgjA7Wvhvlp1ifd TL3IDIRKu93pbiMWnIrO5pec0BnjkgT3NxBsnOdvLCyfycKyyzaOYz1oYJcq6qA2wq lbjcw95GZMjIUQoZ41OQUn69sU9A0Bk/l1FGoyI2Poa1Z44prkoJ9QoFp6ingW8+H/ 4dQ8VLEZRIgTkdfYlvjDX+MgHHoV9NRfAbjKPc5LvTppPb5DuHQeqWn5745bMlqcDd nSP/pscpW5uUg== Date: Sun, 28 Aug 2022 06:35:24 +0300 From: Jarkko Sakkinen To: "Lee, Chun-Yi" Cc: David Howells , Herbert Xu , "David S . Miller" , Ben Boeckel , Randy Dunlap , Malte Gell , Varad Gautam , Mimi Zohar , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" Subject: Re: [PATCH v9,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU Message-ID: References: <20220825142314.8406-1-jlee@suse.com> <20220825142314.8406-5-jlee@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825142314.8406-5-jlee@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 10:23:14PM +0800, Lee, Chun-Yi wrote: > Add an openssl command option example for generating CodeSign extended > key usage in X.509 when CONFIG_CHECK_CODESIGN_EKU is enabled. > > Signed-off-by: "Lee, Chun-Yi" > --- > Documentation/admin-guide/module-signing.rst | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/admin-guide/module-signing.rst b/Documentation/admin-guide/module-signing.rst > index 7d7c7c8a545c..ca3b8f19466c 100644 > --- a/Documentation/admin-guide/module-signing.rst > +++ b/Documentation/admin-guide/module-signing.rst > @@ -170,6 +170,12 @@ generate the public/private key files:: > -config x509.genkey -outform PEM -out kernel_key.pem \ > -keyout kernel_key.pem > > +When ``CONFIG_CHECK_CODESIGN_EKU`` option is enabled, the following openssl > +command option should be added where for generating CodeSign extended key usage You have: 1. codeSign 2. CodeSign 3. CodeSigning Why this ambiguity? > +in X.509:: > + > + -addext "extendedKeyUsage=codeSigning" > + > The full pathname for the resulting kernel_key.pem file can then be specified > in the ``CONFIG_MODULE_SIG_KEY`` option, and the certificate and key therein will > be used instead of an autogenerated keypair. > -- > 2.26.2 > BR, Jarkko