From: Ronald T. <ron...@ia...> - 2014-07-02 09:16:13
|
Hello Matthew, Good to see that your are using jTSS for a serious deployment. First of all, jTSS setup does offer a /verysilent flag (see also http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline ) in case you just want to automate the installation instead. Second, if you want to do this manually roughly follow these steps: 0. You need to be Administrator 1. install (silently) the Visual C++ runtime from the /lib folder, for both 32 and 64 bits (jTSS will dynamically decide, depending on the Java VM). 2. Configure the two INI files to use what we call "Local Bindings". See http://trustedjava.sourceforge.net/index.php?item=jtss/readme sec. 4.1 3. Configure the Classpath of jtt to include all the jtss stuff (you can skip the SOAP libraries, but they won't hurt) and the ini file definitions. 4. Run jtt. I hope this helps. I am not sure about your Linux comment, though and would need more data. Ronald On 07/01/2014 10:08 PM, Matthew Galligan wrote: > Hello, > > I have a use case where I need to do a one-time encryption of > something on a lot of workstations (2000+) and was hoping to run the > TCS daemon directly from command line for this so that I could avoid > permanently installing jTSS on all of these machines. I periodically > boot to another partition on these machines that has jTSS installed. > > In Windows, I have run the following (wild guess so probably pretty > wrong): > > java -cp > .;C:\PROGRA~1\jTSS\soap\..\lib\iaik_jtss_tsp_tests.jar;C:\PROGRA~1\jTSS\soap\..\lib\iaik_jtss_tsp_soap.jar;C:\PROGRA~1\jTSS\soap\..\lib\iaik_jtss_tsp.jar;C:\PROGRA~1\jTSS\soap\..\lib\iaik_jtss_tcs_soap.jar;C:\PROGRA~1\jTSS\soap\..\lib\iaik_jtss_tcs.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\hsqldbmin.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\junit.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\xerces.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\wsdl4j-1.5.1.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\saaj.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\mail.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\log4j-1.2.8.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\jaxrpc.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\commons-logging-1.0.4.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\commons-discovery-0.2.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\commons-daemon.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\axis.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\axis-ant.jar;C:\PROGRA~1\jTSS\soap\..\ext_libs\activation.jar > -Djtss.tsp.ini.file=C:\PROGRA~1\jTSS\soap\..\lib\ini\jtss_tsp.ini > -Djtss.tcs.ini.file=C:\PROGRA~1\jTSS\soap\..\lib\ini\jtss_tcs.ini > iaik.tc.tss.impl.java.tcs.soapservice.server.StartAxisServerWindows > > I copied the classpath out of the service properties and I get the > following output: > > 10:23:08:434 [INFO] StartAxisServerWindows::setupServer (81): > Initializing the > AXIS server > 10:23:08:512 [INFO] StartAxisServerWindows::setupServer (87): AXIS > server succ > essfully initialized > 10:23:08:730 [INFO] StartAxisServerWindows::startServer (98): Try to > start the > AXIS server > 10:23:08:730 [INFO] StartAxisServerWindows::startServer (101): AXIS > server succ > essfully started > - starting up SimpleAxisServer on port 30004 (C:\Program Files\jTSS\lib) > > > However, when I run jtt I get the following: > --------------------- > IAIK Java TPM Tools > --------------------- > 10:32:16:878 [ERROR] TcTcsBindingSoap::connect (116): There seems no > TCS runni > ng > 10:32:16:893 [ERROR] TcTcsBindingSoap::connect (116): There seems no > TCS runni > ng > iaik.tc.tss.api.exceptions.tsp.TcTspException: > > TSS Error: > error layer: 0x3000 (TSP) > error code (without layer): 0x0103 > error code (full): 0x3103 > error message: Core Service connection failed. > > at > iaik.tc.tss.impl.java.tsp.tcsbinding.soapservice.TcTcsBindingSoap.con > nect(TcTcsBindingSoap.java:117) > at > iaik.tc.tss.impl.java.tsp.internal.TcTspInternal.TspContextConnect_In > ternal(TcTspInternal.java:368) > at iaik.tc.tss.impl.java.tsp.TcContext.connect(TcContext.java:174) > at iaik.tc.apps.jtt.tpm.TpmVersion.execute(TpmVersion.java:68) > at iaik.tc.utils.cmdline.SubCommand.run(SubCommand.java:69) > at > iaik.tc.utils.cmdline.SubCommandParser.parse(SubCommandParser.java:41 > ) > at iaik.tc.apps.JTpmTools.main(JTpmTools.java:224) > > I've noticed the same behavior when running the daemon on linux. > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > > > _______________________________________________ > Trustedjava-support mailing list > Tru...@li... > https://lists.sourceforge.net/lists/listinfo/trustedjava-support -- Dr. Ronald Tögl phone +43 316/873-5502 Secure and Correct Systems fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at |