Skip to content

devrandom/javacard-helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compilation

  1. clone https://github.com/martinpaljak/oracle_javacard_sdks somewhere
  2. Create gradle.properties as described below
  3. Run ./gradlew convertJavacard -i

Configure Java Card home

gradle.properties can include something like:

com.fidesmo.gradle.javacard.home=PATH_HERE/oracle_javacard_sdks/jc304_kit/

or you could use an environment variable (name?).

Install and Test

  1. If you have a Status Keycard, it has a non-default development key.

    In that case: export CARD_KEY=c212e073ff8b4bbfaff4de8ab655221f

  2. Install to card with ./gradlew install -i

  3. Ping applet with ./gradlew ping -i

You can also run unit tests, after cloning this repo in the parent directory:

(cd .. && git clone https://github.com/status-im/jcardsim.git jcardsim-status)
./gradlew test -i

Utilities

Recommend building https://github.com/martinpaljak/GlobalPlatformPro and using the gp.jar command. For example gp -list (with -key $CARD_KEY if using Status Keycard) will list the installed applets. This library is also used for our install and uninstall targets.

About

A hello-world Java Card applet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages