You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use SoftHSMv2 in OpenSSL via pkcs11-provider. I'm building SoftHSMv2 from source, a181dae. When I try to sign something I get a seg fault.
Stack trace
```
root@d9a3a7531a3c:/# gdb openssl
GNU gdb (Debian 13.1-3) 13.1
[...]
(gdb) run pkeyutl -provider softhsm -sign -inkey "pkcs11:object=test;type=private" -in test.txt -out signature.bin
Starting program: /usr/local/bin/openssl pkeyutl -provider softhsm -sign -inkey "pkcs11:object=test;type=private" -in test.txt -out signature.bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Enter pass phrase for PKCS#11 Token (Slot 479520929 - SoftHSM slot ID 0x1c94e8a1):
Program received signal SIGSEGV, Segmentation fault.
0x0000fffff77018c8 in HandleManager::getSession (this=0x0, hSession=hSession@entry=1) at HandleManager.cpp:75
75 HandleManager.cpp: No such file or directory.
</details>
The text was updated successfully, but these errors were encountered:
I'm trying to use SoftHSMv2 in OpenSSL via pkcs11-provider. I'm building SoftHSMv2 from source, a181dae. When I try to sign something I get a seg fault.
Running it under gdb, It looks like it's this line that is failing. (gdb output below.)
SoftHSMv2/src/lib/handle_mgr/HandleManager.cpp
Line 75 in a181dae
This may be related, #635 (comment).
Stack trace
``` root@d9a3a7531a3c:/# gdb openssl GNU gdb (Debian 13.1-3) 13.1 [...] (gdb) run pkeyutl -provider softhsm -sign -inkey "pkcs11:object=test;type=private" -in test.txt -out signature.bin Starting program: /usr/local/bin/openssl pkeyutl -provider softhsm -sign -inkey "pkcs11:object=test;type=private" -in test.txt -out signature.bin [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1". Enter pass phrase for PKCS#11 Token (Slot 479520929 - SoftHSM slot ID 0x1c94e8a1):Program received signal SIGSEGV, Segmentation fault.
0x0000fffff77018c8 in HandleManager::getSession (this=0x0, hSession=hSession@entry=1) at HandleManager.cpp:75
75 HandleManager.cpp: No such file or directory.
The text was updated successfully, but these errors were encountered: