tpmdevid

command
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Provisions a software TPM (swtpm) with the credentials the tpm_devid nodeattestor expects, and writes them where the agent and server configs point.

It mirrors what test/tpmsimulator does for the unit tests, but drives a real TPM over a socket instead of an in-process simulator, so the integration suite exercises the same code path an operator would. The templates and the NV index are taken from SPIRE itself rather than restated here: the agent regenerates the endorsement key from client.DefaultEKTemplateRSA() and reads its certificate from tpmutil.EKCertificateHandleRSA at attestation time, so anything provisioned under different parameters would fail to attest.

Usage:

go run provision.go -tpm-socket <path> -agent-dir <dir> -server-dir <dir>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL