SIM Card Authentication

拟墨画扇 提交于 2019-12-06 07:20:28

Not all cards supports mutual authentication. Most probably yours doesn't support it. Is your card gemalto one? If yes, do you have ADM keys of the card? Actually gemalto has 3 types of cards:

  1. Fully native cards without GP at all.
  2. Middle range cards, these cards support partially GP but no mutual authentication. On these cards verification of ADM key is enough.
  3. High-end cards, these cards support all latest technos.

To verify ADM key you have to send:

00 20 00 <adm key number> 08 <adm key value>

If you know which keyset hold ADM key, you can send proprietary Verify key command:

F0 2A 00 <keyset number> 08 <adm key value>

The message is an ISO 7816-4 specified status word in hexadecimals. It means "INS not supported". This is an indication that that specific authentication command is not supported. This could be because the card is not according to the specifications (you are expecting it to have) or because it is in the wrong life-cycle state.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!