JavaCard Applet Development Related Questions and Answers.
-
james
- Posts: 4
- Joined: Wed Aug 23, 2017 11:16 am
- Points :96
-
Contact:
Post
by james » Wed Aug 23, 2017 11:19 am
I'm trying to change the card manager AID on a JavaCard 3.x smartcard by using a STORE DATA command. The current card manager AID is the factory default of A0 00 00 01 51 00 00 00. After authenticating with the card manager, the command I'm sending is:
Code: Select all
=> 80 E2 80 00 0A 4F 08 A0 00 00 00 03 00 00 00
<= 6A 88
This command executes successfully on a JavaCard 2.2.x card - has this feature been deprecated on JC 3.x?
-
mabel
- Posts: 237
- Joined: Mon May 18, 2015 3:09 am
- Points :1705
-
Contact:
Post
by mabel » Thu Aug 24, 2017 1:33 am
Try to use 80 e2 80 00 0d 0070 0a 4f 08 a000000151000000 instead of the command you wrote.
Related commands:
RESET; 00a4040000; AUTH 3; 80e280000d00700a4f08a000000151000000; RESET;
Hope this can help.
-
james
- Posts: 4
- Joined: Wed Aug 23, 2017 11:16 am
- Points :96
-
Contact:
Post
by james » Thu Aug 24, 2017 4:35 am
The extra 00 70 bytes in there specify DGI formatting I believe? I have also tried this option, and it fails with a different error:
Code: Select all
=> 80 E2 80 00 0C 00 70 4F 08 A0 00 00 00 03 00 00 00
<= 6A 80
-
mabel
- Posts: 237
- Joined: Mon May 18, 2015 3:09 am
- Points :1705
-
Contact:
Post
by mabel » Fri Aug 25, 2017 1:37 am
You forgot the data length after 0070. It should be 0070 Length XXXXXX.
>> 80 E2 80 00 0C 00 70 0A 4F 08 A0 00 00 00 03 00 00 00
-
james
- Posts: 4
- Joined: Wed Aug 23, 2017 11:16 am
- Points :96
-
Contact:
Post
by james » Fri Aug 25, 2017 7:32 am
Great spot, thanks. The DGI-formatted command was being generated by the JCOP Tools, so I had assumed it was in the right format!
Users browsing this forum: Bing [Bot] and 13 guests
JavaCard OS : Disclaimer
Board Disclaimer
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.