Skip to content

Add Linux TPM 2.0 support - #42

Merged
ekarulf merged 1 commit into
mainfrom
linux-tpm-support
Dec 3, 2026
Merged

ekarulf merged 1 commit into
mainfrom
linux-tpm-support

Conversation

@ekarulf

@ekarulf ekarulf commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Closes #41.

Changes

  • Add a Linux P-256 signing backend through the kernel TPM resource manager at /dev/tpmrm0. The TPM authenticates each wrapped key on load. The private scalar stays in the TPM, and the backend uses transient handles.
  • Share certificate validation and the Roles Anywhere signing adapter across hardware backends. Keep Secure Enclave SSH on macOS.
  • Add Ubuntu CI and Rust 1.88 coverage, x86-64 Linux release packaging, and TPM access documentation.

Validation

  • Ubuntu workspace suite on the robotics lab PC: 419 passed and 5 ignored. Formatting and Clippy with warnings denied passed.
  • Physical Infineon TPM 2.0: generated and reopened a wrapped key, verified message and prehashed ECDSA signatures, and rejected swapped and corrupted key references.
  • CLI on the same TPM: ran init and enroll csr in separate processes, verified the CSR with OpenSSL, and confirmed local bootstrap and doctor signing and certificate checks. Key generation failed as expected when the account lacked device access.
  • Live AWS credential exchange remains unverified.

Use a local TPM resource manager and wrapped P-256 signing keys. Add Linux CI, release packaging, and a physical hardware regression test.
@ekarulf
ekarulf merged commit cd6b5c0 into main Dec 3, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

Add Linux TPM 2.0 support for hardware-backed identities

1 participant