gotpm

CLI tool for interacting with TPM 2.0 devices and operations

brewmacoslinux
Try with needOr install directly
Source

About

CLI for using TPM 2.0

Commands

gotpm

Examples

List available TPM 2.0 handles and persistent objects$ gotpm handles
Read PCR (Platform Configuration Register) values$ gotpm pcr read --pcr 0,1,7
Generate a random number using TPM$ gotpm rand --bytes 32