Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install for personalization failed on SmartCafe #1

Open
bertrandmartel opened this issue Sep 25, 2017 · 1 comment
Open

Install for personalization failed on SmartCafe #1

bertrandmartel opened this issue Sep 25, 2017 · 1 comment

Comments

@bertrandmartel
Copy link
Owner

Personalization Support (via the Security Domain) doesn’t work on SmartCafe 3.2 & 6.0.

6A86 is returned when trying to send install for personalization command (84E62000) :

A>> T=1 (4+0016) 84820100 10 6A0076D4C5D2CD949331431596B67A33
A<< (0000+2) (49ms) 9000
A>> T=1 (4+0023) 84E62000 17 000009A00000015141434C00000000CDB295993E7653F2
A<< (0000+2) (55ms) 6A86
[SW] Incorrect P1 P2
SCardEndTransaction()
SCardDisconnect("Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00", true)

It works fine on SIM card (but I have to change the applet aid because of the builtin ARA-M applet)

  • security domain :
[main] WARN pro.javacard.gp.GlobalPlatform - GET STATUS failed for 80F21000024F0000 with 6a81
# Mode: GP211
ISD: A000000003000000 (INITIALIZED)
     Privs:   SecurityDomain, CardLock, CardTerminate, CardReset, CVMManagement
  • gp -dvi -acr-add -acr-hash 1FA8CC6CE448894C7011E23BCF56DB9BD9097432 -app D2760001180002FF49502589C0019B10 -acr-rule 01
GlobalPlatformPro v0.3.9-38-g97c7235
Running on Linux 4.9.0-3-amd64 amd64, Java 1.8.0_144 by Oracle Corporation
Unlimited crypto policy is NOT installed!
[DEBUG] PlaintextKeys - static keys: 
ENC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F KCV: 8BAF47
MAC: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F KCV: 8BAF47
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F KCV: 8BAF47
# Detected readers from JNA2PCSC
[ ] Gemalto Prox Dual USB PC Link Reader [Prox-DU Contactless_10800061] 00 00
[*] Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00
SCardConnect("Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00", T=*) -> T=1, 3BFE1800008031FE4553434536302D43443038312D6E46A9
SCardBeginTransaction("Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00")
Reader: Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00
ATR: 3BFE1800008031FE4553434536302D43443038312D6E46A9
More information about your card:
    http://smartcard-atr.appspot.com/parse?ATR=3BFE1800008031FE4553434536302D43443038312D6E46A9

A>> T=1 (4+0000) 00A40400 00 
A<< (0018+2) (42ms) 6F108408A000000003000000A5049F6501FF 9000
[DEBUG] GlobalPlatform - Auto-detected ISD AID: A000000003000000
[DEBUG] GlobalPlatform - Auto-detected block size: 255
***** Card info:
A>> T=1 (4+0000) 80CA9F7F 00 
A<< (0045+2) (22ms) 9F7F2A47905037167111464003502497007065727147920144167302831674509200000A010000000000000000 9000
Card CPLC:
ICFabricator: 4790
ICType: 5037
OperatingSystemID: 1671
OperatingSystemReleaseDate: 1146
OperatingSystemReleaseLevel: 4003
ICFabricationDate: 5024
ICSerialNumber: 97007065
ICBatchIdentifier: 7271
ICModuleFabricator: 4792
ICModulePackagingDate: 0144
ICCManufacturer: 1673
ICEmbeddingDate: 0283
ICPrePersonalizer: 1674
ICPrePersonalizationEquipmentDate: 5092
ICPrePersonalizationEquipmentID: 00000A01
ICPersonalizer: 0000
ICPersonalizationDate: 0000
ICPersonalizationEquipmentID: 00000000
***** CARD DATA
A>> T=1 (4+0000) 80CA0066 00 
A<< (0078+2) (48ms) 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040300650B06092B8510864864020103660C060A2B060104012A026E0102 9000
Unknown tag: 4c
***** KEY INFO
A>> T=1 (4+0000) 80CA00E0 00 
A<< (0020+2) (23ms) E012C00401018010C00402018010C00403018010 9000
VER:1 ID:1 TYPE:DES3 LEN:16
VER:1 ID:2 TYPE:DES3 LEN:16
VER:1 ID:3 TYPE:DES3 LEN:16
A>> T=1 (4+0008) 80500000 08 64F934C112A9A992 00
A<< (0029+2) (84ms) 00005024970070657271010300E0ACB5E9C4B512BAF0CBF12BCE7B8895 9000
[DEBUG] GlobalPlatform - Host challenge: 64F934C112A9A992
[DEBUG] GlobalPlatform - Card challenge: E0ACB5E9C4B512BA
[DEBUG] GlobalPlatform - Card reports SCP03 with version 1 keys
[DEBUG] GlobalPlatform - SCP03 i=0
[DEBUG] PlaintextKeys - session keys: 
ENC: Ver:0 ID:0 Type:AES Len:16 Value:B9932A43333C78222C2E0FF1F2AF0085 KCV: 397F0D
MAC: Ver:0 ID:0 Type:AES Len:16 Value:6515DCB10DC6E09325C0757F177E00EA KCV: 663F27
KEK: Ver:0 ID:0 Type:DES3 Len:16 Value:404142434445464748494A4B4C4D4E4F KCV: 8BAF47
[DEBUG] GlobalPlatform - Verified card cryptogram: F0CBF12BCE7B8895
[DEBUG] GlobalPlatform - Calculated host cryptogram: 8521549A8EC285A6
A>> T=1 (4+0016) 84820100 10 8521549A8EC285A66FE0042224EF7E3E
A<< (0000+2) (30ms) 9000
A>> T=1 (4+0023) 84E62000 17 000009A00000015141434C00000000138614F664D0EDD4
A<< (0000+2) (33ms) 6A86
[SW] Incorrect P1 P2
SCardEndTransaction()
SCardDisconnect("Gemalto Prox Dual USB PC Link Reader [Prox-DU Contact_10800061] 01 00", true)
@bertrandmartel bertrandmartel changed the title Install for personalization on SmartCafe Install for personalization failed on SmartCafe Sep 25, 2017
@martinpaljak
Copy link

Most probably a bug in GPPro. I have both of those cards, so need to check/test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants