Upload CAP file to smart card using APDU
Posted: Wed Jun 10, 2015 3:35 am
I'm trying to install an applet (.cap file) into a smart card. I see that it can be done using APDU. I created my applet using Netbeans and its aid is //aid/9AE9BE4D27/53.
Firstly build apdu that will select the
Then build the apdu which will create my applet (following this sctructure):
I developed an application which can send an apdu command to a real card using channel.transmit(new CommandAPDU(apdu). I guess that if I send the proper installation command, my .cap file should be installed in the card.
With this information can anyone help me to build the correct apdu to install my cap file into a real card?
Thank you.
Firstly build apdu that will select the
Code: Select all
installer applet:
0x00 0xA4 0x04 0x00 0X09 0xA0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7F;
Then build the apdu which will create my applet (following this sctructure):
Code: Select all
header: 0x80 0xb8 0x00 0x00
lc aid length:
aid:
le: 0x7F;
I developed an application which can send an apdu command to a real card using channel.transmit(new CommandAPDU(apdu). I guess that if I send the proper installation command, my .cap file should be installed in the card.
With this information can anyone help me to build the correct apdu to install my cap file into a real card?
Thank you.