
Dear TPM.dev community, I have a rather simple question regarding key attestation (not to be confused with...
Dear TPM.dev community,
I have a rather simple question regarding key attestation (not to be confused with the attestation key for signing quotes).
Short version:
How do I prove that a key was generated in a TPM and is non-exportable?
Longer version:
On our microkernel OS, we developed a component that creates a long-lived signing key inside the TPM. We use this long-lived signing key to sign short-lived certificates for TLS client authentication. We want to back the long-lived signing key with a PKI. That is, we would like to prove to the CA that the long-lived key belonging to the certificate in the CSR was created inside a TPM and that the key is non-exportable.
Can someone point me in the right direction?
When I google "TPM key attestation", I get many results about creating an attestation key that signs TPM event logs. That's not what I'm looking for.
π
1β€οΈ
π
π‘
π
π
Explore More Posts

Infineon lifts the veto on 9678 and I added back the information to our PQC Readiness page in our TPMdev tutorials - https://github.com/tpm2dev/tpm.dev.tutorials/blob/master/PQC/pqc-ready-tpm.md
#TPMDEV2026 Registration is now open. Online seats are limited (not a joke, streaming capacity). Secure your spot by registering today - https://events.zoom.us/ev/At5hYcw-lZoyOdB5W0MEy8olBvqgyR47DA3r7yptfWG5xHDZ2Y3V~AtG0Iepwg5qMqLJOT7QHCwcl7aai2M3qEMQYdmAof_9bJbjErQlhygjd5A
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I donβt have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8


Comments
Start the Conversation
Use TPM2_Ceritfy, check the public part against the attestation and check that fixedTPM is set in object attributes for the key, or use MakeCredentia + ActivateCredential and check for fixedTPM in the object attributes
Building on what Erik Larsson mentioned, and because you mentioned a PKI being involved: have a look at ACME Device Attestation, which introduces a new `device-attest-01` challenge type, which can be backed by a TPM: https://datatracker.ietf.org/doc/draft-acme-device-attest/ (a.o.). Some more to read about it can be found here and here.
The approach does involve an Attestation CA to issue certificates for the attestation keys, which are then used in the ACME protocol with the `device-attest-01` challenge response to carry over the creation/certification evidence for the (attested) key. It uses the WebAuthn TPM format: https://www.w3.org/TR/webauthn-2/#sctn-tpm-attestation (for the rest it's unrelated to WebAuthn). There's an extra step involved to issue certificates for your attestation keys, which may or may not be what you want/need, so something to look into. This step can be used to verify that you're communicating with an actual (and known) TPM; not simply a simulator attesting keys. It's also intended to attest a certain identity (e.g. a permanent identifier or hardware module name), which may not apply to your use case. An implementation of verification of the `device-attest-01` response and, more specifically, the WebAuth tpm format and the TPM attestation data, can be found here. (FD: I work at Smallstep).
A more lightweight approach could be to look into the Subject Key Attestation Evidence extension: https://trustedcomputinggroup.org/wp-content/uploads/IWG_SKAE_Extension_1-00.pdf. It carries the evidence that Erik mentioned in a standardized X509 extension. This is essentially the same data that's packaged up in the `device-attest-01` challenge response, but inside of an X509 extension instead.
That sounds great :D
It seems like NAE could be used as the basis for attestation infrastructure (and maybe as the attestation CA directly, or integrate β¦more
Awesome! Thanks Herman Slatman and Erik Larsson ! I will have to read up and do some prototyping. I'll keep you posted.