Java卡函数获取智能卡GUID/UUID?
我正在尝试编写一个简单的javacard应用程序,它允许您读取卡的GUID/UUID 使用简单的 APDU 命令。
据我了解,每张智能卡都包含一个该卡唯一的 GUID。该 GUID 应该可以使用标准 APDU 命令检索。
有人知道该怎么做吗?也许有示例项目,甚至只是一个执行此操作的 java 函数?
最好的问候
A.E
I am trying to write a simple javacard app that allows you to read the cards GUID/UUID
using a simple APDU command.
As I have come to understand each smart card contains a GUID which is unique to the card. This GUID should be retrievable using a standard APDU command.
Does any one know how to do this? Maby have example projects or even just a java function that does this?
Best regards
A.E
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AFAIK GUID/UUID 不是适用于任何智能卡产品的标准卡实例标识方式。例如,SIM 卡是使用文件 EF_ICCID(ICC 标识)(ETSI TS 102 221 V6.15.0 (2010-02))的内容来识别的,因此您可以通过正常的 UICC 文件访问 API 获取它。 ATR 用于卡类型识别 (ISO/IEC 7816-4)。卡上的 GUID/UUID 特定于某些智能卡制造商/产品或智能卡应用程序。
因此,对于 GUID/UUID,您应该至少识别产品和制造商文档或使用该特定卡的人员可以回答您是否可以检索此信息以及如何检索(使用标准 API - 例如,如果它存储在 EF 或专有文件中)一个小程序。
从终端端来说,这通常是在经过一些安全验证后使用 SELECT/READ* 或 GET DATA APDU 来完成的。
AFAIK GUID/UUID is not a standard card instance identification mean applicable for any smartcard product. For example, SIM cards are rather identified using the content of a file EF_ICCID (ICC Identification) (ETSI TS 102 221 V6.15.0 (2010-02)) so you can get it through normal UICC file access APIs. The ATR is used for card type identification (ISO/IEC 7816-4). GUID/UUID presence on card is specific to some smartcard manufacturer/product or smartcard application.
So for GUID/UUID you should identify at least the product and the manufacturer doc or someone working with that specific card can answer you if this information is retrievable and how (using standard APIs - e.g. if it's stored in a EF- or proprietary) from an applet.
From terminal side this is usually done using SELECT/READ* or GET DATA APDUs after some security verifications.
GUID 不一定是智能卡标识符。实际上智能卡中不可能有唯一标识符。 GUID 始终是某些自定义实现的结果,例如,将 GUID 号存储在只读文件中。
我不确定类字节0xFF,GSM是A0,00/8X用于UICC,8X用于GP,INS CA通常是GETDATA
GUID is not necessary to be a smart card identifier. Actually there could be no unique identifier in a smart card. GUID is always the result of some custom implementation, for example, store the GUID number in a read only file.
I'm not sure of class byte 0xFF, GSM is A0, 00/8X is used for UICC, 8X is used for GP, INS CA is usually GETDATA