7

I am trying to

  • initialize the TPM
  • set an owner
  • create AIKs

Any help/link would be appreciated.

3 Answers 3

6

Read MSDN.
TBS Reference: http://msdn.microsoft.com/en-us/library/aa446794(VS.85).aspx
Using TBS: http://msdn.microsoft.com/en-us/library/ms725663(v=VS.85).aspx
TBS Base Services: http://msdn.microsoft.com/en-us/library/aa446796(VS.85).aspx

You may also want to look at this article from MS about TPM, some of them with sample code:
Overview of TPM Management
http://technet.microsoft.com/en-us/library/cc730635.aspx

Trusted Platform Module Management Step-by-Step Guide
http://technet.microsoft.com/en-us/library/cc749022(WS.10).aspx

Understanding Keys and Passwords Used by the TPM
http://technet.microsoft.com/en-us/library/cc755038.aspx

1
  • 2
    The question was about C#. Those links are all about TBS, a C++ library. Commented Jun 6, 2018 at 11:33
5

It looks like Microsoft's TPM library for C++ ('TBS') has no equivalent in .Net, but there's an external library from Microsoft that provides a binding - TSS.Net

The documentation lives in a .docx file.

2

It's a really old question...

But, for anyone looking for it now-days, There's a C# solution for TPM 2.0 in GitHub:

https://github.com/ms-iot/security/tree/master/Limpet

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.