Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow connection to TPM simulator on arbitrary port #23

Closed
lucasbuschlinger opened this issue Jul 25, 2018 · 2 comments
Closed

Allow connection to TPM simulator on arbitrary port #23

lucasbuschlinger opened this issue Jul 25, 2018 · 2 comments

Comments

@lucasbuschlinger
Copy link

lucasbuschlinger commented Jul 25, 2018

Hi,

I don't know how contributions work with this project, so I thought: let's just open it up as an issue.

(Talking about the TSS.Java, as I use it)

The Problem:
A TPM simulator can be run on a user-specified port. And thus, connection to local TPM simulators should be possible to do the same.

Solution:
This can be achieved by adding a version of localTpmSimulator() in the TpmFactory Class, which gets a port as a parameter and passes it to TpmDeviceTcp(host, port) constructor (line 25).

I'd really appreciate this. If you want, I could also simply open up a pull request.

Thanks and best regards,
Lucas

@amarochk
Copy link
Contributor

Hi Lucas,

You can connect to an arbitrary end-point supporting the TPM simulator's protocol using the "remoteTpm" method. The only additional thing you may need to do is to issue tpm.Startup(TPM_SU.CLEAR) command to "turn on" the simulator.

@lucasbuschlinger
Copy link
Author

Hi,

Right, thank you! I somehow missed that, so sorry for bothering you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants