-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Smart card reader is not accessiable #16
Comments
I think @CardContact should look at this if you're using the USB variant of the token. |
Based on the information above, this seems to be a problem with the Gemalto GemPC Twin 00 00 reader. |
From your pcscd log the first error is:
-7 is LIBUSB_ERROR_TIMEOUT I do not have enough details in the log. Please follow http:https://pcsclite.alioth.debian.org/ccid.html#support to generate a correct pcscd log. You are using a locally build libccid ( |
Hi,
As per observation, I am getting error because of using pkcs15-tool -D /pkcs11-tool -T commands and currently strongswan or any other process is not using the smart cards. (all scripts and application are stopped) |
The problem occurs with the APDU The same APDU is used 60 times before the error with no problem. Can you generate a new pcscd trace to check if the problem occurs always at the same point? |
Sir, 3 more pcsc log files are attached. Problem occurred on following commands, pcscd logs against each command are in a separate file as below;
|
I can't download the logs. I think you failed to upload them. |
Hi, |
Maybe the read timeout is too short.
The line to change is https://github.com/LudovicRousseau/CCID/blob/master/src/ifdhandler.c#L1010 |
After applying the patch "10 * T1_card_timeout" i have used the same command "pkcs15-tool -D" but it still fails after some time its log "log-patched.txt" file attached. I have added a print "Timeout-patch" which will be shown in the logs. Additional when i use command "opensc-tool -l" it never cause any error, for comparison its logs "log-working-opensc-cmd.txt" file is also attached. |
The problem is not always with the same APDU. This time it is:
Can you try with:
|
Hi, |
OK. I guess the problem was in libusb. |
Hi @develtech1, |
Hi,
I am facing an issue while using SmartCard-HSM on a Linux machine. I am using smartcard with strongswan for VPN based on certificates. I am trying to check the presence of smart card by using command "pkcs15-tool -D" in bash/perl script and included in crontab but it fails after some time.
after 30 sec i got following messages in the logs.
first it gave "PKCS#15 binding failed:"
Using reader with a card: Gemalto GemPC Twin 00 00
PKCS#15 binding failed: Transmit failed
After another 30 sec the command output was "Failed to connect to card:"
Using reader with a card: Gemalto GemPC Twin 00 00
Failed to connect to card: Generic reader error
Other partial logs information is following, detail logs are attached;
A Part from OPENSC log, during this test i did not unplugged smart cards
0x77b5b210 10:28:40.440 [pkcs15-tool] reader-pcsc.c:376:refresh_attributes: card absent
A Part from PCSCD log
05000157 ccid_usb.c:638:WriteUSB() write failed (3/8): -7 Success
Another part from PCSCD log
I have already posted the same issue on OPENSC list. The details of the problem, logs and packages are given on following OPENSC link;
https://github.com/OpenSC/OpenSC/issues/976
OPENSC final comments were following;
On your blog https://ludovicrousseau.blogspot.com/2010/05/how-to-know-pin-sizes-supported-by.html I found following;
Can we get information about the cause of the problem after looking on the PCSCD logs, can you suggest the solution after having detail look on PCSCD logs attached, please.
Packages details are following;
Link to detail logs logs.tar.gz
The text was updated successfully, but these errors were encountered: