All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] Want to use c++ to get TPM Serial Number - how do it?
@ 2021-07-20 17:18 Andy Purcell
  0 siblings, 0 replies; only message in thread
From: Andy Purcell @ 2021-07-20 17:18 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

I have a need to use C++ to obtain the unique TPM information - like a Serial Number.
My system is running Windows 10/64. This is on an HP Desktop PC with TPM 2.0 chip.

I can use PowerShell
Get-TpmEndorsementKeyInfo -hashalgorithm sha256

To get this output:
                ...
ManufacturerCertificates : {[Subject]
                             TPMVersion=id:073E, TPMModel=SLB 9670 TPM2.0, TPMManufacturer=id:49465800
                           [Issuer]
                             CN=Infineon OPTIGA(TM) RSA Manufacturing CA 034, OU=OPTIGA(TM) TPM2.0, O=Infineon Technologies AG, C=DE
      ...
                           [Serial Number]
                             4880DE8E
                           [Thumbprint]
                             B8395DA6A1D661C8CCD35D47E3DA6E9532EFFEC4

But how can I get this same Serial Number information using C++?

ap


[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 2657 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-20 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 17:18 [tpm2] Want to use c++ to get TPM Serial Number - how do it? Andy Purcell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.