stpm-sign(1)
β¨ stpm-sign(1) β¨
okay bestie so this is stpm-sign, a manual page from section 1 of the simple-tpm-pk11 fam π
and it's literally the glow-up your TPM chip needed. let's get into it π«Ά
πΈ NAME πΈ
stpm-sign β sign data using the TPM chip π
π¦ SYNOPSIS π¦
stpm-sign [ -hs ] -k key file -f input file
like. that's the whole vibe. flags, key, file, go π
β¨ DESCRIPTION β¨
so stpm-sign grabs your SRK-encrypted key blob and is like "hey TPM, sign the contents of input file with this key" and the TPM justβ¦ does it π
this program is mostly made for debugging β it's the vibe check that makes sure your TPM is set up correctly and that a valid key was actually generated. not me using a whole cryptographic coprocessor to check my homework π
π OPTIONS π
-hβ show usage info. the classic "wait what were the flags again" button π-finput file β the file containing the data to be signed. this is the main character of the operation fr fr.-kβ the key to sign with. heads up bestie: this key is generated withstpm-keygen, so don't come at it with some random file π-sβ ask for the SRK password interactively. by default the "Well Known Secret" (20 nulls) is used instead. the SRK password is an access token that must be presented for the TPM to perform any operation that involves the TPM β and an actual secret password is usually not required or useful. so like, it's giving formality, not security πβ¨
π EXAMPLES π
the basic girlie move:
stpm-sign -k ~/.simple-tpm-pk11/my.key -f my-data-here
with a PIN-protected key:
stpm-sign -k ~/.simple-tpm-pk11/my-PIN-key.key -f my-data-here
Enter key PIN: my secret password here
and the full two-step moment, SRK and key PIN:
stpm-sign -sk ~/.simple-tpm-pk11/my-PIN-key.key -f my-data-here
Enter SRK PIN: 12345678
Enter key PIN: my secret password here
slay π
π©Ί DIAGNOSTICS π©Ί
most errors will probably be related to interacting with the TPM chip. ngl that's basically the whole plot.
resetting the TPM chip and taking ownership should take care of most of them π
see the TPM-TROUBLESHOOTING section of simple-tpm-pk11(7) for the full rescue arc π§
π SEE ALSO π
simple-tpm-pk11(7), stpm-keygen(1), stpm-verify(1).
π 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
okay that's the whole page bestie, no cap π«Ά this was simple-tpm-pk11, dated 1th December, 2013 β iconic behavior, we love to see it. go sign something πβ¨πΈ
π¦ where this page comes from
- nixos 26.05: simple-tpm-pk11 0.07
- nixpkgs unstable: simple-tpm-pk11 0.07
- 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