|
From: Nektarios I. <ine...@gm...> - 2007-03-12 16:20:18
|
Hello everyone,
I am trying to create a "sealed" package using the "seal" subcommand of
jTPMTools. I couldn't find anyone having a similar problem on the mailing
list so I am posting my case here.
"somefile.txt" is a plaintext file I created with a few words in it.
"newpass" is the sealing key's password. The key has been created using the
"create_key" subcommand as follows:
create_key -k newpass [SUCCESSFULL]
---> This gave key: 1.2.3.4.5.3589e17f4313
"somefile_sealed.txt" is the file to be created by the (successful)
[root@localhost jTpmTools_0.2]# sh jtt.sh seal -i somefile.txt -k newpass -o
somefile_sealed.txt -p 0 -u 1.2.3.4.5.3589e17f4313
Here is the output,
-----------------------------------
IAIK/OpenTC Java TPM Tools
- - - - - - - - - -
based on IAIK/OpenTC jTSS Wrapper
-----------------------------------
/home/inectarios/Trusted_Computing/jTpmTools_0.2/ext_libs
16:13:31:967 [INFO] Seal::execute (205): sealing to pcr: 0
TSPI call error:
error code: 0x24
error message: TPM layer: Invalid key usage
at iaik.tss.impl.jni.TcBaseObject.handleRetCode(TcBaseObject.java
:102)
at iaik.tss.impl.jni.TcEncData.seal(TcEncData.java:129)
at iaik.tc.apps.jtt.data.Seal.execute(Seal.java:271)
at iaik.tc.utils.cmdline.SubCommand.run(SubCommand.java:80)
at iaik.tc.utils.cmdline.SubCommandParser.parse(
SubCommandParser.java:52)
at iaik.tc.apps.jtt.common.JTpmTools.main(JTpmTools.java:67)
|