Skip to content
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

Command too long (265 bytes) for max: 261 bytes #11

Closed
scottthomas007 opened this issue May 27, 2016 · 3 comments
Closed

Command too long (265 bytes) for max: 261 bytes #11

scottthomas007 opened this issue May 27, 2016 · 3 comments

Comments

@scottthomas007
Copy link

Hi,

I am facing issue while using smartcard-hsm on omnikey (3121) Reader.

Details:

**smart card used = smart card hsm
smart card reader = OMNIKEY cardman 3121
OS = Ubuntu 14.04 LTS
opensc/pcsc/ccid installed using apt-get command

opensc version 0.13

smartcard hsm supports Extended APDU and OMNIKEY reader works with proprietary drivers only. However, following error occurs when i use ccid drivers.**

/var/log/syslog given below

PCSC-logs logs shows below.

ay 26 10:26:34 Ubuntu pcscd: commands.c:1661:CmdXfrBlockTPDU_T0() Command too long (265 bytes) for max: 261 bytes
May 26 10:26:34 Ubuntu pcscd: ifdwrapper.c:527:IFDTransmit() Card not transacted: 612
May 26 10:26:34 Ubuntu pcscd: winscard.c:1612:SCardTransmit() Card not transacted: 0x80100016


Due to failure of above command, following error occurred in the stronswan logs.

May 26 10:26:34 Ubuntu charon: 01[LIB] C_Sign() failed: GENERAL_ERROR
May 26 10:26:34 Ubuntu charon: 01[IKE] authentication of 'CN=device1, OU=strongswan' (myself) with RSA signature failed
May 26 10:26:34 Ubuntu charon: 01[IKE] IKE_SA test[1] state change: CONNECTING => DESTROYING
May 26 10:27:03 Ubuntu charon: 14[JOB] deleting half open IKE_SA after timeout
May 26 10:27:03 Ubuntu charon: 14[IKE] IKE_SA (unnamed)[2] state change: CONNECTING => DESTROYING
May 26 10:27:03 Ubuntu charon: 00[DMN] signal of type SIGINT received. Shutting down
May 26 10:27:03 Ubuntu kernel: [ 3346.345859] netlink: 24 bytes leftover after parsing attributes in process `ip'.
-------------------------------------------------------------------------------------

Please guide and help

@LudovicRousseau
Copy link
Owner

According to http:https://pcsclite.alioth.debian.org/ccid/readers/CardMan3121.txt the OMNIKEY CardMan 3121 is short APDU only.

Please send the output.txt file as described in http:https://pcsclite.alioth.debian.org/ccid.html#CCID_compliant

@scottthomas007
Copy link
Author

Please find the attached output.txt file.
Please check it and guide accordingly.

output.txt

Regards

@LudovicRousseau
Copy link
Owner

Your reader is the same as https://pcsclite.alioth.debian.org/ccid/readers/CardMan3021.txt or https://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x076B0x3021

This reader does not support extended APDU with my CCID driver.

Just use the proprietary driver or use another reader. See https://pcsclite.alioth.debian.org/ccid_extended_apdu.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants