#31 Add support for signing with pesign using pkcs11 tokens
Merged by jcline. Opened by jcline.
jcline/sigul hsm-signing  into  master

Download 31.patch

This introduces a sub-handler for sign_pe that uses keys via PKCS11 in order to support HSMs (a requirement, it seems, for keys embedded in shim for SecureBoot).

The database migration adds the PKCS11 key type to the enumeration, and there's a script to add new keys to the database that are in the PKCS11 token. Key creation is left as an exercise to the reader, but an example using softhsm can be found at https://github.com/fedora-infra/siguldry/blob/sigul-pesign-bridge-0.3.1/devel/setup_hsm.sh

A quick skim of this looks reasonable to me.

rebased onto b7fa5e3e06e1e22b2f54af679cba0ea9f4082c53

Pull-Request has been merged by jcline

Metadata