I made a .cap file of the popular \"Hello World\" javacard code via Eclipse
And now I want to load it in a real javacard via GPShell and ACR38 smart card reader.
<Response code 6A 82
is used for Security_Status_Not_Satisfied
.
On selection of Security Domain
, this status word may occur due to one of following two reasons :
Either Card Life Cycle State (CLCS)
of Card is LOCKED
or TERMINATED
, so the selection of Security Domain is not allowed, because if the CLCS is LOCKED
then only that security domain and/or application can be selected which has Card Lock privilege, and if CLCS is TERMINATED
then if a Security Domain has the Final Application privilege only the GET DATA command shall be processed, all other commands shall be disabled and shall return an error.If the CLCS is LOCKED
then try to select that security domain and/or application which has Card Lock privilege and try to move Card Life Cycle State (CLCS) to SECURED
using SETSTATUS
command with the help of SCP session
,otherwise if CLCS is TERMINATED
then CLCS can't switch back to SECURED, as this state is irreversible.
OR the Security Domain
, which you try to select is itself in LOCKED
state, in this case that Security Domain may be prevented from further selection by the OPEN and error status word is returned.
@CLCS - Card Life Cycle State.
Happy to Help.
the Card Manager AID shows that it is a Gemalto XPresso Card. the default cards for this card is 47454d5850524553534f53414d504c45 try to set those keys. in case it does not work the card has changed CM Keys or the Card might be locked beware that trying to authenticate too often with wrong keys might lock the card
You should require about the Global Platform state of the card. 6982
is a general status word that means "Security status not satisfied", so your card may be in the wrong state (e.g. the Global Platform LOCKED or TERMINATED state).
It could also be that you are using an invalid Global Platform key set, or that the keys are not available.
Please contact the supplier of the smart card about the card state and which keys you should use.