Page 1 of 2
Create personlization to java card
Posted: Tue Oct 18, 2016 3:40 pm
by yasergh74
Hi
I have java card type j2a80 when i try to download cap file i will recived response A682 file not find when i check the card by gpshell i found was not made personalization so how can i do that
Best regards
Re: Create personlization to java card
Posted: Tue Oct 18, 2016 10:01 pm
by UNKNwYSHSA
Please show us the full logs generated by gpshell.
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 3:33 am
by yasergh74
Hi ,
mode_211
enable_trace
establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
install -file HelloWorld.cap -nvDataLimit 2000 -instParam 00 -priv 2
card_disconnect
release_context
Result :
mode_211
enable_trace
establish_context
card_connect
select -AID a000000003000000
Command --> 00A4040008A000000003000000
Wrapped command --> 00A4040008A000000003000000
Response <-- 6A82
select_application() returns 0x80216A82 (6A82: The application to be selected could not be found.)
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 3:59 am
by UNKNwYSHSA
Send select command without AID: 00A4040000.
And give us the response.
(The response data contains AID of the ISD).
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 4:58 am
by yasergh74
mode_211
enable_trace
establish_context
card_connect
open_sc -security 1 -keyind 0 -keyver 0 -mac_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC -enc_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC // Open secure channel
Command --> 80CA006600
Wrapped command --> 80CA006600
Response <-- 6985
GP211_get_secure_channel_protocol_details() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 5:15 am
by yasergh74
How can initialize the card ?
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 5:36 am
by UNKNwYSHSA
Set argument -scp and -scpimpl, because gpshell can't get these datas from the card.
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 5:56 am
by yasergh74
The same problem
mode_211
enable_trace
establish_context
card_connect
open_sc -scp -scpimpl -security 1 -keyind 0 -keyver 0 -mac_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC -enc_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC // Open secure channel
Command --> 80CA006600
Wrapped command --> 80CA006600
Response <-- 6985
GP211_get_secure_channel_protocol_details() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
My dear the card it not initialized how can initialized can you send me the script ?
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 6:01 am
by UNKNwYSHSA
Code: Select all
open_sc -scp -scpimpl -security 1 -keyind 0 -keyver 0 -mac_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC -enc_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC // Open secure channel
====>>>>
Code: Select all
open_sc -scp 2 -scpimpl 15 -security 1 -keyind 0 -keyver 0 -mac_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC -enc_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC // Open secure channel
And have a try.
Re: Create personlization to java card
Posted: Wed Oct 19, 2016 6:05 am
by yasergh74
mode_211
enable_trace
establish_context
card_connect
open_sc -scp 2 -scpimpl 15 -security 1 -keyind 0 -keyver 0 -mac_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC -enc_key FB03D7FF6A8FF4349A8ED9FB9E2BDBDC // Open secure channel
Command --> 805000000850319C570507ADD700
Wrapped command --> 805000000850319C570507ADD700
Response <-- 6985
mutual_authentication() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)