1

I know this question was asked before here. But the answers are useless for me.

I have pc/sc reader and contactless card(mifare card), I can connect to the card and also I can execute the getdate command successfully. However, when I want to authenticate I see this error:

"6982:Security status not satisfied"

I've tried these 4 different commands for authentication but I get the same error for all of them.

FF 88 00 00 06 FF FF FF FF FF FF
FF 88 00 00 60 12
FF 88 00 00 05 01 00 12 60 00
FF 88 00 00 60 00

How can I authenticate to this card ?

Luuklag
  • 3,897
  • 11
  • 38
  • 57
Mahmut EFE
  • 5,137
  • 5
  • 46
  • 56

1 Answers1

1

The GENERAL AUTHENTICATE instruction performs a Mifare Classic authentication (CRYPTO1). The application must provide the index of the key to be used; this key must have been loaded into the reader through a previous LOAD KEY instruction.

Do not invoke this function if the currently activated PICC/VICC is not a Mifare Classic!

FF 86 00 00 05 01 00 blockNo keyLocation keyIndex

Where

blockNo = is the address on the card, where we try to be authenticated.

keyLocation =

  • h60 for authentication using a CRYPTO1 “A” key (standard PC/SC-defined value)
  • h61 for authentication using a CRYPTO1 “B” key (standard PC/SC-defined value)

keyIndex = key index in the reader where you have load the key(posible value from 0x00 to 0x1f)

jiten
  • 5,128
  • 4
  • 44
  • 73
  • 1
    am using your apdu command but it return 1C what is the meaning of it. – senthilkumar2185 Nov 10 '14 at 09:09
  • Return code of any command is 2 byte long,like 0x9000 for success. but "1C" not possible. btw which reader you are using? – jiten Nov 10 '14 at 09:24
  • @vikky Do you mind sharing your suggestion for https://stackoverflow.com/questions/51548209/69-82security-condition-not-satisfied-adpu-resposne-with-android-nfc – Balwinder SIngh Jul 27 '18 at 12:57