Skip to content

Commit 6e44344

Browse files
committed
Add TPM information to system information
1 parent 2828c1d commit 6e44344

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pynitrokey/cli/nethsm.py

+8
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,14 @@ def system_info(ctx: Context) -> None:
13911391
print(f"Software version: {info.software_version}")
13921392
print(f"Hardware version: {info.hardware_version}")
13931393
print(f"Build tag: {info.build_tag}")
1394+
if info.attestation_keys:
1395+
print("Attestation keys")
1396+
for key, value in info.attestation_keys.items():
1397+
print(f" {key}: {value}")
1398+
if info.platform_configuration_registers:
1399+
print("Platform Configuration Registers")
1400+
for key, value in info.platform_configuration_registers.items():
1401+
print(f" {key}: {value}")
13941402

13951403

13961404
@nethsm.command()

0 commit comments

Comments
 (0)