Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1260696
| From | Andreas Metzler <ametzler@bebt.de> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1114767: Using a pkcs11 key via openssl's pkcs11 provider hangs |
| Date | 2025-09-09 19:20 +0200 |
| Message-ID | <LtaaB-e535-15@gated-at.bofh.it> (permalink) |
| References | <Lt8sa-e3MX-15@gated-at.bofh.it> <Lt8sa-e3MX-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2025-09-09 Jeremy Cline <debian@jcline.org> wrote: > Package: p11-kit > Version: 0.25.5-3 > When I attempt to use a key stored in SoftHSM via OpenSSL's pkcs11 provider, the openssl command hangs forever. I'm trying this from a Debian sid container, but it also happens in Debian trixie and I first noticed this in a Ubuntu 24.04 instance in GitHub actions. I'm not entirely sure if this is a p11-kit issue, or a softhsm2 issue - I've got softhsm2 2.6.1-3 installed - or something else. > Here's the reproducer script: > apt update && apt install -y softhsm2 openssl opensc pkcs11-provider p11-kit > softhsm2-util --init-token --slot=0 --label=test --pin=secret-password --so-pin=1234 > pkcs11-tool --module=/usr/lib/softhsm/libsofthsm2.so --login --pin=secret-password --keypairgen --label=binding-key --key-type=rsa:4096 --usage-decrypt --usage-sign --id=1 > # this command hangs on futex > openssl req -x509 -provider pkcs11 -passin pass:secret-password -subj /CN=Test -key "pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;token=test;object=binding-key;id=%01;type=private" -out cert.pem [...] Hello, Might be I am missing the obvious but I just do not see where this involves p11-kit? Neither pkcs11-provider nor pkcs11-tool (from opensc) nor openenssl are using p11-kit afaict. cu Andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure'
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1114767: Using a pkcs11 key via openssl's pkcs11 provider hangs "Jeremy Cline" <debian@jcline.org> - 2025-09-09 17:30 +0200
Bug#1114767: Using a pkcs11 key via openssl's pkcs11 provider hangs Andreas Metzler <ametzler@bebt.de> - 2025-09-09 19:20 +0200
Bug#1114767: Using a pkcs11 key via openssl's pkcs11 provider hangs "Jeremy Cline" <debian@jcline.org> - 2025-09-09 20:20 +0200
csiph-web