Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Authentication failed to java card Manager after changing Global Platform default key in gpshell

JavaCard Applet Development Related Questions and Answers.
mhsnmaghsoodloo
Posts: 24
Joined: Thu Apr 07, 2016 12:14 pm
Points :457
Contact:

Authentication failed to java card Manager after changing Global Platform default key in gpshell

Post by mhsnmaghsoodloo » Thu Apr 07, 2016 12:20 pm

Hello everyone

I want to change globalplatform default key for loading applet and secure messaging to card manager.
I could change my gemalto default GP card key using bellow commands successfuly:

Code: Select all

mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 1
    select -AID A000000018434D00
    open_sc -security 1 -keyind 0 -keyver 1 -key 47454d5850524553534f53414d504c45  -keyDerivation visa2 // Open secure channel
    put_sc_key -keyver 0 -newkeyver 1 -key 505152535455565758595a5b5c5d5e5f // Put secure channel keys
    card_disconnect
    release_context


But when i want to make secure channel to card manager by new key, cryptogram which produces in host side doesn't match to card side.
Commands for authentication to card manager are:

Code: Select all

 open_sc -security 1 -keyind 0 -keyver 0 -key 505152535455565758595a5b5c5d5e5f  -keyDerivation visa2 // Open secure channel


also i tested

Code: Select all

open_sc -security 1 -keyind 0 -keyver 1 -key 505152535455565758595a5b5c5d5e5f  -keyDerivation visa2 // Open secure channel


and

Code: Select all

 open_sc -security 1 -keyind 1 -keyver 0 -key 505152535455565758595a5b5c5d5e5f  -keyDerivation visa2 // Open secure channel


and

Code: Select all

open_sc -security 1 -keyind 1 -keyver 0 -key 505152535455565758595a5b5c5d5e5f  -keyDerivation visa2 // Open secure channel


Also i tested the process by smartcafe smart expert 3.2 (G&D card) and the results are same.

I appreciate if anyone can help me.

User avatar
lostsiwonlw
Posts: 55
Joined: Fri Jul 31, 2015 9:09 pm
Points :358
Contact:

Re: Authentication failed to java card Manager after changing Global Platform default key in gpshell

Post by lostsiwonlw » Fri Apr 08, 2016 1:17 am

mhsnmaghsoodloo wrote:Hello everyone

I want to change globalplatform default key for loading applet and secure messaging to card manager.
I could change my gemalto default GP card key using bellow commands successfuly:

Code: Select all

mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 1
    select -AID A000000018434D00
    open_sc -security 1 -keyind 0 -keyver 1 -key 47454d5850524553534f53414d504c45  -keyDerivation visa2 // Open secure channel
    put_sc_key -keyver 0 -newkeyver 1 -key 505152535455565758595a5b5c5d5e5f // Put secure channel keys
    card_disconnect
    release_context


But when i want to make secure channel to card manager by new key, cryptogram which produces in host side doesn't match to card side.

Also i tested the process by smartcafe smart expert 3.2 (G&D card) and the results are same.

I appreciate if anyone can help me.


1. Are you sure you have executed PUT KEY command successfully?

2. Please get your card Key Information Template. For this you can use GET DATA command

>> 80CA00E000

From card Key Information Template, we can know that if your key is modified successfully.

3. Try to use old key to build secure channel.
Searching for meaning...

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 43 guests

JavaCard OS : Disclaimer