Hello,
I tried hard to load an applet on the Yubikey but without success...
Please note that I correctly configured the Yubikey to allow CCID as described here:
http://www.yubico.com/2012/12/yubikey-n ... te-device/I was also able to load/remove some javacard applets from .cap files generated using the JCDK 2.2.2.
However, I cannot load applet generated from the last JCDK 3.0.4.
For example, I was not able to load the 'HelloWorld' applet provided with the JCDK 3.0.4. compiled by oracle (
http://www.oracle.com/technetwork/java/ ... 43229.html).
I also tried to build the HelloWorld cap file from sources but without success. I used Netbeans IDE 8.0 with the java card plugin and JCDK 3.0.4 classic edition on Windows 8 . I received the following error using GPJ to load the cap file:
Code:
F:\Dropbox\NetBeansJava\gpj\gpj-20120310>java -jar gpj.jar -load HelloWorld.cap -install
Found terminals: [PC/SC terminal Yubico Yubikey NEO OTP+CCID 0]
Found card in terminal: Yubico Yubikey NEO OTP+CCID 0
ATR: 3B FA 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 4E 45 4F A6
DEBUG: Command APDU: 00 A4 04 00 07 A0 00 00 01 51 00 00
DEBUG: Response APDU: 6A 82
Failed to select Security Domain GP211 A0 00 00 01 51 00 00 , SW: 6A 82
DEBUG: Command APDU: 00 A4 04 00 08 A0 00 00 00 18 43 4D 00
DEBUG: Response APDU: 6A 82
Failed to select Security Domain GemaltoXpressPro A0 00 00 00 18 43 4D 00 , SW: 6A 82
DEBUG: Command APDU: 00 A4 04 00 08 A0 00 00 00 03 00 00 00
DEBUG: Response APDU: 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 01 FF 9F 6E 06 47 91 12 10 38 00 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 02 55 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 90 00
Successfully selected Security Domain OP201a A0 00 00 00 03 00 00 00
DEBUG: Command APDU: 80 50 00 00 08 FB A5 CA 3F 44 E7 1A 51
DEBUG: Response APDU: 00 00 31 07 00 63 24 96 70 07 FF 02 00 2D 06 0C DF 9A 37 DD 07 B2 86 E1 76 7A DF 9B 90 00
DEBUG: Command APDU: 84 82 00 00 10 22 47 D6 85 26 F5 AC 9E 7C 0A CE FF 7F C8 DF 01
DEBUG: Response APDU: 90 00
DEBUG: Command APDU: 84 82 00 00 08 22 47 D6 85 26 F5 AC 9E
DEBUG: Response APDU: 90 00
DEBUG: packagePath: com/sun/jcclassic/samples/helloworld/javacard/
DEBUG: package: com.sun.jcclassic.samples.helloworld
DEBUG: package AID: A0 00 00 00 62 03 01 0C 01
DEBUG: applet AIDs: [A0 00 00 00 62 03 01 0C 01 01 ]
DEBUG: Command APDU: 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 01 08 A0 00 00 00 03 00 00 00 00 00 00
DEBUG: Response APDU: 00 90 00
DEBUG: Command APDU: 80 E6 02 00 16 09 A0 00 00 00 62 03 01 0C 01 08 A0 00 00 00 03 00 00 00 00 00 00
DEBUG: Response APDU: 00 90 00
DEBUG: Command APDU: 80 E8 00 00 FF C4 82 01 43 01 00 13 DE CA FF ED 01 02 04 00 01 09 A0 00 00 00 62 03 01 0C 01 02 00
1F 00 13 00 1F 00 0E 00 15 00 36 00 0C 00 74 00 0A 00 13 00 00 00 6C 00 00 00 00 00 00 02 01 00 04 00 15 02 05 01 07 A0
00 00 00 62 01 01 00 01 07 A0 00 00 00 62 00 01 03 00 0E 01 0A A0 00 00 00 62 03 01 0C 01 01 00 14 06 00 0C 00 80 03 01
00 01 07 01 00 00 00 1F 07 00 74 00 02 10 18 8C 00 01 18 11 01 00 90 0B 87 00 18 8B 00 02 7A 02 30 8F 00 03 3D 8C 00 04
3B 7A 05 23 19 8B 00 05 2D 1A 03 25 61 0A 1A 04 25 10 A4 6B 03 7A 19 8B 00 06 32 03 29 04 1F 65 1B 1A 08 AD 00 16 04 1F
8D 00 07 3B 16 04 1F 41 29 04 19 08 8B 00 08 32 70 E6 19 8B 00 09 3B 19 16 04 08 41 8B 00 0A 19 03 08 8B 00 0B 19 AD 00
03 16 04 8B 00 0C 7A 08 00 0A 00 00 00 00 00 00 00 00 00 00 05 00 36 00 0D 02 00
DEBUG: Response APDU: 6A 80
DEBUG: Command APDU: 80 E8 00 00 FF C4 82 01 43 01 00 13 DE CA FF ED 01 02 04 00 01 09 A0 00 00 00 62 03 01 0C 01 02 00
1F 00 13 00 1F 00 0E 00 15 00 36 00 0C 00 74 00 0A 00 13 00 00 00 6C 00 00 00 00 00 00 02 01 00 04 00 15 02 05 01 07 A0
00 00 00 62 01 01 00 01 07 A0 00 00 00 62 00 01 03 00 0E 01 0A A0 00 00 00 62 03 01 0C 01 01 00 14 06 00 0C 00 80 03 01
00 01 07 01 00 00 00 1F 07 00 74 00 02 10 18 8C 00 01 18 11 01 00 90 0B 87 00 18 8B 00 02 7A 02 30 8F 00 03 3D 8C 00 04
3B 7A 05 23 19 8B 00 05 2D 1A 03 25 61 0A 1A 04 25 10 A4 6B 03 7A 19 8B 00 06 32 03 29 04 1F 65 1B 1A 08 AD 00 16 04 1F
8D 00 07 3B 16 04 1F 41 29 04 19 08 8B 00 08 32 70 E6 19 8B 00 09 3B 19 16 04 08 41 8B 00 0A 19 03 08 8B 00 0B 19 AD 00
03 16 04 8B 00 0C 7A 08 00 0A 00 00 00 00 00 00 00 00 00 00 05 00 36 00 0D 02 00
DEBUG: Response APDU: 6A 80
net.sourceforge.gpj.cardservices.exceptions.GPLoadException: Load failed, SW: 6A 80
at net.sourceforge.gpj.cardservices.GlobalPlatformService.loadCapFile(Unknown Source)
at net.sourceforge.gpj.cardservices.GlobalPlatformService.main(Unknown Source)
Any idea on what causes the problem?
Thanks in advance for your help!