• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

smartcardio.CardException: Card cryptogram invalid

 
Greenhorn
Posts: 5
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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! =)
 
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic