Page 1 of 1

came across an error when using GPShell

Posted: Tue Oct 27, 2015 8:06 am
by lostsiwonlw
I came across an error when GPShell sent the command.
Does anyone know the origin of this problem?
The error information is as follows:

establish_context
establish_context
command time: 0 ms
card_connect -reader "Feitian R502 Contact Reader 0"
card_connect -reader "Feitian R502 Contact Reader 0"
command time: 63 ms
open_sc -scp 2 -scpimpl 15 -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
open_sc -scp 2 -scpimpl 15 -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
Command --> 805000000841E626C3EE58114900
Wrapped command --> 805000000841E626C3EE58114900
Response <-- 00000000000000000000FF0200C18F56E24E62FA433C9AAB8F5B95F59000
mutual_authentication() returns 0x80302000 (The verification of the card cryptogram failed.)

Re: came across an error when using GPShell

Posted: Thu Oct 29, 2015 1:18 am
by UNKNwYSHSA
Before you use the open_sc command, set the Operation Mode first.

Operation Mode Commands
mode_201
Sets the protocol mode to OpenPlatform 2.0.1.
Use this for cards compliant with this specification version. This is the default mode.
mode_211
Sets the protocol mode to GlobalPlatform 2.1.1.
Use this for cards compliant with this specification version. Most cards are using now this specification version.