Skip to content

ima-evm-utils: Add support for signing with pkcs11 URIs

Stefan Berger linux-integrity 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 5 repliesIn review
  2. v28 patches 12 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Used commit messages Mimi suggested
- 7/9: Split off imported script into own patch
- 8/9: Added missing EVMCTL_ENGINE variable that allowed to enable Debian and Ubuntu testing in 9/9; improvements on setup and teardown functions
- 9/9: Installation of required packages on Debian and Ubuntu

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9evmctl: Implement support for EVMCTL_KEY_PASSWORD environment variableREADME src/evmctl.c+10 -00 replies
2/9evmctl: Handle failure to initialize the openssl enginesrc/evmctl.c+5 -10 replies
3/9evmctl: Implement function for setting up an OpenSSL enginesrc/evmctl.c+19 -131 reply
4/9evmctl: Define and use an ENGINE field in libimaevm_paramssrc/evmctl.c src/imaevm.h+7 -60 replies
5/9evmctl: use the pkcs11 engine for pkcs11: prefixed URIssrc/evmctl.c+8 -00 replies
6/9libimaevm: Add support for pkcs11 private keys for signing a v2 hashREADME src/evmctl.c src/libimaevm.c+38 -110 replies
7/9tests: Import softhsm_setup script to enable pkcs11 test casetests/softhsm_setup+297 -01 reply
8/9tests: Extend sign_verify test with pkcs11-specific testtests/functions.sh tests/sign_verify.test+83 -141 reply
9/9tests: Get the packages for pkcs11 testing on the CI/CD systemci/alt.sh ci/debian.sh ci/fedora.sh +1 more+16 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/9] ima-evm-utils: Add support for signing with pkcs11 URIs

From: Stefan Berger <[email protected]>

This series of patches adds support for signing with pkcs11 URIs so that pkcs11-enabled devices can also be used for file signing.

A test program is provided setting up SoftHSM for test cases to use. I added two test cases for testing with SoftHSM.

Stefan

v3:
- Used commit messages Mimi suggested
- 7/9: Split off imported script into own patch
- 8/9: Added missing EVMCTL_ENGINE variable that allowed to enable Debian and Ubuntu testing in 9/9; improvements on setup and teardown functions
- 9/9: Installation of required packages on Debian and Ubuntu

Stefan Berger (9):
evmctl: Implement support for EVMCTL_KEY_PASSWORD environment variable
evmctl: Handle failure to initialize the openssl engine
evmctl: Implement function for setting up an OpenSSL engine
evmctl: Define and use an ENGINE field in libimaevm_params
evmctl: use the pkcs11 engine for pkcs11: prefixed URIs
libimaevm: Add support for pkcs11 private keys for signing a v2 hash
tests: Import softhsm_setup script to enable pkcs11 test case
tests: Extend sign_verify test with pkcs11-specific test
tests: Get the packages for pkcs11 testing on the CI/CD system

 README                 |   5 +
 ci/alt.sh              |   3 +
 ci/debian.sh           |   3 +-
 ci/fedora.sh           |   8 ++
 ci/tumbleweed.sh       |   3 +
 src/evmctl.c           |  54 +++++---
 src/imaevm.h           |   2 +
 src/libimaevm.c        |  47 +++++--
 tests/functions.sh     |  45 +++++++
 tests/sign_verify.test |  52 ++++++--
 tests/softhsm_setup    | 297 +++++++++++++++++++++++++++++++++++++++++
 11 files changed, 478 insertions(+), 41 deletions(-)
 create mode 100755 tests/softhsm_setup
Signature · 1 line
2.31.1