[Rpm-maint] [rpm-software-management/rpm] rpmsign: enable signing files with PKCS11 tokens (PR #4125)
Jeremy Cline
notifications at github.com
Tue Mar 3 17:06:45 UTC 2026
@jeremycline 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 \
@pmatilai This test fails with
```
==9725==You are trying to dlopen a /usr/lib64/p11-kit-proxy.so shared library with RTLD_DEEPBIND flag which is incompatible with sanitizer runtime (see https://github.com/google/sanitizers/issues/611 for details). If you want to run /usr/lib64/p11-kit-proxy.so library under sanitizers please remove RTLD_DEEPBIND from dlopen flags.
```
Is this something you have to avoid in other tests?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4125#pullrequestreview-3883933046
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4125/review/3883933046 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260303/4b8a818a/attachment.htm>
More information about the Rpm-maint
mailing list