node-tss
v0.0.2
Published
nodejs interface to the Trusted Computing Group Software Stack (TSS)
Downloads
11
Readme
================================================================================ NODE-TSS
NodeJS module for accessing the TCG Software Stack and therefore the Trusted Platform Module
Currently supports reading and extending PCRs, some key and quote-related operations.
This was originally part of the webinos project (http://webinos.org/) but was extracted and turned into a separate project.
Requirements
- A TPM or TPM Emulator
- A valid TSS stack. I've tested it against the TrouSerS stack.
- The cvv8 V8 type conversion headers, as provided in the "includes" directory. More details - http://code.google.com/p/v8-juice/wiki/V8Convert
Compilation
Using node-waf. Two steps:
You will get the following warning:
../src/tsscommands.c: In function ‘getErrorCode’: ../src/tsscommands.c:38:18: warning: cast to pointer from integer of different size
Testing
There's one test - run the following from the root directory of the module
TPM Keys
This API doesn't create keys for you, it needs you to do it.
Go to http://privacyca.com/code.html and follow instructions for the Privacy CA client and (if possible) the EK Certificate Extractor.
TODO List / known bugs
At the moment all operations are synchronous. This might need to change.
Reading too many PCRs in a row results in a segfault in Trousers (on my PC).
That might be this module, or it might be trousers