From: Ronald T. <ron...@ia...> - 2008-05-13 16:48:03
|
Hello trustedJava users, Here some Q&A from a user on the newest releases and my answers. In the future this might develop into a FAQ.. >I always get the following exception when using jTpmTools. Would you tell me how to resolve it if you know that. Thanks very much. >.. > [root@localhost jTpmTools_0.3b]# ./jtt.sh create_key -k 123456 > Exception in thread "main" java.lang.NoClassDefFoundError: iaik/tc/tss/api/tspi/TcTssContextFactory >.. The new TPM tools 0.3b require the newest jTSS 0.3, where TcTssContextFactory is introduced. Make sure that the most recent iaik_jtss_tsp.jar is in the <jtpmtools>/ext_libs directory. > Do you mean that jTSS 0.3 also only supports TrouSerS up to 0.2.9.1 ? Thanks. _jTSS_ is an _alternative_ to TrouSerS. It therefore cannot support TrouSerS at all, and they must not run at the same time! However, _jTSS Wrapper_ also requires the Java API definitions provided in the iaik_jtss_tsp.jar file of jTSS. It then implements the functionality using TrouSerS. It only supports TrouSerS up to 0.2.9.1. You might also have to add our TPM1.2 patch to TrouSerS. > [root@localhost jTpmTools_0.3b]# ./jtt.sh take_owner -o 123 -s 123 >20:48:49:220 [INFO] TakeOwnership::execute (82): TakeOwnership succeeded Here you set a non-default SRK secret. >[root@localhost jTpmTools_0.3b]# ./jtt.sh create_key -k 123456 > .. > TSS Error: > error layer: 0x00 (TPM) > error code (without layer): 0x01 > error code (full): 0x01 > error message: Authentication failed And here, you do not specify it. Use the -s parameter. Note that the jTPMTools will use the SRK as the default parent key for the generated keys. > TSS Error: > error layer: 0x00 (TPM) > error code (without layer): 0x01 > error code (full): 0x01 > error message: Authentication failed More generally: This error message indicates that some credential/password is wrong. Double check spelling of the owner, SRK or application password or all of them. Also consider the encodings and whether the trailing zero is included or not. Repeat. Regards, Ronald -- Dipl.-Ing. Ronald Tögl phone +43 316/873-5502 Trusted Computing Labs fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at |