chipcard2 and gnupg
Joachim Breitner <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel,gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm sucessfully using gnupg with pcscd, but sa I want to use HBCI, too, I need to switch to libchipcard2. HBCI works, but I'd like to use gnupg with libchipcard2, too, but it does not work: $ echo bla|gpg -v --sign --armour --ctapi-driver /usr/lib/libchipcard2_ctapi.so.0 gpg: using classic trust model gpg: der Zweitschlüssel F64A4797 wird anstelle des Hauptschlüssels 4743206C verwendet gpg: Schreiben auf die Standardausgabe gpg: ct_activate_card: can't get status of reader 0: ct error gpg: reader slot 0: Memory ICC present gpg: ct_activate_card: can't get status of reader 0: ct error gpg: apdu_send_simple(0) failed: card I/O error The corresponding logs from chipcard2 are: Apr 11 09:43:00 otto chipcardd[6450]: clr_clientready.c: 93: Client "443b5c4c" started (fake-ctapi, Gwen 2.1.1.0stable, ChipCard 2.1.3.0stable) Apr 11 09:43:00 otto chipcardd[6450]: clr_startwait.c: 63: Client 443b5c4c: StartWait [fake-ctapi/nobody] Apr 11 09:43:00 otto chipcardd[6450]: clr_startwait.c: 128: Advertising card "00000006" to client "443b5c4c" [fake-ctapi/nobody] Apr 11 09:43:00 otto chipcardd[6450]: cardmanager.c: 390: Keep time counter restarted Apr 11 09:43:00 otto chipcardd[6450]: cardmanager.c: 405: No longer allowing reader to shut down Apr 11 09:43:00 otto chipcardd[6450]: clr_takecard.c: 76: Client 443b5c4c: TakeCard [fake-ctapi/nobody] Apr 11 09:43:00 otto chipcardd[6450]: clr_takecard.c: 142: Enqueued TakeCard request for card "00000006" and client "443b5c4c" Apr 11 09:43:00 otto chipcardd[6450]: clr_takecard.c: 158: Working on TakeCard request Apr 11 09:43:00 otto chipcardd[6450]: cm_card.c: 183: Lock request granted Apr 11 09:43:00 otto chipcardd[6450]: clr_takecard.c: 158: Working on TakeCard request Apr 11 09:43:00 otto chipcardd[6450]: lockmanager.c: 167: Lock request granted Apr 11 09:43:00 otto chipcardd[6450]: clr_selectcard.c: 76: Client 443b5c4c: SelectCard [fake-ctapi/nobody] Apr 11 09:43:00 otto chipcardd[6450]: lockmanager.c: 284: slot currently locked by "443b5c0c" (wanted: 443b5c0c) Apr 11 09:43:00 otto chipcardd[6450]: commandmanager.c: 1223: Card type "ProcessorCard" selected Any idea what might be the cause? Maybe gnupg is trying to get two locks on the card? Is there another way to get gnupg working with chipcard2? my versions are: $ LANG=C dpkg -l gnupg libchipcard2-0c2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==================-==================-==================================================== ii gnupg 1.4.3-1 GNU privacy guard - a free PGP replacement ii libchipcard2-0c2 2.1.3-1 library for accessing smartcards Thanks, Joachim -- Joachim "nomeata" Breitner mail: [email protected] | ICQ# 74513189 | GPG-Key: 4743206C JID: [email protected] | http://www.joachim-breitner.de/ Debian Developer: [email protected] ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642