Hi,

please forgive me, I'm totally newbie in smartcard world, but may-be someone can give any hint.. I digged down the arhices of this list, but the solution for my problem haven't found yet.

I try to use Gemalto "TOP IM FIPS CY2 Codeshield (Old name = Cyberflex 64K v2)" card with gpshell 1.4.2. According their webpage it follows the JC2.1 / GP2.0.1 standards (http://www.gemalto.com/products/top_javacard/).

I successfull loaded applet into the card, but card gives the error: "install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)"

Same error I got with gpshell sample applet HelloWorld.cap.transf and also with applet, that I would like to install - coolkey applet - http://directory.fedora.redhat.com/download/CardEdge.1.3.473df442.ijc. There is additional information about applet http://directory.fedoraproject.org/wiki/AppletInformation


 More information about the applets in card:
-----
[too...@ca gpshell-1.4.2]$ gpshell list.txt
mode_201
enable_trace
establish_context
card_connect
select -AID a0000000030000
Command --> 00A4040007A0000000030000
Wrapped command --> 00A4040007A0000000030000
Response <-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
Command --> 80500000082A028BB5A67688A100
Wrapped command --> 80500000082A028BB5A67688A100
Response <-- 00007000270F26247ACC0101F8D1EBD41F461D34A7A47D092B4009AA9000
Command --> 8482010010066D226971EF09822A02668B206FD2B3
Wrapped command --> 8482010010066D226971EF09822A02668B206FD2B3
Response <-- 9000
get_status -element e0
Command --> 80F2E000024F0000
Wrapped command --> 84F2E0000A4F00EB4AA4FCD7634FDD00
Response <-- 08A000000003000000070007A0000000620001010007A0000000620101010007A0000000620102010007A0000000620201010007A000000003000001000EA000000030000070006800102030010007A000000132000101000EA00000003029057000AD14100101010007A0000000035344010007A000000003535001009000

List of applets (AID state privileges)
a000000003000000    7    0
a0000000620001    1    0
a0000000620101    1    0
a0000000620102    1    0
a0000000620201    1    0
a0000000030000    1    0
a000000030000070006800102030    1    0
a0000001320001    1    0
a00000003029057000ad14100101    1    0
a0000000035344    1    0
a0000000035350    1    0
card_disconnect
release_context
[too...@ca gpshell-1.4.2]$
-----
Now the result of helloInstallCyberflexAccess64k.txt from gpshell package.
-----
[too...@ca gpshell-1.4.2]$ gpshell helloInstallCyberflexAccess64k.txt
mode_201
enable_trace
establish_context
card_connect
select -AID a000000003000000
Command --> 00A4040008A000000003000000
Wrapped command --> 00A4040008A000000003000000
Response <-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
Command --> 805000000848E23C175C246F2200
Wrapped command --> 805000000848E23C175C246F2200
Response <-- 00007000270F26247ACC0101B9C4298BF795FCDA1AB8EF0C3AF775939000
Command --> 8482010010D77277EEE21DE15FDB71C1DB02BA302F
Wrapped command --> 8482010010D77277EEE21DE15FDB71C1DB02BA302F
Response <-- 9000
delete -AID a00000006203010c0101
Command --> 80E400000C4F0AA00000006203010C010100
Wrapped command --> 84E40000144F0AA00000006203010C0101E4DC329D8D0DF7D700
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID a00000006203010c01
Command --> 80E400000B4F09A00000006203010C0100
Wrapped command --> 84E40000134F09A00000006203010C01ACE3D6EA6B05203700
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500 -sdAID A000000003000000 Command --> 80E602001C09A00000006203010C0108A0000000030000000006EF04C60202000000 Wrapped command --> 84E602002409A00000006203010C0108A0000000030000000006EF04C60202000014A0CB02903E835F00
Response <-- 009000
load -file HelloWorld.cap.transf
Command --> 80E80000EFC482019A010013DECAFFED010204000109A00000006203010C0102001F0013001F000E000B0036000C0066000A00130000006C00000000000001010004000B01000107A000000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070066000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052E198B00062904033170191B08AD001E16048D000B3B1E1604413119088B000C2904160464E7198B00073B191E08418B00081903088B000919AD00031E8B000A7A08000A00000000000000000000050036000D02000000068003000380 Wrapped command --> 84E80000F7C482019A010013DECAFFED010204000109A00000006203010C0102001F0013001F000E000B0036000C0066000A00130000006C00000000000001010004000B01000107A000000062010103000E010AA00000006203010C0101001406000C00800301000107010000001F070066000210188C000118110100900B8700188B00027A02308F00033D8C00043B7A0523198B00052E198B00062904033170191B08AD001E16048D000B3B1E1604413119088B000C2904160464E7198B00073B191E08418B00081903088B000919AD00031E8B000A7A08000A00000000000000000000050036000D02000000068003000380249F1FA77ABA13A0
Response <-- 9000
Command --> 80E88001AF0301010000000600000103800A0103800A0603800A0703800A0903800A0403800A050680100203800A0309001300030E252C000C050C06040805100B0A0806080B006C010001000000000100030002000000001C00840001001E0011000000000109001400300009000000000701001F0033004500000000000D001C001E001EFFFF001E001C00200020002200240027002A002E01B001100140024103441004B44106B4B444024404B431066800A100 Wrapped command --> 84E88001B70301010000000600000103800A0103800A0603800A0703800A0903800A0403800A050680100203800A0309001300030E252C000C050C06040805100B0A0806080B006C010001000000000100030002000000001C00840001001E0011000000000109001400300009000000000701001F0033004500000000000D001C001E001EFFFF001E001C00200020002200240027002A002E01B001100140024103441004B44106B4B444024404B431066800A16721564730942C1700
Response <-- 009000
install_for_install -instParam 00 -priv 02 -AID A0000003230101 -pkgAID a00000006203010c01 -instAID a00000006203010c0101 -nvDataLimit 500 Command --> 80E60C002A09A00000006203010C0107A00000032301010AA00000006203010C0101010209C90100EF04C80201F40000 Wrapped command --> 84E60C003209A00000006203010C0107A00000032301010AA00000006203010C0101010209C90100EF04C80201F400DE4EBEB67985331C00
Response <-- 6A80
install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
[too...@ca gpshell-1.4.2]$
---
The same result I got with mentioned coolkey applet.
----
[too...@ca applet]$ gpshell 2009-09-09-installCA64k2.txt
mode_201
enable_trace
establish_context
card_connect
select -AID a000000003000000
Command --> 00A4040008A000000003000000
Wrapped command --> 00A4040008A000000003000000
Response <-- 6F198408A000000003000000A50D9F6E062091010342759F6501FF9000
open_sc -security 3 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 8050000008990C6C883CF5C7FA00
Wrapped command --> 8050000008990C6C883CF5C7FA00
Response <-- 00007000270F26247ACC0101D058E906C1348A24FC01A92FB6AB960E9000
Command --> 84820300103B6635019B6C38A9FD322BED88243B3E
Wrapped command --> 84820300103B6635019B6C38A9FD322BED88243B3E
Response <-- 9000
delete -AID a627601FF000000
Command --> 80E400000A4F08A627601FF000000000
Wrapped command --> 84E400001859BFFCB3306675C6256CF7FC448C6DCB612F82EACD65600100
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
delete -AID a627601FF0000
Command --> 80E40000094F07A627601FF0000000
Wrapped command --> 84E4000018ABB23F7FF719C4F769E1D6BCEBDDCA47E6D84ACE1D45980900
Response <-- 6A88
delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
install_for_load -pkgAID a627601FF0000 -nvCodeLimit 18000 -sdAID A000000003000000
Command --> 80E602001A07A627601FF0000008A0000000030000000006EF04C60246600000
Wrapped command --> 84E60200288663005BB47729FB66E94B3DFC72CDFA1641515604A13BBE30513883C2143E0521AD71737258FC4900
Response <-- 009000
load -file CardEdge.1.3.473df442.ijc
Command --> 80E80000EFC4823A3D010010DECAFFED010204000106627601FF000002001F0010001F000B0033032200762810002A04A10000093F00040002001A05010004003305000107A0000000620001000107A0000000620101010107A0000000620102010107A0000000620201000107A000000003000003000B0107627601FF0000002031060076008000040001010800000024002B00320039004900DF00F001150081032100150701000022AD00800002000101110000234723BF2476249924A624AB24B224BB24CC24F324FC25072542254A255425652570008000030001010D000025AA25B525C025CB25F726122678269A272827

......

Command --> 80E8803E5FB4400B68203682021005682030056820200834268200073268301006600261023307326820F00343B00343A00333400444420444410644B44104B44307336820F0066810A1024303443006B44441034310044431034B200544B4400544B41000 Wrapped command --> 84E8803E68F258F97E67E3FAAE275F2EB7C4FEBF8235FF5133096B9590ECF5857F40DFAAE90E4118053C971E869749D57F450CD2A56A16C5DBDB6A9D20E76198BC28F741FDCC966E1A6E755F3B5D5B6DEF5BFCE23C2B73670C82AC523FD0F6B94A1E16B67D411A41FE943E1B6D00
Response <-- 009000
install_for_install -instParam 00 -priv 02 -AID a627601FF000000 -pkgAID a627601FF0000 -instAID a627601FF000000 Command --> 80E60C002107A627601FF0000008A627601FF000000008A627601FF0000000010203C901000000 Wrapped command --> 84E60C00305B10C0C29A62AD08D9FE098306BA835CA7E32617764B71E9CF135D4BE112754B5A21DB74806DD11929DEC1B4BB8AE51400
Response <-- 6A80
install_for_install_and_make_selectable() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)
[too...@ca applet]$
----

I'm I wrong with parameters for the install_for_install command ?

regards Toomas Nurmoja

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to