GeeCON Prague 2014*
The moose likes Java Micro Edition and the fly likes smartcardio.CardException: Card cryptogram invalid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "smartcardio.CardException: Card cryptogram invalid " Watch "smartcardio.CardException: Card cryptogram invalid " New topic
Author

smartcardio.CardException: Card cryptogram invalid

Sajjad cc
Greenhorn

Joined: Jul 19, 2011
Posts: 5

I tried this(http://sourceforge.net/projects/gpj/files/) application with Gemaltocard TOPIMGX4
java -jar gpj.jar -sdaid A000000018434D00
output
Found terminals: [PC/SC terminal Gemalto Prox-DU Contact_10900188 0, PC/SC terminal Gemalto Prox-DU Contactless_10900188 0]
Found card in terminal: Gemalto Prox-DU Contact_10900188 0
ATR: 3B 7D 96 00 00 80 31 80 65 B0 83 11 00 C8 83 00 90 00
DEBUG: Command APDU: 00 A4 04 00 08 A0 00 00 00 18 43 4D 00
DEBUG: Response APDU: 6F 65 84 08 A0 00 00 00 18 43 4D 00 A5 59 73 4A 06 07 2A 86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B 02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 0B 06 09 2A 86 48 86 FC 6B 04 01 05 65 0B 06 09 2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 04 01 2A 02 6E 01 02 9F 6E 06 12 91 81 72 13 00 9F 65 01 FF 90 00
DEBUG: Command APDU: 80 50 00 00 08 74 39 44 2C C5 ED 6A 92
DEBUG: Response APDU: 4D 00 01 29 00 06 93 7B 19 2A 01 01 32 0E BC A5 5D 40 01 8D 6A 6C 0B 2E 03 05 D5 83 90 00
javax.smartcardio.CardException: Card cryptogram invalid.
at net.sourceforge.gpj.cardservices.GlobalPlatformService.openSecureChannel(GlobalPlatformService.java:35
at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(GlobalPlatformService.java:1584)
Krystal Ng
Greenhorn

Joined: Oct 14, 2013
Posts: 1
Hi! By any chance, did you find a solution to your problem?

2 years later and I'm facing the same problem as you, and your post is one of the extremely few results I can find on the internet that mentions the “Card cryptogram invalid” error. I’ve tried debugging using the gpj source but I still cannot solve the problem. I’d be so very very grateful if you can point me in the right direction. Thanks in advance! =)
 
GeeCON Prague 2014
 
subject: smartcardio.CardException: Card cryptogram invalid