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 X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 82F0BC47083 for ; Mon, 24 May 2021 02:16:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 637B561104 for ; Mon, 24 May 2021 02:16:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232249AbhEXCSU (ORCPT ); Sun, 23 May 2021 22:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232230AbhEXCSS (ORCPT ); Sun, 23 May 2021 22:18:18 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 228D4C06138A; Sun, 23 May 2021 19:16:51 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id v14so16252360pgi.6; Sun, 23 May 2021 19:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wB1I6Nqq7AfdRuGhioLL2RWvT/EvSUrtBmeOoGNpC4c=; b=cSDpuKDMyT8z0ju0o2rO6qkPyzkFBJTWUNHR0ITwX+tv4e57LFAYbwpKiBzQN15nQd z0oy3wjedU/TJqeK/gQrBeUGom0xPVkw9LL8jo3IHllS04LrALKAtGG//TUNXHUD/LFb 3OIgQzFyEISouaifCGLNE4fxfn9PsyZCaou+7F/5x7tAU9RQCCtLX/vpCv89aGi43TxQ 1Tzuse0OnKOx8GbOPrfoZxFwz9MnsVGXS0h0awi+l3iZCbnJ915uqadN9b1oStwyGoXN 41tDeHmXMX2tjo9Vtlz3NbOdTwQtmS8s9nAL1r1DXkOD92MrFl9akw11vcUSRgpGj55T 3cSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wB1I6Nqq7AfdRuGhioLL2RWvT/EvSUrtBmeOoGNpC4c=; b=RmQpW+Ch6QRroHYxp+OhV9sDKoURdGQVeZQkFEPWhipx4OkrMNCV4epuc+V/ZjjhYn vTeOBFujz2fWr0teUvv5g6lFXmDeYi+oFd/rM9qFw+/0jo3WCKv9Hw7sFPc7QpkKou/N Y1rbcw0pPISvy8exqR4Q13NhNuE7jEDNgG4iWg7B0DAS0H4vSqx1zICzEcjDXqi/usf8 NSgE7EQr/7VYo3TTzMjeFPjargLTlSxb104naxh9IPY5kJKk8mwyYql85Q8rnFkoQ0x9 V0vk9x7fbNXc92dsHFCrs5cVzY3eushDprFiiABaFWPMEodhzYvNyBVEENnHOSkxOcVG LHTg== X-Gm-Message-State: AOAM530VhY25l1IJ2kUGC21LkaUjfi/x2cbm7glJcPSMyztx8NXDgR5y cffDCMrqVxVa3D+G77xgXj0= X-Google-Smtp-Source: ABdhPJwejrj/eHiZMZfHhuHqKsMJoLaJ7eqvWpYxGs6BJWkzowOCykhS1Bz2NadhFlOl1zAozIEeBQ== X-Received: by 2002:a63:5504:: with SMTP id j4mr11186091pgb.238.1621822610732; Sun, 23 May 2021 19:16:50 -0700 (PDT) Received: from linux-l9pv.suse ([124.11.22.254]) by smtp.gmail.com with ESMTPSA id h1sm9474960pfh.72.2021.05.23.19.16.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 May 2021 19:16:50 -0700 (PDT) From: "Lee, Chun-Yi" X-Google-Original-From: "Lee, Chun-Yi" To: David Howells Cc: Herbert Xu , "David S . Miller" , Ben Boeckel , Randy Dunlap , Malte Gell , Varad Gautam , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Lee, Chun-Yi" Subject: [PATCH v8,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU Date: Mon, 24 May 2021 10:15:40 +0800 Message-Id: <20210524021540.18736-5-jlee@suse.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20210524021540.18736-1-jlee@suse.com> References: <20210524021540.18736-1-jlee@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 +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.16.4