Previous: Using keys, Up: Trusted Platform Module [Contents][Index]
Program that allows handling cryptographic data from the TPM chip.
This section was generated by AutoGen,
using the agtexi-cmd
template and the option descriptions for the tpmtool
program.
This software is released under the GNU General Public License, version 3 or later.
This is the automatically generated usage text for tpmtool.
The text printed is the same whether selected with the help
option
(--help) or the more-help
option (--more-help). more-help
will print
the usage text by passing it through a pager program.
more-help
is disabled on platforms without a working
fork(2)
function. The PAGER
environment variable is
used to select the program, defaulting to more. Both will exit
with a status code of 0.
tpmtool is unavailable - no --help
This is the “enable debugging” option. This option takes a number argument. Specifies the debug level.
This is the “generate an rsa private-public key pair” option. Generates an RSA private-public key pair in the TPM chip. The key may be stored in filesystem and protected by a PIN, or stored (registered) in the TPM chip flash.
This is the “any registered key will be a user key” option.
This option has some usage constraints. It:
The generated key will be stored in a user specific persistent storage.
This is the “any registred key will be a system key” option.
This option has some usage constraints. It:
The generated key will be stored in system persistent storage.
This is the “specify the security level [low, legacy, medium, high, ultra].” option. This option takes a string argument Security parameter. This is alternative to the bits option. Note however that the values allowed by the TPM chip are quantized and given values may be rounded up.
This is the “use the der format for keys.” option.
This option has some usage constraints. It:
The input files will be assumed to be in the portable DER format of TPM. The default format is a custom format used by various TPM tools
This is the “use der format for output keys” option.
This option has some usage constraints. It:
The output will be in the TPM portable DER format.
One of the following exit values will be returned:
Successful program execution.
The operation failed or the command syntax was not valid.
To generate a key that is to be stored in filesystem 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 filesystem:
$ tpmtool --pubkey tpmkey:file=tmpkey.pem --outfile pubkey.pem
To list all keys stored in TPM use:
$ tpmtool --list
Previous: Using keys, Up: Trusted Platform Module [Contents][Index]