---
name: "stpm-verify"
section: "1"
platform: "linux"
package: "simple-tpm-pk11"
version: "0.06-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stpm-verify"
---

# stpm-verify(1)

Verify data using the TPM chip

## NAME

stpm-verify - Verify data using the TPM chip

## SYNOPSIS

**stpm-verify** \[ -hq \] -f *data* -s *sig file* -k \<key file\>

## DESCRIPTION

*stpm-verify* verifies data signed by *stpm-sign*.

This program is mostly made for debugging, to make sure that the TPM is set up correctly and a valid key was generated.

## OPTIONS

- \-h

  Show usage info.

- \-f *data file*

  File containing data to be verified.

- \-s *sig file*

  File containing signature from *stpm-sign*.

- \-k *key file*

  File containing the encrypted key blob.

## EXAMPLES

```

dd if=/dev/urandom of=to-sign bs=1 count=35
stpm-sign -k ~/.simple-tpm-pk11/my.key -f to-sign -r > to-sign.sig
stpm-verify -f to-sign -k ~/.simple-tpm-pk11/my.key -s to-sign.sig
```

## DIAGNOSTICS

Most errors will probably be related to interacting with the TPM chip. Resetting the TPM chip and taking ownership should take care of most of them. See the *TPM-TROUBLESHOOTING* section of **[simple-tpm-pk11(7)](/simple-tpm-pk11/7.md)**.

## SEE ALSO

**[simple-tpm-pk11(7)](/simple-tpm-pk11/7.md)**, **[stpm-keygen(1)](/stpm-keygen/1.md)**, **[stpm-sign(1)](/stpm-sign/1.md)**.

## AUTHOR

Simple-TPM-PK11 was written By Thomas Habets \<habets@google.com\> / \<thomas@habets.se\>.

git clone https://github.com/ThomasHabets/simple-tpm-pk11.git
