stpm-verify(1)
π stpm-verify β the manual page, but make it cute π
okay bestie, welcome to stpm-verify(1) π β yes that's the section number, we're fancy here. this is the little tool that goes "hmm let me check that signature real quick" using your TPM chip. she's giving β¨verificationβ¨ and honestly? iconic.
πΈ NAME πΈ
stpm-verify β verify data using the TPM chip π
no cap, that's literally the whole job. she verifies. she slays. periodt.
π¦ SYNOPSIS π¦
stpm-verify [ -hq ] -f data -s sig file -k <key file>
that's the whole vibe right there. flags in, files in, truth comes out. π«Ά
β¨ DESCRIPTION β¨
so stpm-verify verifies data that was signed by stpm-sign. that's it. that's the tea. β
ngl, this program is mostly made for debugging β like, its whole main character moment is making sure that your TPM is set up correctly and that a valid key was actually generated. it's the friend who double-checks that you locked the door. lowkey essential, highkey underappreciated. π₯
π OPTIONS π
-hβ show usage info. the classic "help me bestie" flag. π-fdata file β file containing the data to be verified. this is the thing you're checking up on. π-ssig file β file containing the signature fromstpm-sign. the receipt, basically. π§Ύ-kkey file β file containing the encrypted key blob. the key. the blorbo. the whole reason any of this works. π
also yes, there's a -q in the synopsis up there β it's in the usage line, so we're keeping it exactly as written, no edits, no guessing. π
π EXAMPLES π
here's the whole little love story in three commands β generate random data, sign it, verify it:
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
look at her go. π₯Ή generate, sign, verify. a full circle moment. ate and left no crumbs.
π DIAGNOSTICS π
bestie, if something goes wrong, it's probably the TPM chip. most errors are gonna be about interacting with that little guy. π
the fix? reset the TPM chip and take ownership β that should take care of most of them. seriously, that's the move like 90% of the time.
for the full rundown, go read the TPM-TROUBLESHOOTING section of simple-tpm-pk11(7). it's giving "support group for TPM owners". π«
π SEE ALSO π
the whole friend group. iykyk. π
π AUTHOR π
Simple-TPM-PK11 was written by Thomas Habets <habets@google.com> / <thomas@habets.se>.
and if you wanna peek at the source, go clone it:
git clone https://github.com/ThomasHabets/simple-tpm-pk11.git
and that's the page, bestie π«Ά β brought to you by simple-tpm-pk11, dated 1th December, 2013 (yes, "1th", we don't question the legend π ). go verify something. you got this. β¨πΈ
π¦ where this page comes from
- debian bookworm: simple-tpm-pk11 0.06-4+b1 Β· Apache-2.0
- debian trixie: simple-tpm-pk11 0.06-5+b1 Β· Apache-2.0
- nixos 26.05: simple-tpm-pk11 0.07
- nixpkgs unstable: simple-tpm-pk11 0.07
- ubuntu jammy: simple-tpm-pk11 0.06-4build1 Β· Apache-2.0
- ubuntu noble: simple-tpm-pk11 0.06-5build2 Β· Apache-2.0
- ubuntu questing: simple-tpm-pk11 0.06-5build2
- ubuntu resolute: simple-tpm-pk11 0.07-1 Β· Apache-2.0
- ubuntu stonking: simple-tpm-pk11 0.07-1build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms