Open Bartolosh opened 2 years ago
According to ETSI TS 102 226, clause 8.2.1.3.2, depending on framework to be used, command data field of the INSTALL [for install] command shall contain CA tag (Tag of SIM file access and toolkit application specific parameters field (resides under EF tag)) or EA tag (Tag of UICC System Specific Parameters constructed field). If both tags present, SW 6A80 will be returned
Hi, I'm also running into this issue when trying to install HelloSTK (https://gitea.osmocom.org/sim-card/hello-stk/) using https://github.com/Shadytel/sim-tools for libraries, and a sysmoISIM-SJA2. See below for the logs.
Yet if I try to install again, it seems like the install succeeded, but the applet is not made selectable (see second log).
GlobalPlatformPro v20.01.23-0-g5ad373b
Running on Linux 5.15.0-52-generic amd64, Java 11.0.17 by Ubuntu
# Detected readers from JNA2PCSC
[*] Generic EMV Smartcard Reader 00 00
SCardConnect("Generic EMV Smartcard Reader 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
SCardBeginTransaction("Generic EMV Smartcard Reader 00 00")
Reader: Generic EMV Smartcard Reader 00 00
ATR: 3B9F96801F878031E073FE211B674A4C753034054BA9
More information about your card:
http://smartcard-atr.appspot.com/parse?ATR=3B9F96801F878031E073FE211B674A4C753034054BA9
A>> T=0 (4+0000) 00A40400 00
A<< (0018+2) (11ms) 6F108408A000000003000000A5049F6501FF 9000
[TRACE] GPSession - [6F]
[TRACE] GPSession - [84] A000000003000000
[TRACE] GPSession - [A5]
[TRACE] GPSession - [9F65] FF
[DEBUG] GPSession - Auto-detected ISD: A000000003000000
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[INFO] GPSession - Using card master keys: ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for null
[TRACE] GPSession - Generated host challenge: 7B3F91C56790FB9C
A>> T=0 (4+0008) 80500000 08 7B3F91C56790FB9C 00
A<< (0028+2) (39ms) 0000000000000000000070020023B42ABC1442F707C223CE9D8A517C 9000
[DEBUG] GPSession - Host challenge: 7B3F91C56790FB9C
[DEBUG] GPSession - Card challenge: 0023B42ABC1442F7
[DEBUG] GPSession - Card reports SCP02 with key version 112 (0x70)
[INFO] GPSession - Diversified card keys: ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for SCP02
[INFO] GPSession - Session keys: ENC=21EA7F9728EC2D6FE68D756737F8A0D2 MAC=3E1851CD5CC5446D674642B05E74E338 RMAC=544292AB2DF5A15A4CF3830AD98BA3E1, card keys=ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for SCP02
[DEBUG] GPSession - Verified card cryptogram: 07C223CE9D8A517C
[DEBUG] GPSession - Calculated host cryptogram: 66B41A153DB076A9
[TRACE] SCP02Wrapper - MAC input: 848201001066B41A153DB076A9
A>> T=0 (4+0016) 84820100 10 66B41A153DB076A9C2E2F844A22B31A0
A<< (0000+2) (23ms) 9000
CAP file (v2.1), contains: applets for JavaCard 2.1.1
Package: org.toorcamp.HelloSTK D07002CA449001 v1.0
Applet: D07002CA44900101
Import: A0000000620101 v1.0 javacard.framework
Import: A0000000090003FFFFFFFF8910710002 v2.6 sim.toolkit
Code size 470 bytes (674 with debug)
SHA-256 f19a6bc40dd85c40262c7ef36a036ddc50a09bb8c25f00378e51633c51e9da4b
SHA-1 4294e61376fc92683afa7a761fcf5004e599c06b
[TRACE] SCP02Wrapper - MAC input: 84F280020A4F00
A>> T=0 (4+0010) 84F28002 0A 4F0027678F599E4AD42F 00
A<< (0023+2) (20ms) E3154F08A0000000030000009F70010FC50198EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000003000000
[TRACE] GPRegistry - [9F70] 0F
[TRACE] GPRegistry - [C5] 98
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F240020A4F00
A>> T=0 (4+0010) 84F24002 0A 4F0062C4645278CEB842 00
A<< (0174+2) (29ms) E31D4F10A0000000871002FFFFFFFF89070900009F700107C50100EA028000E31D4F10A0000000871004FFFFFFFF89070900009F700107C50100EA028000E31D4F10A000000087ABCDFFFFFFFF89070900009F700107C50100EA028000E3174F0A53696D62614E2E52414D9F700107C50100EA028000E31D4F10A0000000090001FFFFFFFF89000000009F700107C50104EA028000E3174F0A53696D62614E2E52464D9F700107C50100EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871002FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871004FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000087ABCDFFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52414D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090001FFFFFFFF8900000000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 04
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52464D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F210020A4F00
A>> T=0 (4+0010) 84F21002 0A 4F0010AEE7619BD47B1E 00
A<< (0221+2) (32ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F210030A4F00
A>> T=0 (4+0010) 84F21003 0A 4F000EBBEE1D01DC7F0F 00
A<< (0168+2) (29ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] SCP02Wrapper - MAC input: 84F220020A4F00
A>> T=0 (4+0010) 84F22002 0A 4F00BECCD4BC7793CB68 00
A<< (0221+2) (32ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F220030A4F00
A>> T=0 (4+0010) 84F22003 0A 4F0057ACBAB9B5E4A35B 00
A<< (0168+2) (28ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620001, 1
[DEBUG] GPRegistry - Registry already contains PKG: 4A6176656C696E2E6A637265, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620102, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620201, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062020801, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000006202080101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620003, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062010101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000015100, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8912000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8913000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911010000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913100000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913200000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710001, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8915000000, 1
[TRACE] DMTokenGenerator - No private key for token generation provided
[TRACE] GPSession - LV payload:
[TRACE] GPSession - [07] D07002CA449001
[TRACE] GPSession - [08] A000000003000000
[TRACE] GPSession - [00]
[TRACE] GPSession - [00]
[TRACE] GPSession - [00]
[TRACE] SCP02Wrapper - MAC input: 84E602001C07D07002CA44900108A000000003000000000000
A>> T=0 (4+0028) 84E60200 1C 07D07002CA44900108A0000000030000000000006FE15B494BDFE261
A<< (0001+2) (24ms) 00 9000
[TRACE] SCP02Wrapper - MAC input: 84E80000FFC48201D6010011DECAFFED010204000107D07002CA44900102001F0011001F000C001E0052001800A80032001D000000C900040002002202010004001E02000107A0000000620101060210A0000000090003FFFFFFFF891071000203000C0108D07002CA44900101002B06001843800301FF0007020000003A005C800200810101088100000700A8000911188C00048D00012C18197B0002037B00029210240303038B0003880019048B00051910098B00057A02318F00063D8C00072E1B8B00087A0120188B000960037A7A02118D00012C19048B000A19AE008B000B1910098B00057A01201D75001D00030001001100090017001300
A>> T=0 (4+0255) 84E80000 FF C48201D6010011DECAFFED010204000107D07002CA44900102001F0011001F000C001E0052001800A80032001D000000C900040002002202010004001E02000107A0000000620101060210A0000000090003FFFFFFFF891071000203000C0108D07002CA44900101002B06001843800301FF0007020000003A005C800200810101088100000700A8000911188C00048D00012C18197B0002037B00029210240303038B0003880019048B00051910098B00057A02318F00063D8C00072E1B8B00087A0120188B000960037A7A02118D00012C19048B000A19AE008B000B1910098B00057A01201D75001D000300010011000900170013008CE9C2EF058A807A
A<< (0001+2) (138ms) 00 9000
[TRACE] SCP02Wrapper - MAC input: 84E88001EB17188C000C7008188C000D70027A04318D000E2E1B102004068B000F1B07041E8B00101B100E1D8B00111B8B00123B7A03101804048C00137A08003200040002000203001857656C636F6D6520746F20546F6F7243616D70203230313203000A48656C6C6F2C2053544B0000000005005200140200000006810900050000020381090B0680030003810909010000000600000103800301038003030381090C03810903060000440600009F06810A0003810A150381040E0381040D03810A160600007D09001D00021E330017050306040907060604050709060606190608090707040A
A>> T=0 (4+0235) 84E88001 EB 17188C000C7008188C000D70027A04318D000E2E1B102004068B000F1B07041E8B00101B100E1D8B00111B8B00123B7A03101804048C00137A08003200040002000203001857656C636F6D6520746F20546F6F7243616D70203230313203000A48656C6C6F2C2053544B0000000005005200140200000006810900050000020381090B0680030003810909010000000600000103800301038003030381090C03810903060000440600009F06810A0003810A150381040E0381040D03810A160600007D09001D00021E330017050306040907060604050709060606190608090707040A497C7C434F1D151A
A<< (0001+2) (244ms) 00 9000
CAP loaded
[TRACE] SCP02Wrapper - MAC input: 84F280020A4F00
A>> T=0 (4+0010) 84F28002 0A 4F004F9611FDB6B43DF9 00
A<< (0023+2) (20ms) E3154F08A0000000030000009F70010FC50198EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000003000000
[TRACE] GPRegistry - [9F70] 0F
[TRACE] GPRegistry - [C5] 98
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F240020A4F00
A>> T=0 (4+0010) 84F24002 0A 4F00D16DD73CB3087920 00
A<< (0174+2) (29ms) E31D4F10A0000000871002FFFFFFFF89070900009F700107C50100EA028000E31D4F10A0000000871004FFFFFFFF89070900009F700107C50100EA028000E31D4F10A000000087ABCDFFFFFFFF89070900009F700107C50100EA028000E3174F0A53696D62614E2E52414D9F700107C50100EA028000E31D4F10A0000000090001FFFFFFFF89000000009F700107C50104EA028000E3174F0A53696D62614E2E52464D9F700107C50100EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871002FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871004FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000087ABCDFFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52414D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090001FFFFFFFF8900000000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 04
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52464D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F210020A4F00
A>> T=0 (4+0010) 84F21002 0A 4F00E8C9BD79B327734A 00
A<< (0221+2) (32ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F210030A4F00
A>> T=0 (4+0010) 84F21003 0A 4F0048DA2CE897D90892 00
A<< (0193+2) (30ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E3174F07D07002CA4490019F7001018408D07002CA44900101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] D07002CA449001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [84] D07002CA44900101
[TRACE] SCP02Wrapper - MAC input: 84F220020A4F00
A>> T=0 (4+0010) 84F22002 0A 4F000D05D34A985B11A7 00
A<< (0221+2) (32ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F220030A4F00
A>> T=0 (4+0010) 84F22003 0A 4F00209918C82651C37E 00
A<< (0183+2) (30ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E30D4F07D07002CA4490019F700101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] D07002CA449001
[TRACE] GPRegistry - [9F70] 01
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620001, 1
[DEBUG] GPRegistry - Registry already contains PKG: 4A6176656C696E2E6A637265, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620102, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620201, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062020801, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000006202080101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620003, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062010101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000015100, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8912000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8913000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911010000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913100000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913200000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710001, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8915000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: D07002CA449001, 1
[TRACE] DMTokenGenerator - No private key for token generation provided
[TRACE] GPSession - LV payload:
[TRACE] GPSession - [07] D07002CA449001
[TRACE] GPSession - [08] D07002CA44900101
[TRACE] GPSession - [08] D07002CA44900101
[TRACE] GPSession - [01] 00
[TRACE] GPSession - [02] C900
[TRACE] GPSession - [00]
[TRACE] SCP02Wrapper - MAC input: 84E60C002807D07002CA44900108D07002CA4490010108D07002CA44900101010002C90000
A>> T=0 (4+0040) 84E60C00 28 07D07002CA44900108D07002CA4490010108D07002CA44900101010002C900006358DAB0200D666F
A<< (0000+2) (246ms) 6A80
INSTALL [for install and make selectable] failed: 0x6A80 (Wrong data/incorrect values in data)
GlobalPlatformPro v20.01.23-0-g5ad373b
Running on Linux 5.15.0-52-generic amd64, Java 11.0.17 by Ubuntu
# Detected readers from JNA2PCSC
[*] Generic EMV Smartcard Reader 00 00
SCardConnect("Generic EMV Smartcard Reader 00 00", T=*) -> T=0, 3B9F96801F878031E073FE211B674A4C753034054BA9
SCardBeginTransaction("Generic EMV Smartcard Reader 00 00")
Reader: Generic EMV Smartcard Reader 00 00
ATR: 3B9F96801F878031E073FE211B674A4C753034054BA9
More information about your card:
http://smartcard-atr.appspot.com/parse?ATR=3B9F96801F878031E073FE211B674A4C753034054BA9
A>> T=0 (4+0000) 00A40400 00
A<< (0018+2) (11ms) 6F108408A000000003000000A5049F6501FF 9000
[TRACE] GPSession - [6F]
[TRACE] GPSession - [84] A000000003000000
[TRACE] GPSession - [A5]
[TRACE] GPSession - [9F65] FF
[DEBUG] GPSession - Auto-detected ISD: A000000003000000
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[WARN] PlaintextKeys - Don't know how to calculate KCV, defaulting to SCP02
[INFO] GPSession - Using card master keys: ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for null
[TRACE] GPSession - Generated host challenge: 6B12B5DDC7A9BBD4
A>> T=0 (4+0008) 80500000 08 6B12B5DDC7A9BBD4 00
A<< (0028+2) (38ms) 000000000000000000007002002548DCD10228F058E93D29112D6B92 9000
[DEBUG] GPSession - Host challenge: 6B12B5DDC7A9BBD4
[DEBUG] GPSession - Card challenge: 002548DCD10228F0
[DEBUG] GPSession - Card reports SCP02 with key version 112 (0x70)
[INFO] GPSession - Diversified card keys: ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for SCP02
[INFO] GPSession - Session keys: ENC=1BEE2F66E411F5388F209DDBFA970F5B MAC=E8BD8FE3BC2FB7D7484C963F1252BA53 RMAC=DB9831CAED38F43A426987EC51FAFD6A, card keys=ENC=1FF8804DCC6BCE18ADD18A43CC8927AC (KCV: DDC85B) MAC=FE73DADDAAD1D55C27D97975E9CE4EF3 (KCV: C955D5) DEK=D3976BF17EE81CED9E3F7BCB6BFB6035 (KCV: 6827C3) for SCP02
[DEBUG] GPSession - Verified card cryptogram: 58E93D29112D6B92
[DEBUG] GPSession - Calculated host cryptogram: 718454787D2CEC6E
[TRACE] SCP02Wrapper - MAC input: 8482010010718454787D2CEC6E
A>> T=0 (4+0016) 84820100 10 718454787D2CEC6EEE64CA54B69532CD
A<< (0000+2) (22ms) 9000
[TRACE] SCP02Wrapper - MAC input: 84F280020A4F00
A>> T=0 (4+0010) 84F28002 0A 4F00B7FF4210BB6E148F 00
A<< (0023+2) (20ms) E3154F08A0000000030000009F70010FC50198EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000003000000
[TRACE] GPRegistry - [9F70] 0F
[TRACE] GPRegistry - [C5] 98
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F240020A4F00
A>> T=0 (4+0010) 84F24002 0A 4F00A0E466E3EB8E62B6 00
A<< (0174+2) (29ms) E31D4F10A0000000871002FFFFFFFF89070900009F700107C50100EA028000E31D4F10A0000000871004FFFFFFFF89070900009F700107C50100EA028000E31D4F10A000000087ABCDFFFFFFFF89070900009F700107C50100EA028000E3174F0A53696D62614E2E52414D9F700107C50100EA028000E31D4F10A0000000090001FFFFFFFF89000000009F700107C50104EA028000E3174F0A53696D62614E2E52464D9F700107C50100EA028000 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871002FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871004FFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000087ABCDFFFFFFFF8907090000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52414D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090001FFFFFFFF8900000000
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 04
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 53696D62614E2E52464D
[TRACE] GPRegistry - [9F70] 07
[TRACE] GPRegistry - [C5] 00
[TRACE] GPRegistry - [EA]
[TRACE] GPRegistry - [80]
[TRACE] SCP02Wrapper - MAC input: 84F210020A4F00
A>> T=0 (4+0010) 84F21002 0A 4F006DC1607EDC93478D 00
A<< (0221+2) (31ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F210030A4F00
A>> T=0 (4+0010) 84F21003 0A 4F000EE9E8E5CDD28D00 00
A<< (0193+2) (30ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E3174F07D07002CA4490019F7001018408D07002CA44900101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] D07002CA449001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [84] D07002CA44900101
[TRACE] SCP02Wrapper - MAC input: 84F220020A4F00
A>> T=0 (4+0010) 84F22002 0A 4F00D041B91E41F0AB31 00
A<< (0221+2) (31ms) E30D4F07A00000006200019F700101E3124F0C4A6176656C696E2E6A6372659F700101E30D4F07A00000006201019F700101E30D4F07A00000006201029F700101E30D4F07A00000006202019F700101E30E4F08A0000000620208019F700101E30F4F09A000000062020801019F700101E30D4F07A00000006200029F700101E30D4F07A00000006200039F700101E30E4F08A0000000620101019F700101E30C4F06A000000151009F700101E3164F10A0000000090005FFFFFFFF89110000009F700101E3164F10A0000000090005FFFFFFFF89120000009F700101 6310
[TRACE] SCP02Wrapper - MAC input: 84F220030A4F00
A>> T=0 (4+0010) 84F22003 0A 4F0049F002A7C5D0F6C2 00
A<< (0183+2) (29ms) E3164F10A0000000090005FFFFFFFF89130000009F700101E3164F10A0000000090005FFFFFFFF89110100009F700101E3164F10A0000000871005FFFFFFFF89131000009F700101E3164F10A0000000871005FFFFFFFF89132000009F700101E3164F10A0000000090003FFFFFFFF89107100019F700101E3164F10A0000000090003FFFFFFFF89107100029F700101E3164F10A0000000090005FFFFFFFF89150000009F700101E30D4F07D07002CA4490019F700101 9000
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] 4A6176656C696E2E6A637265
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620102
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620201
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062020801
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000006202080101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000620003
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A000000062010101
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A00000015100
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8912000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8913000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8911010000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913100000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000871005FFFFFFFF8913200000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710001
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090003FFFFFFFF8910710002
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] A0000000090005FFFFFFFF8915000000
[TRACE] GPRegistry - [9F70] 01
[TRACE] GPRegistry - [E3]
[TRACE] GPRegistry - [4F] D07002CA449001
[TRACE] GPRegistry - [9F70] 01
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620001, 1
[DEBUG] GPRegistry - Registry already contains PKG: 4A6176656C696E2E6A637265, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620102, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620201, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062020801, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000006202080101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000620003, 1
[DEBUG] GPRegistry - Registry already contains PKG: A000000062010101, 1
[DEBUG] GPRegistry - Registry already contains PKG: A00000015100, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8912000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8913000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8911010000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913100000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000871005FFFFFFFF8913200000, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710001, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090003FFFFFFFF8910710002, 1
[DEBUG] GPRegistry - Registry already contains PKG: A0000000090005FFFFFFFF8915000000, 1
[DEBUG] GPRegistry - Registry already contains PKG: D07002CA449001, 1
ISD: A000000003000000 (SECURED)
Privs: SecurityDomain, CardLock, CardTerminate
APP: A0000000871002FFFFFFFF8907090000 (SELECTABLE) (|................|)
Privs:
APP: A0000000871004FFFFFFFF8907090000 (SELECTABLE) (|................|)
Privs:
APP: A000000087ABCDFFFFFFFF8907090000 (SELECTABLE) (|................|)
Privs:
APP: 53696D62614E2E52414D (SELECTABLE) (|SimbaN.RAM|)
Privs:
APP: A0000000090001FFFFFFFF8900000000 (SELECTABLE) (|................|)
Privs: CardReset
APP: 53696D62614E2E52464D (SELECTABLE) (|SimbaN.RFM|)
Privs:
PKG: A0000000620001 (LOADED) (|....b..|)
PKG: 4A6176656C696E2E6A637265 (LOADED) (|Javelin.jcre|)
PKG: A0000000620101 (LOADED) (|....b..|)
PKG: A0000000620102 (LOADED) (|....b..|)
PKG: A0000000620201 (LOADED) (|....b..|)
PKG: A000000062020801 (LOADED) (|....b...|)
PKG: A00000006202080101 (LOADED) (|....b....|)
PKG: A0000000620002 (LOADED) (|....b..|)
PKG: A0000000620003 (LOADED) (|....b..|)
PKG: A000000062010101 (LOADED) (|....b...|)
PKG: A00000015100 (LOADED) (|....Q.|)
PKG: A0000000090005FFFFFFFF8911000000 (LOADED) (|................|)
PKG: A0000000090005FFFFFFFF8912000000 (LOADED) (|................|)
PKG: A0000000090005FFFFFFFF8913000000 (LOADED) (|................|)
PKG: A0000000090005FFFFFFFF8911010000 (LOADED) (|................|)
PKG: A0000000871005FFFFFFFF8913100000 (LOADED) (|................|)
PKG: A0000000871005FFFFFFFF8913200000 (LOADED) (|............. ..|)
PKG: A0000000090003FFFFFFFF8910710001 (LOADED) (|.............q..|)
PKG: A0000000090003FFFFFFFF8910710002 (LOADED) (|.............q..|)
PKG: A0000000090005FFFFFFFF8915000000 (LOADED) (|................|)
PKG: D07002CA449001 (LOADED) (|.p..D..|)
Applet: D07002CA44900101 (|.p..D...|)
Probable cause: you need to set the right installation parameters required by SIM cards.
If you take the time to figure out the minimum set of installation parameters that are needed for SIM, do let me know and I can add it to documentation or maybe add a command line option for simple adjustments.
Also the problem that I encountered with was that the version of my JCVM was 2.2.2, while I tried to install applet versioned 3.0.4 onto it. When I compiled the .CAP file with appropriate JCDK the issue was solved.
In that case you should not be able to load it either? Anyway, what kind of installation parameters, if any, are needed for installation?
My bad. You're right: wrong JCDK version wouldn't allow to install an applet at all. As I mentioned in first comment, the problem was in misunderstanding of what kind of parameters would I provide with INSTALL for install. In my case the CA tag was right one
Care to give exact parameters?
Yes, ofcourse, tomorrow I'll post here the params I use in my project
Here is the params I actually use in the project:
80 E6 0C 00 69
10 A0 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F //pack AID
10 A0 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E FF //exec module AID
10 A0 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E FF //app AID
01 00 //privileges (length: 01, vlaue: 00 )
32 // Length of Install Parameters field
C9 1B // Application Specific Parameters
03 // max attempts
04 04 81 00 00 // imei address
04 04 81 01 01 // mca address
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF// default key
EF 13 // System Specific TLV
CA 0E // SIM File Access and Toolkit Application Specific Parameters Tag
01 00 // Access Domain LV
FF // Priority level of the Toolkit application instance
00 // Maximum number of timers allowed for this application instance
00 // Maximum text length for a menu entry
00 // Maximum number of menu entries allowed for this application instance
00 // Maximum number of channels for this application instance
02 01 16 // MSL LV
03 42 42 42 // TAR LV
CF 01 00 // Implicit selection parameter (present in combined [for install and make selectable])
00 // Length of Install Token
I hope this specimen pasted as is (with little substitutions) will be helpful. Please note that I use my proprietary script written in Java thus one's have to fit these params into appropriate places in gp.
@sulqadari thank you! This was the missing link. I'm a bit confused about CF 01 00
since I had to remove this for my install to work. My final working parameters arg was --params C900EF13CA0E0100FF0100000012011603424242
. These params may differ for your application (such as if you are using menu items). Refer to the standards for customization.
@goo99x you are welcome. In my example I messed up with indentations, and have just corrected that, check it out.
Look, according to Global Platform, clause 11.5.2.3.2, table 11-43, the outer structure of params is as follows: right after privileges tag-length struct (0x01 0x00), the length value of install params shall follow (in my example the values right after 0x32). Both tags 0xCA and 0xCF reside under tag 0xEF, and the latter is at the same nesting level as 0xC9 tag (app specific params).
the last 0x00 byte is at the same level as the 0x32.
The details of install params filed you can find in table 11-49 in Global Platform spec. and ETSI 102 226
GPPro tries to be helpful for "simple" use cases where the only installation parameters are application parameters (C9) and automatically wraps things with 0xC9 and with right length, unless the parameters start with 0xC9 and thus are expected to be properly formatted parameters blob and include other values (like here, system parameters under 0xEF).
This has seemed like a usable approach this far. Any other suggestions? The principle here should be "make common and simple things simple, but complex things possible". Maybe "--sys-params" ?
On equal note, load parameters are currently not exposed via CLI either.
Maybe "--sys-params"
Sounds good. Also it would be nice to add support for 0xEA tag, which is indended to be used when we dealing with UICC applet.
Maybe leave --params for "do what I mean" and have a (mutually exclusive) --raw-params for setting the exact payload? The thing is, I still want to be able to construct at least parts of installation parameters automagically, for example when creating SSD-s, and not proliferate command line parameters with tons of long options. I'm in favor of re-using simple common options differently in different scenarios than having 100 explicit options that are not generic and re-usable.
It really sounds like a good idea: let it be some simple tools for common and simple projects. But for advanced projects a kind of universal builder of constructed TLVs.
Hi, I was trying to load and install a Javacard applet that I developed on a sysmoUSIM-SJS1 using a PCSC-reader and GlobalPlatform Pro. Trying to install applets that import only javacard libs, it works, but if they use sim.toolkit or sim.access libs, it gives me the 0x6A80 error and I think that is something linked to the import of the libs (I am using the ones suggested from sysmocom, ETSI TS 101 476 V7.0.0. In addiction to this if I use this version, ant-javacard says that the exp file is ill-formed, but if I use the 7.4.0 version, the build phase goes fine but then GlobalPlatform gives me the same error of before).
Here it is the output of
gp -dvi -install applet.cap
:Can someone help me? Thanks