diff mbox series

[4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU

Message ID 20201125072653.15657-5-jlee@suse.com
State Superseded
Headers show
Series Check codeSigning extended key usage extension | expand

Commit Message

Lee, Chun-Yi Nov. 25, 2020, 7:26 a.m. UTC
Add an openssl command option example for generating CodeSign extended
key usage in X.509 when CONFIG_CHECK_CODESIGN_EKU be enabled.

Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>
---
 Documentation/admin-guide/module-signing.rst | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Lee, Chun-Yi Nov. 26, 2020, 6:58 a.m. UTC | #1
Hi Randy,

Thanks for your review! I will update it in next version.

Joey Lee

On Wed, Nov 25, 2020 at 09:25:51AM -0800, Randy Dunlap wrote:
> Hi--

> 

> On 11/24/20 11:26 PM, Lee, Chun-Yi wrote:

> > Add an openssl command option example for generating CodeSign extended

> > key usage in X.509 when CONFIG_CHECK_CODESIGN_EKU be enabled.

> 

>                                                     is enabled.

> 

> > 

> > Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>

> > ---

> >  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 f8b584179cff..bc184124d646 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 be enabled, the following openssl

> 

>                                              is enabled,

> 

> > +command option should be added 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.

> > 

> 

> 

> -- 

> ~Randy
diff mbox series

Patch

diff --git a/Documentation/admin-guide/module-signing.rst b/Documentation/admin-guide/module-signing.rst
index f8b584179cff..bc184124d646 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 be enabled, the following openssl
+command option should be added 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.