Skip to content

Commit 9235efb

Browse files
committed
Add TPM information to system information
1 parent 2828c1d commit 9235efb

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pynitrokey/cli/nethsm.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -1386,11 +1386,19 @@ def system_info(ctx: Context) -> None:
13861386
role."""
13871387
with connect(ctx) as nethsm:
13881388
info = nethsm.get_system_info()
1389-
print(f"Host: {nethsm.host}")
1390-
print(f"Firmware version: {info.firmware_version}")
1391-
print(f"Software version: {info.software_version}")
1392-
print(f"Hardware version: {info.hardware_version}")
1393-
print(f"Build tag: {info.build_tag}")
1389+
print(f"Host: {nethsm.host}")
1390+
print(f"Firmware version: {info.firmware_version}")
1391+
print(f"Software version: {info.software_version}")
1392+
print(f"Hardware version: {info.hardware_version}")
1393+
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)