From: Ronald T. <ron...@ia...> - 2009-05-19 08:13:49
|
Hi Simon, You are right, you need to complete the .ini files before you can use jTSS. Select the components of your choice for log file and persistent storage and create the folders in the file system (with proper access rights for the user/root) you intend to use and fill in the paths in the ini files. For TSP-TCS communications you can either choose local bindings (i.e. direct method calls) or SOAP bindings. For the later you need to install the system daemon before using it. For local bindings (recommended for testing) you either need root privileges to access the TPM, or to allow access to /dev/tpm. Please, also note that the test-suite uses the hardcoded owner password "opentc", encoded as UTF-16LE without terminating zero. Other tools than jTpmtools might fail to use the correct encoding. This is a basic jTSS code example on reading the TPM version. context_ = new TcTssContextFactory().newContextObject(); context_.connect(); TcTssVersion version = getRealTpmVersion(); TcBlobData subCap = TcBlobData .newUINT32(TcTssConstants.TSS_TPMCAP_PROP_MANUFACTURER); TcBlobData tpmMan = context_.getTpmObject().getCapability( TcTssConstants.TSS_TPMCAP_PROPERTY, subCap); context_.closeContext(); The complete example source is in iaik.tc.tss.test.tsp.java.simple. For a tutorial, you can also check out these slides: http://www.iaik.tugraz.at/content/teaching/master_courses/trusted_computing/downloads/2009/L3_AK_IT_2009-TSS.pdf hth, Ronald Simon Mittelberger wrote: > Hi, > > I'm new to jTSS and would like to have some easy startup steps. > I set up an ubuntu 9.04 on a lenovo t61. > My TPM is working (tested with tpm-tools; I can execute takeownership > and read the public EK). > > I tried already to execute the run_test.sh mentioned in the readme file > which comes with the jTSS_0.4a.tar.bz2. > It produces a lot of output, which I could not understand. I guess I > have problems in setting up the .ini files in the correct way. > > Can someone explain a few easy steps to get a java program to use the > jtss library and to read for example the TPM version? I tried to > understand the source of the above mentioned test, but failed. > > Many thanks, > > best regards > Simon Mittelberger > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Trustedjava-support mailing list > Tru...@li... > https://lists.sourceforge.net/lists/listinfo/trustedjava-support > -- 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 |