简体   繁体   English

如何在 Gemalto IdPrime 930 智能卡上通过 APDU 命令创建 EF

[英]How can I create EF by APDU commands on Gemalto IdPrime 930 smartcard

I'm trying to create EF on the smartcard using APDU command: 80 E0 00 00 1C 62 1A 80 01 80 82 01 01 83 02 55 5A 86 09 00 00 00 00 00 00 00 00 00 A5 03 83 01 00 and get the error 69 85 (Condition of use not satisfied:- more than 1 logical channel open - selected logical channel not channel 0).我正在尝试使用 APDU 命令在智能卡上创建 EF: 80 E0 00 00 1C 62 1A 80 01 80 82 01 01 83 02 55 5A 86 09 00 00 00 00 00 00 00 00 00 A5 03 83 01 00并获取错误69 85 (不满足使用条件:- 超过 1 个逻辑通道打开 - 选择的逻辑通道不是通道 0)。

I'm sending this APDU just after ATR.我在 ATR 之后发送这个 APDU。 What's wrong?怎么了? It's a new card, do I need verify PIN before the file creating operation?是新卡,建档前需要验证密码吗?

Update: I added PIN verification and SELECT MF: <Send: 00 21 00 11 06 31 32 33 34 35 36 Rcv: 90 00 Send: 00 A4 00 0C 3F 00 Rcv: 90 00> But still get 6985 after CREATE command mentioned above (更新:我添加了 PIN 验证和 SELECT MF: <Send: 00 21 00 11 06 31 32 33 34 35 36 Rcv: 90 00 Send: 00 A4 00 0C 3F 00 Rcv: 90 00> 但在上述 CREATE 命令后仍然得到 6985 (

No experience with Gemalto-cards, but 69 85 typically indicates, that the command may be correct in principle, but has some preconditions currently not fulfilled, like the attempt to perform a challenge-response test without previously retrieving a random number, use of a key which not got a valid value etc. Are you sure, that the card is in a state, where new files may be created?没有使用金雅拓卡的经验,但 69 85 通常表明该命令原则上可能是正确的,但目前有一些先决条件尚未满足,例如尝试在没有事先检索随机数的情况下执行质询-响应测试,使用没有有效值的密钥等。您确定该卡位于 state 中,可以在其中创建新文件吗?

If an access right acquired by VERIFY would be missing, there is no real alternative to 69 82 "Security status not satisfied".如果通过 VERIFY 获取的访问权限将丢失,则没有真正的替代 69 82“不满足安全状态”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM