G'day,
I've got a Cyberflex e-gate 32K card, and I've installed the muscle applet on it (package AID A000001, applet AID A00000000101, instance AID A00000000101, as per previous thread).
I've installed libmusclecard, downloaded the muscle framework, and built and installed the MCardPlugin, run bundleTool and selected the mscMuscleCard.bundle, and installed the PKCS11 plugin.
I want to install (or generate) a private key and a certificate on this card. This I can do (apparently) with muscletool.
I've got pcsc-lite running, and the Cyberflex card card with the muscle applet installed in the reader, and want to format the token:
======================================================== $ sudo ./muscleTool
MuscleCard Shell - type help for help
muscle > tokens 1. MuscleCard Applet
muscle > format 1
Would you like to:
1. Use the default factory key: 2C15E526E93E8A19
2. Use the MUSCLE default key : 4D7573636C653030
3. Enter your own transport keyChoose (1-3): ========================================================
Which of option 1 and 2 should I choose? Note that a single transport key is not defined for a Cyberflex e-gate 32K card.
As an experiment, I tried the MUSCLE default key, and got the following error:
======================================================== How much object memory would you like to allocate ? Example: 7096 (7k) : 7096 Please enter a new auth pin value (pin 0) : 00000000 Please enter your user pin value (pin 1) : 00000000 Please enter your user pin unblock value : 11111111 Please enter your number of pin tries : 15
********************* WARNING ! ********************* You are about to destroy all data on this token. *****************************************************
Current admin pin : Muscle00 New admin pin : 00000000 New user pin : 00000000 New user unblock pin : 11111111 Number of tries : 15 Object memory : 7096
Are you sure you want to continue ? (1-YES, 2-NO): 1
Formatting token [*] : Failed (Internal Error) ========================================================
Here's the pcscd output for the above operation -- maybe it has some significant information:
========================================================
winscard_msg.c:197:SHMProcessEventsServer() Common channel packet arrival
winscard_msg.c:206:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 8
pcscdaemon.c:136:SVCServiceRunLoop() A new context thread creation is requested: 8
winscard_svc.c:103:ContextThread() Thread is started: 8
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard_svc.c:145:ContextThread() Client is protocol version 2:0
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard.c:69:SCardEstablishContext() Establishing Context: 17033098
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard.c:123:SCardConnect() Attempting Connect to SCR 331 00 00 using protocol: 3
winscard.c:228:SCardConnect() Active Protocol: unknown 0
winscard.c:238:SCardConnect() hCard Identity: 167af
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard.c:1375:SCardTransmit() Send Protocol: T=4
winscard.c:1402:SCardTransmit() Card not transacted: -2146435041
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard.c:1375:SCardTransmit() Send Protocol: T=4
winscard.c:1402:SCardTransmit() Card not transacted: -2146435041
winscard_msg.c:263:SHMProcessEventsContext() correctly processed client: 8
winscard.c:620:SCardDisconnect() Active Contexts: 1
ifdhandler.c:689:IFDHPowerICC lun: 0
winscard.c:679:SCardDisconnect() Reset complete.
winscard_msg.c:251:SHMProcessEventsContext() Client has disappeared: 8
winscard_svc.c:116:ContextThread() Client die: 8
winscard.c:80:SCardReleaseContext() Releasing Context: 17033098
========================================================
"Card not transacted: -2146435041" seems kinda ominous.
Can anyone point out what is causing the above error, or provide guidance on what I should be doing?
-- Geoff _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
