Page 1 of 1

Secure Messaging

Posted: Wed Jul 05, 2017 3:16 am
by Rasiand
I am using SCP01 with static key 40 41 42..4F to protect the READ BINARY APDU. And the external authentication is successful. But I always got error status word 6982 (Security condition not satisfied). Could anyone figure out the reason? Thank you.

Code: Select all

>> 80 50 00 00 08 00 00 00 00 00 00 00 00
<< 00 00 70 71 00 00 02 5B 00 00 FF 01 A0 0A 8C B5 F9 0C 4F 1B 10 90 AD D5 DC 71 B5 A3 90 00

>> 84 82 01 00 10 9A 03 1D 03 34 CC 7C 24 10 BF 87 05 D3 A2 93 C8
<< 90 00

>> 00 A4 02 0C 02 01 02
<< 90 00

>> 04 B0 00 00 08 A2 2C AC BB 79 64 95 1B
<< 69 82


Re: Secure Messaging

Posted: Wed Jul 05, 2017 11:00 pm
by mabel
The problem is your SELECT command is terminating the secure channel. So perform the select before the secure channel.

Re: Secure Messaging

Posted: Thu Jul 06, 2017 6:17 am
by Rasiand
I have tried but it return with 6E00( Class not supported). I guess SELECT command is sent in plain outside the secure channel.

Re: Secure Messaging

Posted: Thu Jul 06, 2017 10:05 pm
by UNKNwYSHSA
1 Maybe you need the PIN verfied.
2 Maybe the command MAC is incorrect. Which tool are you using to send theses commands? The MAC of the READ BINARY command is calculated yourself?