Messages in this thread | | | Subject | Re: [PATCH 10/8] modsign: Allow password to be specified for signing key | From | David Woodhouse <> | Date | Tue, 19 May 2015 21:04:33 +0100 |
| |
On Tue, 2015-05-19 at 15:14 -0400, Mimi Zohar wrote: > On Tue, 2015-05-19 at 19:48 +0100, David Howells wrote: > > Mimi Zohar <zohar@linux.vnet.ibm.com> wrote: > > > > > Definitely better. (FYI, Dmitry's modsig patches from 2012 used the > > > keyring for safely storing a password. ) > > Without the environment variable set, there's a pop up prompt to enter > the pin. A pain to have to enter for each and every kernel module, but > definitely a nice option.
Right. In fact now that sign-file is written in C and not having to call out to /usr/bin/openssl for each signature, we *could* authenticate to the PKCS#11 token (or load the private key from the file) just once and sign all the modules in a *single* invocation.
So you'd only be asked for the password *once*.
The make rules to achieve that are somewhat non-trivial, but it was an idea we had in our minds when we settled on doing it in C rather than scripting it.
-- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation
| |