CoolKey Applet Information#
The following is a collection of information about the CoolKey applet. This document includes general information that would assist in compiling a document to Gemalto that would describe to them how to create a card at the factory on behalf of the customer.
We are working on code that allows the applet to accept a “Phone Home URL” upon initialization at the factory. The following information takes that into account.
Applet Package AID: 627601FF0000
Application Instance AID: 627601FF000000
Applet Instance size: 18000 bytes
Example Recommended applet file: 1.3.44724DDE.ijc, note this will change with subsequent builds of the applet.
Here is a build of the latest applet: Latest Applet
This applet has support for the including a “Phone Home URL” which is discussed below.
The new builds numbers will be appended at the end of the file name as new builds are done.
Applet Install Parameters Data
A APDU is being constructed with a buffer of data.
2-bytes data += packageAID.size();
n-bytes data += packageAID;
2-bytes data += appletAID.size();
n-bytes data += appletAID;
2-bytes data += appletAID.size();
n-bytes data += appletAID;
1-byte data += 0x01; // length of application privileges byte
1-byte data += appPrivileges;
\ **
//Next block will be application specific initialization data``
`` //This will include an example phone home url``
`` // Phone home url will be different for each deployment``**1-byte installParams += 0xEF;
1-byte installParams += 0x04;
1-byte installParams += 0xC8;
1-byte installParams += 0x02;
1-byte installParams += (instanceSize>>8) & 0xff;
1-byte installParams += instanceSize & 0xff;
1-byte installParams += 0xC9; //Constant app specific data tag
1-byte installParams += appDataSize;
1-byte installParams += phoneHomeUrlSize;
n-bytes installParams += phone_home_url;
1-byte installParams += 0x0; //Optional memory size, default to 0
1-byte installParams += 0x0; //Optional bit mask size, default to 0
2-bytes data += installParams.size();
n-bytes data += installParams;
1-byte data += (BYTE) 0x00; // size of token return data
`` \ **
//Example data string of install command``
`` // Phone Home URL “abc”``**
\ **
//Install APDU``**\ **
//Install Header Data``**App specific data length 0x7
Phone Home URL length 0x4
Phone Home URL 4 bytes
Custom memory data size 0x0
Custom bitflags data size 0x0
`` // 07 04 61 62 63 64 00 00 00``