tpmtool(1)
π tpmtool(1) β the GnuTLS TPM tool π
okay bestie, sit down, hydrate, because we're talking about tpmtool, a User Command from the GnuTLS fam. yes it's a whole tool for the Trusted Platform Module chip in your machine. yes it's giving hardware cryptography main character energy. let's go π§
β¨ NAME β¨
tpmtool β GnuTLS TPM tool π
β¨ SYNOPSIS β¨
tpmtool [-flags] [-flag [value]] [--option-name[[=| ]value]]
All arguments must be options. like, every single one. there are no loose positional stragglers here, she doesn't do that. periodt π
β¨ DESCRIPTION β¨
It's a program that lets you handle cryptographic data from the TPM chip. that's the whole vibe. TPM stuff, handled. π₯
β¨ OPTIONS β¨
-d num,--debug=numβ turns on debugging. takes an integer as its argument, and that integer is constrained: it has to bein the range 0 through 9999. this is the debug level, so bigger number = more yapping. π«Ά--infile=fileβ the input file. that's it, that's the whole thing.--outfile=strβ the output file. where the goodies land. πΎ--generate-rsaβ generates an RSA private-public key pair. and like, specifically: it makes the pair in the TPM chip. the key can be stored in the file system and protected by a PIN, or stored (registered) in the TPM chip flash. two paths, both iconic. π--registerβ any generated key will be registered in the TPM. β οΈ this one is clingy: it must appear in combination withgenerate-rsa.--signingβ any generated key will be a signing key. βοΈ and the rules, bestie: it must not appear in combination withlegacy, and it must appear in combination withgenerate-rsa.--legacyβ any generated key will be a legacy key. the same energy but backwards: it must not appear in combination withsigning, and it must appear in combination withgenerate-rsa.--userβ any registered key will be a user key. it must not appear in combination withsystem, and it must appear in combination withregister. the generated key will be stored in a user specific persistent storage. πβοΈ--systemβ any registered key will be a system key. it must not appear in combination withuser, and it must appear in combination withregister. the generated key will be stored in system persistent storage. ποΈ--pubkey=urlβ prints the public key of the provided key. ποΈ--listβ lists all stored keys in the TPM. the receipts, basically. π--delete=urlβ deletes the key identified by the given URL (UUID). bye babe π--test-sign=urlβ tests the signature operation of the provided object. it can be used to test the correct operation of the signature operation. this operation will sign and verify the signed data. it's a little self-check, a wellness check for your signing. π©Ί--sec-param=security parameterβ specify the security level[low, legacy, medium, high, ultra]. this is an alternative to the bits option. note however that the values allowed by the TPM chip are quantized and given values may be rounded up. so don't come for the TPM when it rounds, she's doing her best. β¨--bits=numβ specify the number of bits for key generate. takes an integer as its argument. π’--inder,--no-inderβ use the DER format for keys. theno-inderform will disable the option. the input files will be assumed to be in the portable DER format of TPM. and heads up: the default format is a custom format used by various TPM tools.--outder,--no-outderβ use DER format for output keys. theno-outderform will disable the option. the output will be in the TPM portable DER format. π¦--srk-well-knownβ SRK has well known password (20 bytes of zeros). twenty zeros. just so you know. π«₯-v arg,--version=argβ output version of program and exit. the default mode isv, a simple version. thecmode will print copyright information and thenmode will print the full copyright notice. β¨-h,--helpβ display usage information and exit. the classic. π«Ά-!,--more-helpβ pass the extended usage information through a pager. fancy girl behavior, scrolling and everything. π
β¨ EXAMPLES β¨
to generate a key that is to be stored in file system use:
$ tpmtool --generate-rsa --bits 2048 --outfile tpmkey.pem
to generate a key that is to be stored in TPM's flash use:
$ tpmtool --generate-rsa --bits 2048 --register --user
to get the public key of a TPM key use:
$ tpmtool --pubkey tpmkey:uuid=58ad734b-bde6-45c7-89d8-756a55ad1891;storage=user --outfile pubkey.pem
or if the key is stored in the file system:
$ tpmtool --pubkey tpmkey:file=tmpkey.pem --outfile pubkey.pem
to list all keys stored in TPM use:
$ tpmtool --list
β¨ EXIT STATUS β¨
one of the following exit values will be returned:
0(EXIT_SUCCESS) β successful program execution. slay. π1(EXIT_FAILURE) β the operation failed or the command syntax was not valid. π
β¨ SEE ALSO β¨
p11tool (1), certtool (1) β the rest of the GnuTLS girlies. go say hi π¦
β¨ AUTHORS β¨
ngl bestie, this section is literally empty in the original. no names, no nothing. the void. the silence. mysterious queen behavior π
β¨ COPYRIGHT β¨
Copyright (C) 2020-2023 Free Software Foundation, and others all rights reserved. this program is released under the terms of the GNU General Public License, version 3 or later. π
β¨ BUGS β¨
found a bug? don't be shy, don't suffer in silence. please send bug reports to: bugs@gnutls.org π¬
and that's the whole page, bestie. this was tpmtool from the GnuTLS crew, version 3.8.13, dated 29 Apr 2026. iykyk. go forth and talk to your TPM chip responsibly πβ¨π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-utils 3.8.13-1.fc43 Β· GPL-3.0-or-later
- fedora 44: gnutls-utils 3.8.13-1.fc44 Β· GPL-3.0-or-later
- nixpkgs unstable: gnutls 3.8.13
- ubuntu stonking: gnutls-bin 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms