安装后将Javacard小程序标记为隐式可选(默认小程序) [英] Mark Javacard applet as implicit selectable (default applet) after install
问题描述
我正在寻找一种方法,将小程序已经上载并安装在 JCOP 2.4. 2 R1 系统(适用于NXP JCOP Tools中的启动器 Java卡模拟).
I'm looking for a way to mark an applet as the implicit selectable/"selected by default" applet after it already has been uploaded and installed on a Global Platform/JCOP 2.4.2 R1 system (for starters in the NXP JCOP Tools Java Card Simulation).
在JCOP shell中没有安装-d
参数的情况下安装了applet:
The applet has been installed without the -d
parameter in the JCOP shell:
cm> install -i a000100201100001 -q C9#() a000100201100000 a000100201100001
=> 80 E6 [...]
90 00
在那之后状态是
Card Manager AID : A000000003000000
Card Manager state : OP_READY
Application: SELECTABLE (--------) A000100201100001
Load File : LOADED (--------) A0000000035350 (Security Domain)
Module : A000000003535041
Load File : LOADED (--------) A000100201100000
Module : A000100201100001
所需的结果是
Card Manager AID : A000000003000000
Card Manager state : OP_READY
Application: SELECTABLE (-----D--) A000100201100001
Load File : LOADED (--------) A0000000035350
[...]
这是使用-d|--default
参数安装小程序时的输出.
我怀疑通过卡管理器小程序中的STORE-DATA命令以某种方式完成了此属性的更改,但是还无法找到确切,详细的命令(结构),甚至没有需要修改的标签.
That's the output when the applet is installed with the -d|--default
parameter.
I suspect changing this attribute is somehow done via the STORE-DATA command in the card manager applet but haven't been able to find the exact, detailed command (structure) - not even the tag that needs to be modified.
推荐答案
这取决于卡-安装后,并非所有卡似乎都支持将applet设置为默认.但是您可以使用具有--make-default <AID>
选项的Java开源 GlobalPlatform 工具:
It depends on cards - not all of them seem to support making an applet default after installation. But you can use the open source GlobalPlatform tool for Java that has --make-default <AID>
option:
java -jar gp.jar --make-default A000100201100001
IIRC JCOP是实际上支持它的卡片之一.
IIRC JCOP was one of the cards that actually supported it.
这篇关于安装后将Javacard小程序标记为隐式可选(默认小程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!