Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
315 views
in Technique[技术] by (71.8m points)

windows ce - Mifare Standard 1K - 6D00 for external authentication APDU

External Authentication: FF 82 20 00 06 FF FF FF FF FF FF

What is the correct procedure to run External Authentication? Do we need to run Get Challenge before External Authentication?

If I send the apdu of external authentication to OMNIKEY smart card reader, it will return me 9000 which mean success.

But If I do the same step with Workabout Pro4 and it return 6D00?

6D00 is instruction code is not supported or invalid, but it was working with Omnikey smart card reader. How to solve this problem?

FYI: Read UID APDU Command is working on both devices: FF CA 00 00 00

I have tried many different ways but none is working.

  1. Changing the shared_mode while connect card[Exclusive, Shared]
  2. Lock the thread for specific process
  3. Put the thread to wait for few seconds before sending APDU
  4. Send Get Challenge apdu before external authentication but failed
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I found the answer myself.

There are two Load Authentication Keys APDU commands:

  1. FF 82 20 00 06 FF FF FF FF FF FF (Obsolete)
  2. FF 86 00 00 05 01 00 [Block Number] [Key Type] [Key Number]

Use the second APDU command to do Load Authentication Keys then read/write the Mifare card content.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...