Hi Max,
I also had openssl installed. I did not have to make changes to makefiles
to get tss test suite running. Here are all the steps I took:
export TESTSUITE_OWNER_SECRET="<password>" // assuming you already ran
'tpm_takeownership' to set the passwords for TPM owner and SRK
export TESTSUITE_SRK_SECRET="<password>"
cd tcg
make
cd ..
./tsstests.sh -v 1.2 | tee error1.log
Vicky
On Fri, Dec 19, 2014 at 6:30 PM, Massimo Gaggiano <[email protected]>
wrote:
>
> Hello Vicky,
> thanks for your answer, I finally found that file!
>
> I had another question about TSS Test Suite.
> I premise that openssl was installed.
>
> I compiled test suite with some problems:
> I had to add "-lcrypto" to all Makefile's, in each tcg/ subdirectory,
> except for tcg/common.
> In tcd/highlevel/Makefile I had to add "-lpthread" also.
>
> Have you had the same problem?
>
> Anyway, I successed to compile it.
>
> Thank you very much,
> Max.
>
>
>
> ------------------------------
> Date: Wed, 17 Dec 2014 18:33:00 -0500
> Subject: Re: [TrouSerS-users] TCSD TDDL Error - Interfacing TrouSerS to
> Software TPM
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
>
>
> > Moreovere, my gol would be to execute the "TSS Test Suite", but the file
> 'tsstests.sh' is missing on my drive: is it regular?
>
>
> The test suite is in the SourceForge:
>
> http://sourceforge.net/projects/trousers/files/
>
> Click on the TSS API test suite, you should be able to find tsstest.sh.
>
>
>
> Vicky
>
>
>
>
>
> On Wed, Dec 10, 2014 at 8:56 PM, Massimo Gaggiano <[email protected]>
> wrote:
>
> Hello all TrouSerS users,
>
> I use Arch Linux and my platform has no hardware TPM, so I need to
> interface TrouSerS with IBM's Software TPM.
>
> I followed the README file to compile the standard TPM, for working with
> TCP/IP socket interface, using the 'comp-sockets.sh' script.
> I followed the INSTALL file to set environment variables for the server
> and the client and to run the server for the first time.
> I executed the "IBM Regression Test": launched 'test_console.sh', had no
> errors.
>
> While following the procedure on
> http://ibmswtpm.sourceforge.net/tpm_tss.html, I got some problems with
> tcsd.
>
> Moreovere, my gol would be to execute the "TSS Test Suite", but the file
> 'tsstests.sh' is missing on my drive: is it regular?
>
> I launched a terminal to run the TPM server (TERMINAL 1) and another
> terminal to simulate BIOS and to launch 'tcsd' (TERMINAL 2).
>
> Below the output of terminals, there are the contents of 'tcsd.conf' and
> 'tcsd.service' (if eventually needed).
>
>
> ----- TERMINAL 1 -----
>
> [root@archlinux ~]# grep tss /etc/group
> tss:x:995:
>
> [root@archlinux ~]# grep tss /etc/passwd
> tss:x:996:995::/var/lib/tpm:/bin/false
>
> [root@archlinux ~]# ls -la /var/lib/tpm/
> totale 8
> drwx------ 2 tss tss 4096 9 dic 23.08 .
> drwxr-xr-x 24 root root 4096 11 dic 00.00 ..
> -rw------- 1 root root 0 9 dic 23.08 system.data
> [root@archlinux /]# exit
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> env | grep TPM
> TPM_PORT=6543
> TPM_SERVER_NAME=localhost
> TPM_SERVER_PORT=6543
> TPM_PATH=/home/max/Scrivania/tpm4720/tpm/NON-VOLATILE_DATA
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> ls -la NON-VOLATILE_DATA/
> totale 8
> drwxr-xr-x 2 max max 4096 10 dic 19.56 .
> drwxr-xr-x 3 max max 4096 28 nov 19.18 ..
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> ./tpm_server
> ...
> TPM_IO_Connect: Waiting for connections on port 6543
> ----------------------
>
>
> ----- TERMINAL 2 -----
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> env | grep TPM
> TPM_PORT=6543
> TPM_SERVER_NAME=localhost
> TPM_SERVER_PORT=6543
> TPM_PATH=/home/max/Scrivania/tpm4720/tpm/NON-VOLATILE_DATA
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> ls -la NON-VOLATILE_DATA/
> totale 12
> drwxr-xr-x 2 max max 4096 11 dic 00.28 .
> drwxr-xr-x 3 max max 4096 28 nov 19.18 ..
> -rw-r--r-- 1 max max 785 11 dic 00.28 00.permall
>
> [max@archlinux ~/Scrivania/tpm4720/tpm]> cd ../libtpm/utils/
>
> [max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./tpmbios
>
> [max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./createek
> Error TPM deactivated from TPM_CreateEndorsementKeyPair (...I launched
> tpm_takeownership in the past: is this the reason for the error?)
>
> [max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> ./nv_definespace -in
> ffffffff -sz 0
>
> [max@archlinux ~/Scrivania/tpm4720/libtpm/utils]> su
> Password:
> [root@archlinux /home/max/Scrivania/tpm4720/libtpm/utils]# cd
>
> [root@archlinux ~]# export TCSD_TCP_DEVICE_PORT=6543
>
> [root@archlinux ~]# systemctl enable tcsd
> Created symlink from /etc/systemd/system/default.target.wants/tcsd.service
> to /usr/lib/systemd/system/tcsd.service.
>
> [root@archlinux ~]# systemctl status tcsd
> ● tcsd.service - Manager for Trusted Computing resources
> Loaded: loaded (/usr/lib/systemd/system/tcsd.service; enabled)
> Active: failed (Result: exit-code) since mer 2014-12-10 22:48:15 CET;
> 2h 24min ago
> Main PID: 1183 (code=exited, status=137)
>
> dic 10 22:48:15 archlinux tcsd[1183]: TCSD TDDL ERROR: Could not find a
> device to open!
> dic 10 22:48:15 archlinux systemd[1]: tcsd.service: main process exited,
> code=exited, status=137/n/a
> dic 10 22:48:15 archlinux systemd[1]: Unit tcsd.service entered failed
> state.
> dic 10 22:48:15 archlinux systemd[1]: tcsd.service failed.
>
> [root@archlinux ~]# /usr/sbin/tcsd -e -f
>
> TCSD TDDL ioctl: (25) Inappropriate ioctl for device
> TCSD TDDL Falling back to Read/Write device support.
> TCSD trousers 0.3.13: TCSD up and running.
> ----------------------
>
>
> ----- /etc/tcsd.conf -----
> remote_ops =
> seal,unseal,registerkey,unregisterkey,loadkey,createkey,sign,random,getcapability,unbind,quote,readpubek,getregisteredkeybypublicinfo,getpubkey,selftest
> --------------------------
>
>
> ----- /usr/lib/systemd/system/tcsd.service -----
> [root@archlinux ~]# ls -la /usr/lib/systemd/system/tcsd.service
> -rw-r--r-- 1 root root 180 10 dic 01.55
> /usr/lib/systemd/system/tcsd.service
>
> [root@archlinux ~]# cat /usr/lib/systemd/system/tcsd.service
> [Unit]
> Description=Manager for Trusted Computing resources
> After=sysinit.target
>
> [Service]
> User=tss
> ExecStart=/usr/bin/tcsd -f -c /etc/tcsd.conf
>
> [Install]
> WantedBy=default.target
> ------------------------------------------------
>
>
> Any suggestions?
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> TrouSerS-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users