Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Find a way to open a secure channel

JavaCard Applet Development Related Questions and Answers.
KevinAli
Posts: 24
Joined: Fri Aug 21, 2015 3:38 am
Points :104
Contact:

Find a way to open a secure channel

Post by KevinAli » Mon Dec 21, 2015 3:09 am

I wrote an applet and it always returned "0x6982"(Security condition not satisfied).

Here is part of code:

Code: Select all

 byte[] header = {(byte)0x02, (byte)0x01, (byte)0x01}; 
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    outputStream.write(header);
    outputStream.write(Value.SN.getBytes());
    byte[] excpectedRes = outputStream.toByteArray();

    ResponseAPDU answer = channel.transmit(new CommandAPDU(0x84, 0xCA, 0x02, 0x01, Value.Emptydata));
    nameTest = "Test Select Serial number " + answer.toString();
    CheckSW(0x90, 00, answer);
    CheckResult(excpectedRes, result);


After a hard search on the web, I find that I need to open a secure channel first. But where can I find a way to open the secure channel? Does anyone have clue about this? Thanks in advance

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Find a way to open a secure channel

Post by UNKNwYSHSA » Mon Dec 21, 2015 10:53 pm

You can send your APDU command with CLA = 0x80.
Because your current APDU command with CLA = 0x84 indicates that this command with secure messaging.
Wait your message.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 21 guests

JavaCard OS : Disclaimer