JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
I got 0x6985 and 0x611C from my java card in different scenario.
-
- Posts: 8
- Joined: Wed Aug 12, 2015 6:27 am
- Points :21
- Contact:
I got 0x6985 and 0x611C from my java card in different scenario.
I have a written a java applet to send APDU command to my java card. When I am sending Init_Auth command(80500000...) to the card, it returns sw=0x6985.
But when I send the same command with pyApdutool, I get "611C".
It's odd. Could anyone give me a tip? Why does this happen?
But when I send the same command with pyApdutool, I get "611C".
It's odd. Could anyone give me a tip? Why does this happen?
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: I got 0x6985 and 0x611C from my java card in different scenario.
When it returns "61 1C" response, you need to send "Get response" APDU command.
>> 00 C0 00 00 1C
>> 00 C0 00 00 1C
-
- Posts: 8
- Joined: Wed Aug 12, 2015 6:27 am
- Points :21
- Contact:
Re: I got 0x6985 and 0x611C from my java card in different scenario.
horse dream wrote:When it returns "61 1C" response, you need to send "Get response" APDU command.
>> 00 C0 00 00 1C
Hi @ horse dream. Thank your for your answer. But I know this. My main question is why I got different status word("6985", "611C") when I send the same command via my java code and APDUTool.
Re: I got 0x6985 and 0x611C from my java card in different scenario.
You may try to append 0x1C to APDU command, just like:
80 50 00 00 0X AID 1C
note: 0x is the AID's length.
80 50 00 00 0X AID 1C
note: 0x is the AID's length.
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: I got 0x6985 and 0x611C from my java card in different scenario.
nearsunshine wrote:Hi @ horse dream. Thank your for your answer. But I know this. My main question is why I got different status word("6985", "611C") when I send the same command via my java code and APDUTool.
For java, there is a "feature" in a package javax.smartcardio when it is working with a card protocol T=0
The solution of problem is to update that package with the errorless release.
You may have a try.
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: I got 0x6985 and 0x611C from my java card in different scenario.
The pyApdu tool select Security Domain (SD) first, and the INITIALIZE UPDATE command get response succeeded.
Make sure that your offcard application select SD first. If not, and if your card has one applet had RESET privilege. The INITIALIZE UPDATE command will be sent to the applet.
Make sure that your offcard application select SD first. If not, and if your card has one applet had RESET privilege. The INITIALIZE UPDATE command will be sent to the applet.
sense and simplicity
Who is online
Users browsing this forum: No registered users and 32 guests