summaryrefslogtreecommitdiff
path: root/doc/manpages/tpmtool.1
blob: 2c36118de01b9fc9e2717d9bd3625c4b196928ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
.de1 NOP
.  it 1 an-trap
.  if \\n[.$] \,\\$*\/
..
.ie t \
.ds B-Font [CB]
.ds I-Font [CI]
.ds R-Font [CR]
.el \
.ds B-Font B
.ds I-Font I
.ds R-Font R
.TH tpmtool 1 "10 Aug 2015" "@VERSION@" "User Commands"
.\"
.\" DO NOT EDIT THIS FILE (in-mem file)
.\"
.\" It has been AutoGen-ed
.\" From the definitions ../../src/tpmtool-args.def.tmp
.\" and the template file agman-cmd.tpl
.SH NAME
\f\*[B-Font]tpmtool\fP
\- GnuTLS TPM tool
.SH SYNOPSIS
\f\*[B-Font]tpmtool\fP
.\" Mixture of short (flag) options and long options
[\f\*[B-Font]\-flags\f[]]
[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
.sp \n(Ppu
.ne 2

All arguments must be options.
.sp \n(Ppu
.ne 2

.SH "DESCRIPTION"
Program that allows handling cryptographic data from the TPM chip.
.SH "OPTIONS"
.TP
.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-debug\f[]=\f\*[I-Font]number\f[]
Enable debugging.
This option takes an integer number as its argument.
The value of
\f\*[I-Font]number\f[]
is constrained to being:
.in +4
.nf
.na
in the range  0 through 9999
.fi
.in -4
.sp
Specifies the debug level.
.TP
.NOP \f\*[B-Font]\-\-infile\f[]=\f\*[I-Font]file\f[]
Input file.
.sp
.TP
.NOP \f\*[B-Font]\-\-outfile\f[]=\f\*[I-Font]string\f[]
Output file.
.sp
.TP
.NOP \f\*[B-Font]\-\-generate\-rsa\f[]
Generate an RSA private-public key pair.
.sp
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.
.TP
.NOP \f\*[B-Font]\-\-register\f[]
Any generated key will be registered in the TPM.
This option must appear in combination with the following options:
generate-rsa.
.sp
.TP
.NOP \f\*[B-Font]\-\-signing\f[]
Any generated key will be a signing key.
This option must appear in combination with the following options:
generate-rsa.
This option must not appear in combination with any of the following options:
legacy.
.sp
.TP
.NOP \f\*[B-Font]\-\-legacy\f[]
Any generated key will be a legacy key.
This option must appear in combination with the following options:
generate-rsa.
This option must not appear in combination with any of the following options:
signing.
.sp
.TP
.NOP \f\*[B-Font]\-\-user\f[]
Any registered key will be a user key.
This option must appear in combination with the following options:
register.
This option must not appear in combination with any of the following options:
system.
.sp
The generated key will be stored in a user specific persistent storage.
.TP
.NOP \f\*[B-Font]\-\-system\f[]
Any registred key will be a system key.
This option must appear in combination with the following options:
register.
This option must not appear in combination with any of the following options:
user.
.sp
The generated key will be stored in system persistent storage.
.TP
.NOP \f\*[B-Font]\-\-pubkey\f[]=\f\*[I-Font]url\f[]
Prints the public key of the provided key.
.sp
.TP
.NOP \f\*[B-Font]\-\-list\f[]
Lists all stored keys in the TPM.
.sp
.TP
.NOP \f\*[B-Font]\-\-delete\f[]=\f\*[I-Font]url\f[]
Delete the key identified by the given URL (UUID)..
.sp
.TP
.NOP \f\*[B-Font]\-\-test\-sign\f[]=\f\*[I-Font]url\f[]
Tests the signature operation of the provided object.
.sp
It can be used to test the correct operation of the signature operation.
This operation will sign and verify the signed data.
.TP
.NOP \f\*[B-Font]\-\-sec\-param\f[]=\f\*[I-Font]security\f[] \f\*[I-Font]parameter\f[]
Specify the security level [low, legacy, medium, high, ultra]..
.sp
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.
.TP
.NOP \f\*[B-Font]\-\-bits\f[]=\f\*[I-Font]number\f[]
Specify the number of bits for key generate.
This option takes an integer number as its argument.
.sp
.TP
.NOP \f\*[B-Font]\-\-inder\f[], \f\*[B-Font]\- Fl \-no\-inder\f[]
Use the DER format for keys..
The \fIno\-inder\fP form will disable the option.
.sp
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
.TP
.NOP \f\*[B-Font]\-\-outder\f[], \f\*[B-Font]\- Fl \-no\-outder\f[]
Use DER format for output keys.
The \fIno\-outder\fP form will disable the option.
.sp
The output will be in the TPM portable DER format.
.TP
.NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-help\f[]
Display usage information and exit.
.TP
.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
Pass the extended usage information through a pager.
.TP
.NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}]
Output version of program and exit.  The default mode is `v', a simple
version.  The `c' mode will print copyright information and `n' will
print the full copyright notice.
.PP
.SH EXAMPLES
To generate a key that is to be stored in filesystem use:
.br
.in +4
.nf
$ tpmtool \-\-generate\-rsa \-\-bits 2048 \-\-outfile tpmkey.pem
.in -4
.fi
.sp
To generate a key that is to be stored in TPM's flash use:
.br
.in +4
.nf
$ tpmtool \-\-generate\-rsa \-\-bits 2048 \-\-register \-\-user
.in -4
.fi
.sp
To get the public key of a TPM key use:
.br
.in +4
.nf
$ tpmtool \-\-pubkey tpmkey:uuid=58ad734b\-bde6\-45c7\-89d8\-756a55ad1891;storage=user \
          \-\-outfile pubkey.pem
.in -4
.fi
.sp
or if the key is stored in the filesystem:
.br
.in +4
.nf
$ tpmtool \-\-pubkey tpmkey:file=tmpkey.pem \-\-outfile pubkey.pem
.in -4
.fi
.sp
To list all keys stored in TPM use:
.br
.in +4
.nf
$ tpmtool \-\-list
.in -4
.fi
.SH "EXIT STATUS"
One of the following exit values will be returned:
.TP
.NOP 0 " (EXIT_SUCCESS)"
Successful program execution.
.TP
.NOP 1 " (EXIT_FAILURE)"
The operation failed or the command syntax was not valid.
.TP
.NOP 70 " (EX_SOFTWARE)"
libopts had an internal operational error.  Please report
it to autogen-users@lists.sourceforge.net.  Thank you.
.PP
.SH "SEE ALSO"
    p11tool (1), certtool (1)
.SH "AUTHORS"
Nikos Mavrogiannopoulos, Simon Josefsson and others; see /usr/share/doc/gnutls/AUTHORS for a complete list.
.SH "COPYRIGHT"
Copyright (C) 2000-@YEAR@ 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.
.SH "BUGS"
Please send bug reports to: @PACKAGE_BUGREPORT@
.SH "NOTES"
This manual page was \fIAutoGen\fP-erated from the \fBtpmtool\fP
option definitions.