SmartCard usage

Serdar KOYLU serdar at
Fri Apr 22 14:06:53 CEST 2005


I have two blank smartcard (SC) and 3-4 reader device. All devices
compatible with Linux, drivers available with binary or source format.

PC/SC (pcsclite) work currently this readers. I don't know card brand or

Card 1: GEMPLUS MPCOS-EMV Compatible card. No any information our
ATR: 3B A7 00 40 18 80 65 A2 09 01 03 52

Card 2: Unknown, but TCOS card OS already.
ATR: 3B BA 96 00 81 31 86 5D 00 64 05 60 02 03 31 80 90 00 66

With trying opensc-tool, many operations resulted correct values. Such
as Card 2 accept DF/EF creation etc. 

I want use this cards with GnuPG. I research many tools from reader/card
sites, pc-sc sites etc. And many times i try use gpg2 with --card* cmds.

gpg2 --card-status
scdaemon[pid]: no supported card application found: Invalid value 
with Card 2. And sleep, wait, wait and wait.... With Card 1 same result
but error message is "No such file or directory".

I try eject card with this wait phase, scdaemon show:

reader-pcsc.c:433:pcsc_lock: SCardBeginTransaction failed: Card was
card-gpk.c:1709:gpk_get_info: sc_lock() failed: Card removed
reader-pcsc.c:433:pcsc_lock: SCardBeginTransaction failed: Card was
scdaemon[26774]: can't lock card in reader 0: Card removed
scdaemon: card.c:486: sc_unlock: Assertion `card->lock_count >= 1'
gpg-agent[26773]: command learn failed: Unknown system error
gpg: OpenPGP card not available: Assuan server fault

For --card-edit command, result don't change. But many time, i reach
"Command>" prompt, but all commands resulted with error..

For use GnuPG with smartcard, i can what? 


More information about the Gnupg-devel mailing list