Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1337557 > unrolled thread

Re: [PATCH v2] scripts/sign-file.c: Add support for signing with a raw signature

Started byDavid Howells <dhowells@redhat.com>
First post2016-02-18 18:30 +0100
Last post2016-02-18 18:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] scripts/sign-file.c: Add support for signing with a raw signature David Howells <dhowells@redhat.com> - 2016-02-18 18:30 +0100

#1337557 — Re: [PATCH v2] scripts/sign-file.c: Add support for signing with a raw signature

FromDavid Howells <dhowells@redhat.com>
Date2016-02-18 18:30 +0100
SubjectRe: [PATCH v2] scripts/sign-file.c: Add support for signing with a raw signature
Message-ID<r3AyT-uN-29@gated-at.bofh.it>
Juerg Haefliger <juerg.haefliger@hpe.com> wrote:

> This patch adds support for signing a kernel module with a raw
> detached PKCS#7 signature/message.
> 
> The signature is not converted and is simply appended to the module so
> it needs to be in the right format. Using openssl, a valid signature can
> be generated like this:
>   $ openssl smime -sign -nocerts -noattr -binary -in <module> -inkey \
>     <key> -signer <x509> -outform der -out <raw sig>
> 
> The resulting raw signature from the above command is (more or less)
> identical to the raw signature that sign-file itself can produce like
> this:
>   $ scripts/sign-file -d <hash algo> <key> <x509> <module>
> 
> Signed-off-by: Juerg Haefliger <juerg.haefliger@hpe.com>

Applied.

David

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web