gpg card reading problem

Константин Верба crypt at sibinco.ru
Thu Mar 22 08:53:59 CET 2007


Hello, I can't use my card with gnupg and asedrive iiie usb card reader.

-- System logs:
Mar 21 16:29:54 rimex pcscd: Card ATR: 3B 95 15 40 FF 68 01 02 45 47 
Mar 21 16:30:04 rimex pcscd: prothandler.c:130:PHSetProtocol() Attempting PTS 
to T=0
Mar 21 16:32:19 rimex pcscd: prothandler.c:130:PHSetProtocol() Attempting PTS 
to T=0
But...
rimex ~ # gpg --card-status
gpg: WARNING: unsafe ownership on configuration file 
`/home/crypt/.gnupg/gpg.conf'
gpg: DBG: connection to agent established
scdaemon[7264]: no supported card application found: Card error
gpg-agent[7263]: command learn failed: Card error
gpg: OpenPGP card not available: Card error
scdaemon[7264]: updating status of slot 0 to 0x0007
scdaemon[7264]: client pid is 7263, sending signal 12
rimex ~ # scdaemon[7264]: scdaemon (GnuPG) 2.0.1 stopped

rimex ~ # opensc-tool -a
iso7816.c:99:iso7816_check_sw: Instruction code not supported or invalid
iso7816.c:458:iso7816_select_file: returning with: Unsupported INS byte in 
APDU
card.c:563:sc_select_file: returning with: Unsupported INS byte in APDU
3b:95:15:40:ff:68:01:02:45:47
iso7816.c:99:iso7816_check_sw: Instruction code not supported or invalid
iso7816.c:458:iso7816_select_file: returning with: Unsupported INS byte in 
APDU
card.c:563:sc_select_file: returning with: Unsupported INS byte in APDU
rimex ~ # 

So this is the testpcsc info:

MUSCLE PC/SC Lite unitary test Program

THIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL FOR END USERS!
Do NOT use it unless you really know what you do.

Testing SCardEstablishContext : Command successful.
Testing SCardIsValidContext : Command successful.
Testing SCardIsValidContext : Invalid handle. (don't panic)
Testing SCardGetStatusChange 
Please insert a working reader : Command successful.
Testing SCardListReaderGroups : Command successful.
Command successful.
Group 01: SCard$DefaultReaders
Testing SCardListReaders : Command successful.
Command successful.
Reader 01: AseIIIeUSB 00 00
Waiting for card insertion : Command successful.

Testing SCardConnect : Command successful.
Select file: 00 A4 00 00 02 3F 00
Testing SCardTransmit : Command successful.
 card response: 6D 00
Testing SCardControl : Command successful.
Testing SCardGetAttrib : Feature not supported. (don't panic)
Testing SCardGetAttrib : Feature not supported. (don't panic)
Testing SCardGetAttrib : Feature not supported. (don't panic)
Testing SCardGetAttrib : Feature not supported. (don't panic)
Testing SCardGetAttrib : Feature not supported. (don't panic)
Testing SCardSetAttrib : Command successful.
Testing SCardStatus : Command successful.
Current Reader Name : AseIIIeUSB 00 00
Current Reader State : 0x0034
Current Reader Protocol : T=0
Current Reader ATR Size : 10 bytes
Current Reader ATR Value : 3B 95 15 40 FF 68 01 02 45 47 
Press enter: Testing SCardReconnect : Command successful.
Testing SCardDisconnect : Command successful.
Testing SCardReleaseContext : Command successful.

PC/SC Test Completed Successfully !

Card type is cryptoflex or cyberflex.

Is it possible to make it work??




More information about the Gnupg-users mailing list