error "Bad key id (accepted: 0x81-0x85, is: 80)"

Joachim von Thadden <[email protected]>
Newsgroups gmane.comp.lib.libchipcard.devel
Organization Meine kleine Ich-AG
Message-ID <[email protected]>
Hi,

I'm running the newest libchipcard2 (1.9.12beta) on a FC3 system with
kernel 2.6.11-1.35_FC3 and a micro chipdrive from towitoko from the SEB
Bank (serial) together with their RSA-Card. Everything just works fine:

- the reader is found
- the card is accepted
- the keys and every other information can be read by rsacard2 or with
  aqhbci

Now comes the problem:

When it comes to the point of signing data, I get the following error
message:

3:2005/08/01 13-28-31:chipcard2-client(18372):starcos.c: 1441: Bad key id (accepted: 0x81-0x85, is: 80)
3:2005/08/01 13-28-31:chipcard2-client(18372):starcos.c: 1570: Signing only allowed with kid 0x81-0x85 (is: 80)
3:2005/08/01 13-28-31:aqhbci(18372):rsacard.c: 1281: Error signing hash (6)

As I do not know what a kid is, I don't know what to do now. During a
test under Windows I found out, that the driver there just uses
the bank keys on the card for everything.

Any ideas?

Here is the complete log from aqhbci:

6:2005/08/01 13-28-27:(null)(18372):kbanking.cpp:  354: 04: Beginn
6:2005/08/01 13-28-27:(null)(18372):kbanking.cpp:  354: 05: Aufträge werden vorbereitet
5:2005/08/01 13-28-27:(null)(18372):kbanking.cpp:   69: here
6:2005/08/01 13-28-27:(null)(18372):kbanking.cpp:  354: 04: Verbindung hergestellt mit 193.243.184.115 (Port 3000)
5:2005/08/01 13-28-27:chipcard2-client(18372):client.c:  337: Connected
6:2005/08/01 13-28-27:(null)(18372):kbanking.cpp:  354: 05: Waiting for card
6:2005/08/01 13-28-28:(null)(18372):kbanking.cpp:  354: 05: Card found
5:2005/08/01 13-28-28:chipcard2-client(18372):starcos.c:  109: Opening card as STARCOS card
5:2005/08/01 13-28-28:chipcard2-client(18372):starcos.c:  145: Opening STARCOS card
5:2005/08/01 13-28-28:chipcard2-client(18372):cardcontext.c:  518: EF selected
6:2005/08/01 13-28-31:(null)(18372):kbanking.cpp:  354: 04: PIN ok.
3:2005/08/01 13-28-31:chipcard2-client(18372):starcos.c: 1441: Bad key id (accepted: 0x81-0x85, is: 80)
3:2005/08/01 13-28-31:chipcard2-client(18372):starcos.c: 1570: Signing only allowed with kid 0x81-0x85 (is: 80)
3:2005/08/01 13-28-31:aqhbci(18372):rsacard.c: 1281: Error signing hash (6)
3:2005/08/01 13-28-31:aqhbci(18372):jobqueue.c:  405: Could not encode message
6:2005/08/01 13-28-31:(null)(18372):kbanking.cpp:  354: 02: Aufträge konnten nicht vorbereitet werden
6:2005/08/01 13-28-31:(null)(18372):kbanking.cpp:  354: 04: Verbindung beendet mit 193.243.184.115 (Port 3000)
3:2005/08/01 13-28-31:aqhbci(18372):outbox.c: 1349: Error performing queue (-1)
6:2005/08/01 13-28-31:(null)(18372):kbanking.cpp:  354: 04: Abgeschlossen.

Here is the complete system log:

Aug  1 13:34:15 hobbes chipcardd[4987]: cs_request.c:  790: Client 42edf7bd: StartWait [AqHBCI_RSACard/nobody]
Aug  1 13:34:15 hobbes chipcardd[4987]: cs_request.c:  819: Starting reader "tow1" on account of client 42edf7bd
Aug  1 13:34:15 hobbes chipcardd[4987]: cs_driver.c: 1353: Driver "42edf53d" is up (Library loaded)
Aug  1 13:34:15 hobbes chipcardd[4987]: cs_driver.c:  546: Reader "tow1" is up (Reader up and waiting), info: Manufacturer=DETWK;Terminal=CDM43;Version=2.0.7
Aug  1 13:34:17 hobbes chipcardd[4987]: cardmgr.c:  466: Adding card types...
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_cards.c:  484: Free card added with id "42edfa2c" in reader "tow1"(42edf53d)
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_cards.c:  258: Advertising card 42edfa2c to client 42edf7bd
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c:  992: Client 42edf7bd: TakeCard [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_cards.c:  197: Card "42edfa2c" taken by client "42edf7bd"
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1458: Client 42edf7bd: SelectCard (ProcessorCard) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cardmgr.c:  443: Card type "ProcessorCard" selected
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1458: Client 42edf7bd: SelectCard (starcos) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cardmgr.c:  443: Card type "starcos" selected
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (SelectMF) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (SelectEFS) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (ReadBinary) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (SelectDFL) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c:  905: Client 42edf7bd: StopWait [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (PinStatus) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1317: Client 42edf7bd: ExecCommand (VerifyPin) [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_request.c: 1078: Client 42edf7bd: ReleaseCard [AqHBCI_RSACard/nobody]
Aug  1 13:34:17 hobbes chipcardd[4987]: cs_cards.c:  557: Resetting card "42edfa2c"
Aug  1 13:34:49 hobbes chipcardd[4987]: cs_driver.c:  694: Reader "tow1" is down as expected
Aug  1 13:34:49 hobbes chipcardd[4987]: cs_cards.c:   64: Card 42edfa2c is down: Reader down
Aug  1 13:34:49 hobbes chipcardd[4987]: cs_cards.c:  144: Unused card "42edfa2c" in reader "tow1" is invalid, removing it

Regards
	Joachim von Thadden 
-- 
"Never touch a running system! Never run a touching system?
          Never run a touchy system!!!"


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.