[Rpm-maint] [rpm-software-management/rpm] rpmsign: enable signing files with PKCS11 tokens (PR #4125)
Panu Matilainen
notifications at github.com
Wed Mar 11 11:28:27 UTC 2026
@pmatilai commented on this pull request.
> +[[slots]]
+slot = 1
+dbtype = "sqlite"
+dbargs = "${token_dir}/token.sql"
+KRYOPTIC_EOF
+pkcs11-tool --module "${pkcs11_mod}" --init-token \
+ --label "${token_label}" --so-pin "${token_pin}"
+pkcs11-tool --module "${pkcs11_mod}" --init-pin \
+ --login --so-pin "${token_pin}" --pin "${token_pin}"
+pkcs11-tool --module "${pkcs11_mod}" --login \
+ --pin "${token_pin}" --keypairgen --key-type EC:prime256v1 \
+ --id 01 --label "ima-signing"
+
+RPMTEST_CHECK([[
+cp /data/RPMS/hello-2.0-1.x86_64.rpm /tmp/
+rpmsign --addsign --key-id 4344591E1964C5FC --signfiles \
Sorry, I nearly lost this in the other discussion.
We haven't run into the RTLD_DEEPBIND issue, rpm itself doesn't use that flag for its plugins. That's coming from some other library so we lack any control over the flags. We'll just need to find a way to disable whatever relevant part of ASAN for this test then. Or if that's impossible, conditionalize the test on ENABLE_ASAN.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4125#discussion_r2917751008
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4125/review/3928928792 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260311/b55b8d77/attachment.htm>
More information about the Rpm-maint
mailing list