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.

installation of a cap file with installation parameters

JavaCard Applet Development Related Questions and Answers.
JavaCardVE
Posts: 16
Joined: Sun Sep 11, 2016 8:11 am
Points :278
Contact:

installation of a cap file with installation parameters

Post by JavaCardVE » Sat Apr 22, 2017 11:51 pm

I want to install a cap file using "gp.exe "that have installation parameters. installation params is 4 bytes. src and cap file are attached.



I've tried this commands:

Code: Select all

c:\>gp.exe -package  BB0203040506070809BB -applet BB0203040506070809BB00 -createBB0203040506070809BB00  -params 11223344 -r  "ACS ACR1281 1S Dual Reader PICC 0


and also :

Code: Select all

c:\>gp.exe  -install helloapp2.cap -params 11223344  -r  "ACS ACR1281 1S Dual Reader PICC 0"


but both have error:

Code: Select all

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at pro.javacard.gp.GPTool.getInstParams(GPTool.java:661)
        at pro.javacard.gp.GPTool.main(GPTool.java:507)


How can I install a cap file with installation params(application params) using gp.exe?
Thanks
You do not have the required permissions to view the files attached to this post. Please login first.

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2324
Contact:

Re: installation of a cap file with installation parameters

Post by tay00000 » Sun Apr 23, 2017 7:40 pm

It seems like you are using the GlobalPlatformPro tool. If that is the case, your commands seems to be wrong as you use -install, -package ... which are invalid commands.

You should use --install, --package ... double dashes.

Here are the available command options:

Code: Select all

Option params requires an argument

Option                            Description
------                            -----------
-V, --version                     Show information about the program
-a, --apdu                        Send raw APDU (hex)
--all                             Work with multiple readers
--applet <AID>                    Applet AID
--cap <File>                      Use a CAP file as source
--create <AID>                    Create new instance of an applet
-d, --debug                       Show PC/SC and APDU trace
--default                         Indicate Default Selected privilege
--delete [AID]                    Delete something
--deletedeps                      Also delete dependencies
--dump <File>                     Dump APDU communication to <File>
--emv                             Use EMV diversification
--enc <GPKeySet$GPKey>            Specify ENC key
-h, --help                        Shows this help string
-i, --info                        Show information
--install [File]                  Install applet(s) from CAP
--kek <GPKeySet$GPKey>            Specify KEK key
--key <GPKeySet$GPKey>            Specify master key
--keyid <Integer>                 Specify key ID
--keyver <Integer>                Specify key version
-l, --list                        List the contents of the card
--load <File>                     Load a CAP file
--lock <GPKeySet>                 Set new key
--lock-applet <AID>               Lock specified applet
--mac <GPKeySet$GPKey>            Specify MAC key
--make-default <AID>              Make AID the default
--mode <GlobalPlatform$APDUMode>  APDU mode to use (mac/enc/clr)
--new-keyver <Integer>            key version for the new key
--nofix                           Do not try to fix PCSC/Java/OS issues
--package <AID>                   Package AID
--params                          Installation parameters
-r, --reader                      Use specific reader
--reinstall                       Remove card content during installation
--relax                           Relaxed error checking
--replay <File>                   Replay APDU responses from <File>
-s, --secure-apdu                 Send raw APDU (hex) via SCP
--scp <Integer>                   Force the use of SCP0X
--sdaid <AID>                     ISD AID
--sdomain                         Indicate Security Domain privilege
--terminate                       Indicate Card Lock+Terminate privilege
--uninstall <File>                Uninstall applet/package
--unlock                          Set default key
--unlock-applet <AID>             Lock specified applet
-v, --verbose                     Be verbose about operations
--virgin                          Card has virgin keys
--visa2                           Use VISA2 diversification


Give this command a try:

Code: Select all

gp.exe  --install helloapp2.cap --params 11223344  -r  "ACS ACR1281 1S Dual Reader PICC 0"

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 69 guests

JavaCard OS : Disclaimer