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. πŸ™ˆ
  • -f data file β€” file containing the data to be verified. this is the thing you're checking up on. πŸ’œ
  • -s sig file β€” file containing the signature from stpm-sign. the receipt, basically. 🧾
  • -k key 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. ✨🌸