Page 1 of 1

Question bout Secure Messaging

Posted: Wed Jun 07, 2017 4:14 am
by NeinET
I tried to send APDU commands over secure message channel. The command has to be encrypted and the MAC has to be calculated.
For example, my off-card application sends this command to card.
0C8400000D9701088E08D23BE12D9B389CBD00

The card replies with the response that contains status word:
6985: Command not allowed - Conditions of use not satisfied.

I checked my code and I see that the method to which this command is sent does not throw such exception. Does anyone experience this?

Re: Question bout Secure Messaging

Posted: Wed Jun 07, 2017 5:56 am
by Tarantino
It seems that the default selected applet is trying to process the APDU.
Have you selected your applet firstly?

Re: Question bout Secure Messaging

Posted: Wed Jun 07, 2017 10:42 pm
by NeinET
Sorry, I forgot to select my applet first. How carelessness am I. It works now.