-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnupg-pkcs11-scd "SCD LEARN" yields segfault in libcrypto.so.1.1 #1619
Comments
What about Why do you think that there is a problem within OpenSC? Please try to get a backtrace of the crash. |
The I assumed (hopefully not incorrectly) that since all tools from opensc work and card communicates correctly except for |
I'm not very familiar with gnupg's tools. Please find out what exactly crashes and run that with debug symbols in gdb or valgrind. These tools will show if the problem occurred while running some OpenSC functionality. Please also list the exact steps for reproducing this behavior. |
Please, provide the backtrace from the segfault by attaching the gdb to the process or running under valgrind. It is not clear whether OpenSC or gnupg-pkcs11-scd itself crashes. OpenSC debug log would be also helpful at least to see what is going on there in OpenSC. |
...works for me as expected with both, OpenSC 0.17.0 (deprecated, see https://github.com/OpenSC/OpenSC/wiki#news) and master. |
I have also hit the same issue, here are details - Runtime - Upon adding gdb, got the segmentation fault in BN_is_zero function - Thread 1 "gnupg-pkcs11-sc" received signal SIGSEGV, Segmentation fault. (gdb) info break gnupg-pkcs11-scd logs I used pkcs11-logger for debugging pkcs#11 and noticed that the last function executed is C_GetAttributeValue[CKA_ID and CKA_VALUE] for the certificate object which is returned successfully and after that no more logs. I am trying my best to debug but any help would be greatly appreciated. |
Ok, so quick update, I built the latest gnupg-pkcs11-scd 0.9.2 and the issue is resolved, I can get the details but have hit with another problem - gpg: OpenPGP card not available: Bad session key. My PKCS#11 token returns both PublicKey and Certificate as public object for only RSA key! Can you suggest something here? |
Sorry for a delay. I think the OpenSC at the time of writing did not support anything else but RSA keys. Now, the ECDSA and EDDSA should be supported too. Can you check with current master or latest release candidate? |
No update for three years -> Closing. If it is still an issue, open a new one. |
Problem Description
Card contains:
The
gpg-agent.conf
The
gnupg-pkcs11-scd.conf
Unable to get list of KEY-FRIENDLY entries using following:
As it yields following errors:
The text was updated successfully, but these errors were encountered: