forked from licel/jcardsim
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Command Line Tutorial, Advanced
Martin Paljak edited this page Jul 6, 2025
·
5 revisions
Oracle Java Card Simulator runs only on Linux (x86) and Windows, and the PC/SC adapter is only available on Linux (x86).
If you have configured VSmartCard on your host, you can use jcard to connect to Oracle's Simulator from any platform supported by vsmartcard.
java -jar jcard.jar --passthrough-host 192.168.100.23
- Assumes the setup was already done as explained in Command Line Tutorial, Beginner
# Export necessary variables
export JC_HOME_SIMULATOR=$HOME/jcsdksim
export LD_LIBRARY_PATH=$JC_HOME_SIMULATOR/runtime/bin
# Support legacy DES
export OPENSSL_MODULES=$JC_HOME_SIMULATOR/runtime/bin
# Configure simulator with default keys for GPPro
java -jar $JC_HOME_SIMULATOR/tools/Configurator.jar \
-binary $JC_HOME_SIMULATOR/runtime/bin/jcsl \
-force -verbose \
-SCP-keyset 30 404142434445464748494a4b4c4d4e4f 404142434445464748494a4b4c4d4e4f 404142434445464748494a4b4c4d4e4fNow run the simulator (default port is 9025, which can be changed with -p=9025)
$JC_HOME_SIMULATOR/runtime/bin/jcslTip
Run the simulator from screen or tmux to keep it running.
Note
Make sure that firewalls don't block connecting from remote hosts to simulator (ufw allow 9025/tcp) or tunnel traffic with SSH (ssh -L 9025:127.0.0.1:9025 you@your.host)
javacard.pro - custom JavaCard applet development services · Editing locked due to malicious SPAM, sorry :(