Page 1 of 1

Trouble with GlobalPlatform Secure Connection

Posted: Sat Aug 10, 2019 4:38 pm
by OneUser
I am trying to work with Gemalto sim card (JavaCard 3.0, GlobalPlatform 2.2.1),ATR=3B9F96C00A1FC68031E073FE211F65D00233131B810FFA. I can't create a secure channel regardless of the selected options .

Code: Select all

    select -AID A000000151000000
    Command --> 00A4040008A000000151000000
    Wrapped command --> 00A4040008A000000151000000
    Response <-- 6F7E8408A000000151000000A572736306072A864886FC6B01600B06092A864886FC6B020202630906072A864886FC6B03640B06092A864886FC6B048000640B06
    092A864886FC6B040255650E060C2A864886FC6B0506010000016616060A2B060104012A026E0103060847544F303034011C9F6E0600773136011C9F6501FF9000
    command time: 31 ms
    open_sc -scp 1 -scpimpl 0x55 -security 3 -keyind 0 -keyver 0 -key 404142434445464748494a4b4c4d4e4f
    Command --> 8050000008DD7D31C4F9E9D20D00
    Wrapped command --> 8050000008DD7D31C4F9E9D20D00
    Response <-- 6985
    mutual_authentication() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
What could be the problem?

Re: Trouble with GlobalPlatform Secure Connection

Posted: Sun Sep 06, 2020 8:30 am
by andromeda92
try this :

Code: Select all

open_sc -scp 2 -scpimpl 0x15 -security 1 -keyind 0 -keyver 1  -key 404142434445464748494a4b4c4d4e4f -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4d4e4f // Open secure channel