Networking NVIDIA NVOS User Manual for InfiniBand Switches

TPM Commands

nv action generate system security tpm


nv action generate system security tpm <pcrs> <nonce> [algorithm <algorithm>]

Generate a TPM quote (the quotes.json file) for the specified PCRs and nonce.

Syntax Description

pcrs

The PCRs to include in the quote, separated by commas (1–30). The quote and the PCRs use the same hash algorithm.

nonce

A hexadecimal string of up to 512 bits (128 hexadecimal characters).

algorithm

Hash algorithm. The only supported value is sha384.

Default

sha384

History

25.02.2002

Example

admin@nvos:~$ nv action generate system security tpm 1,2 12 algorithm sha384

REST API

POST https://<ip>/nvue_v1/system/security/tpm/quote

nv action upload system security tpm


nv action upload system security tpm <file-name> <remote-url>

Upload a TPM file to a remote URL.

Syntax Description

file-name

File to upload: IAK.crt, quotes.json, or event_log.bin.
quotes.json is a Base64-encoded JSON file that contains quote.bin and its signature. It is available after you run nv action generate system security tpm.
event_log.bin contains the TPM BIOS event log, retrieved from the kernel securityfs interface.

remote-url

Remote URL to upload the file to.
Format: [protocol]://username[:password]@hostname/path/filename
Supported protocols: SCP, FTP, SFTP, and HTTPS

Default

N/A

History

25.02.2002

25.02.4002
Added HTTPS support in remote-url


Example

admin@nvos:~$ nv action upload system security tpm IAK.crt scp://user:pass@host/path/IAK.crt
admin@nvos:~$ nv action upload system security tpm event_log.bin scp://my_user:my_password@hostname/dir/
Action executing ...
Upload file event_log.bin
File uploaded successfully
Action succeeded

REST API

POST https://<ip>/nvue_v1/system/security/tpm/upload

Notes

  • The TPM BIOS event log must be available at /sys/kernel/security/tpm0/binary_bios_measurements. If the file is not present (for example, if the TPM is not available or securityfs is not mounted), the action fails with a file-not-found error.

  • The event log is staged temporarily under /run/nvue/tpm-upload/ with restrictive permissions (directory 0700, file 0600) and is removed after the upload completes.

  • NVOS supports a password prompt for remote URLs that require authentication.

  • Remote URL credentials are not logged.

  • This command is available only on platforms that support TPM.

nv show system security tpm oiak


nv show system security tpm oiak

Display the owner IAK (oIAK) certificate.

Syntax Description

N/A


Default

N/A

History

25.02.4282

Example

admin@nvos:~$ nv show system security tpm oiak

      operational
-----  -----------
plain  Certificate:
           Data:
               Version: 3 (0x2)
…
…

REST API

GET https://<ip>/nvue_v1/system/security/tpm/oiak

Related Commands

nv action import system security tpm oiak

nv action import system security tpm oiak


nv action import system security tpm oiak (remote-url <remote-url> | data <data>)

Import the owner IAK (oIAK) certificate in X.509 format, either from a remote URL or as PEM data.

Syntax Description

remote-url

A local or remote URI from which to retrieve the certificate file (which contains the public key).

data

The raw certificate data, for example, a PEM string.

Default

N/A

History

25.02.4282

Example

admin@nvos:~$ nv action import system security tpm oiak remote-url scp://u:p@s/oIAK.crt

REST API

POST https://<ip>/nvue_v1/system/security/tpm/oiak

Related Commands

nv action delete system security tpm oiak
nv show system security tpm oiak

nv action delete system security tpm oiak


nv action delete system security tpm oiak

Delete the imported owner IAK (oIAK) certificate.

Syntax Description

N/A


Default

N/A

History

25.02.4282

Example

admin@nvos:~$ nv action delete system security tpm oiak

REST API

DELETE https://<ip>/nvue_v1/system/security/tpm/oiak

Related Commands

nv action import system security tpm oiak

Last updated: