我不能 select 信用卡上的 MF
I can't select MF on credit card
我正在尝试以下 APDU:
00 A4 00 00 02 3F 00 00
一切都符合 ISO 7816-4 (7.1.1),但执行失败,出现 SW 0x6A86(参数 P1-P2 不正确)
为什么?我做错了什么?
标准状态如下:
If P1 is set to '00', then the card knows whether the file to select
is the MF, a DF or an EF, either because of a specific encoding of the
file identifier, or because of the command processing context.
...
If P2 is set to '00' and the command data field absent or set to '3F00', then the MF shall be selected.
我检查了所有 Visa/MC 卡,但此 APDU 在所有卡上都失败了。
你的想法是正确的,但没有这个背景很难理解:
智能卡要么是本地卡(当然,它们具有包括 MF 的文件系统),要么是 Javacards/Open Plattform 卡(具有 none)。两种类型共享的 Select 命令是 AID(应用程序 ID)的 select,即。 e. select正在运行一个应用程序(P1 = 4,命令数据字段包含 AID)。两者都可以实现符合 EMV 标准的卡,但显然你只有后者。
我正在尝试以下 APDU:
00 A4 00 00 02 3F 00 00
一切都符合 ISO 7816-4 (7.1.1),但执行失败,出现 SW 0x6A86(参数 P1-P2 不正确)
为什么?我做错了什么?
标准状态如下:
If P1 is set to '00', then the card knows whether the file to select is the MF, a DF or an EF, either because of a specific encoding of the file identifier, or because of the command processing context.
...
If P2 is set to '00' and the command data field absent or set to '3F00', then the MF shall be selected.
我检查了所有 Visa/MC 卡,但此 APDU 在所有卡上都失败了。
你的想法是正确的,但没有这个背景很难理解:
智能卡要么是本地卡(当然,它们具有包括 MF 的文件系统),要么是 Javacards/Open Plattform 卡(具有 none)。两种类型共享的 Select 命令是 AID(应用程序 ID)的 select,即。 e. select正在运行一个应用程序(P1 = 4,命令数据字段包含 AID)。两者都可以实现符合 EMV 标准的卡,但显然你只有后者。