1 AutoGen Definitions options
;
3 prog
-title
= "GnuTLS TPM tool";
4 prog
-desc
= "Program to handle TPM as a cryptographic device.\n";
5 detail
= "Program that allows handling cryptographic data from the TPM chip.";
6 short
-usage
= "tpmtool [options]\ntpmtool --help for usage instructions.\n";
15 descrip
= "Generate an RSA private-public key pair";
16 doc
= "Generates an RSA private-public key pair in the TPM chip.
17 The key may be stored in filesystem and protected by a PIN, or stored (registered)
18 in the TPM chip flash.";
23 descrip
= "Any generated key will be registered in the TPM";
24 flags_must
= generate
-rsa
;
30 descrip
= "Any generated key will be a signing key";
31 flags_must
= generate
-rsa
;
38 descrip
= "Any generated key will be a legacy key";
39 flags_must
= generate
-rsa
;
46 descrip
= "Any registered key will be a user key";
47 flags_must
= register
;
49 doc
= "The generated key will be stored in a user specific persistent storage.";
54 descrip
= "Any registred key will be a system key";
55 flags_must
= register
;
57 doc
= "The generated key will be stored in system persistent storage.";
65 descrip
= "Prints the public key of the provided key";
71 descrip
= "Lists all stored keys in the TPM";
79 descrip
= "Delete the key identified by the given URL (UUID).";
86 arg
-name
= "Security parameter";
87 descrip
= "Specify the security level [low, legacy, normal, high, ultra].";
88 doc
= "This is alternative to the bits option. Note however that the
89 values allowed by the TPM chip are quantized and given values may be rounded up.";
95 descrip
= "Specify the number of bits for key generate";
101 descrip
= "Use the DER format for keys.";
104 doc
= "The input files will be assumed to be in the portable
105 DER format of TPM. The default format is a custom format used by various
111 descrip
= "Use DER format for output keys";
114 doc
= "The output will be in the TPM portable DER format.";
118 ds
-type
= 'SEE ALSO';
121 p11tool (1), certtool (1)
126 ds
-type
= 'EXAMPLES';
129 To generate a key that is to be stored in filesystem use
:
131 $ tpmtool
--generate
-rsa
--bits
2048 --outfile tpmkey.pem
134 To generate a key that is to be stored in TPM
's flash use:
136 $ tpmtool --generate-rsa --bits 2048 --register --user
139 To get the public key of a TPM key use:
141 $ tpmtool --pubkey tpmkey:uuid=58ad734b-bde6-45c7-89d8-756a55ad1891;storage=user \
145 or if the key is stored in the filesystem:
147 $ tpmtool --pubkey tpmkey:file=tmpkey.pem --outfile pubkey.pem
150 To list all keys stored in TPM use: