Blame doc/manpages/tpmtool.1

Packit aea12f
.de1 NOP
Packit aea12f
.  it 1 an-trap
Packit aea12f
.  if \\n[.$] \,\\$*\/
Packit aea12f
..
Packit aea12f
.ie t \
Packit aea12f
.ds B-Font [CB]
Packit aea12f
.ds I-Font [CI]
Packit aea12f
.ds R-Font [CR]
Packit aea12f
.el \
Packit aea12f
.ds B-Font B
Packit aea12f
.ds I-Font I
Packit aea12f
.ds R-Font R
Packit Service 991b93
.TH tpmtool 1 "03 Jun 2020" "3.6.14" "User Commands"
Packit aea12f
.\"
Packit aea12f
.\" DO NOT EDIT THIS FILE (in-mem file)
Packit aea12f
.\"
Packit aea12f
.\" It has been AutoGen-ed
Packit aea12f
.\" From the definitions ../../src/tpmtool-args.def.tmp
Packit aea12f
.\" and the template file agman-cmd.tpl
Packit aea12f
.SH NAME
Packit aea12f
\f\*[B-Font]tpmtool\fP
Packit aea12f
\- GnuTLS TPM tool
Packit aea12f
.SH SYNOPSIS
Packit aea12f
\f\*[B-Font]tpmtool\fP
Packit aea12f
.\" Mixture of short (flag) options and long options
Packit aea12f
[\f\*[B-Font]\-flags\f[]]
Packit aea12f
[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
Packit aea12f
[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
Packit aea12f
.sp \n(Ppu
Packit aea12f
.ne 2
Packit aea12f
Packit aea12f
All arguments must be options.
Packit aea12f
.sp \n(Ppu
Packit aea12f
.ne 2
Packit aea12f
Packit aea12f
.SH "DESCRIPTION"
Packit aea12f
Program that allows handling cryptographic data from the TPM chip.
Packit aea12f
.SH "OPTIONS"
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-debug\f[]=\f\*[I-Font]number\f[]
Packit aea12f
Enable debugging.
Packit aea12f
This option takes an integer number as its argument.
Packit aea12f
The value of
Packit aea12f
\f\*[I-Font]number\f[]
Packit aea12f
is constrained to being:
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
.na
Packit aea12f
in the range  0 through 9999
Packit aea12f
.fi
Packit aea12f
.in -4
Packit aea12f
.sp
Packit aea12f
Specifies the debug level.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-infile\f[]=\f\*[I-Font]file\f[]
Packit aea12f
Input file.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-outfile\f[]=\f\*[I-Font]string\f[]
Packit aea12f
Output file.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-generate\-rsa\f[]
Packit aea12f
Generate an RSA private-public key pair.
Packit aea12f
.sp
Packit aea12f
Generates an RSA private-public key pair in the TPM chip. 
Packit aea12f
The key may be stored in file system and protected by a PIN, or stored (registered)
Packit aea12f
in the TPM chip flash.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-register\f[]
Packit aea12f
Any generated key will be registered in the TPM.
Packit aea12f
This option must appear in combination with the following options:
Packit aea12f
generate-rsa.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-signing\f[]
Packit aea12f
Any generated key will be a signing key.
Packit aea12f
This option must appear in combination with the following options:
Packit aea12f
generate-rsa.
Packit aea12f
This option must not appear in combination with any of the following options:
Packit aea12f
legacy.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-legacy\f[]
Packit aea12f
Any generated key will be a legacy key.
Packit aea12f
This option must appear in combination with the following options:
Packit aea12f
generate-rsa.
Packit aea12f
This option must not appear in combination with any of the following options:
Packit aea12f
signing.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-user\f[]
Packit aea12f
Any registered key will be a user key.
Packit aea12f
This option must appear in combination with the following options:
Packit aea12f
register.
Packit aea12f
This option must not appear in combination with any of the following options:
Packit aea12f
system.
Packit aea12f
.sp
Packit aea12f
The generated key will be stored in a user specific persistent storage.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-system\f[]
Packit aea12f
Any registered key will be a system key.
Packit aea12f
This option must appear in combination with the following options:
Packit aea12f
register.
Packit aea12f
This option must not appear in combination with any of the following options:
Packit aea12f
user.
Packit aea12f
.sp
Packit aea12f
The generated key will be stored in system persistent storage.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-pubkey\f[]=\f\*[I-Font]url\f[]
Packit aea12f
Prints the public key of the provided key.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-list\f[]
Packit aea12f
Lists all stored keys in the TPM.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-delete\f[]=\f\*[I-Font]url\f[]
Packit aea12f
Delete the key identified by the given URL (UUID)..
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-test\-sign\f[]=\f\*[I-Font]url\f[]
Packit aea12f
Tests the signature operation of the provided object.
Packit aea12f
.sp
Packit aea12f
It can be used to test the correct operation of the signature operation.
Packit aea12f
This operation will sign and verify the signed data.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-sec\-param\f[]=\f\*[I-Font]security\f[] \f\*[I-Font]parameter\f[]
Packit aea12f
Specify the security level [low, legacy, medium, high, ultra]..
Packit aea12f
.sp
Packit aea12f
This is alternative to the bits option. Note however that the
Packit aea12f
values allowed by the TPM chip are quantized and given values may be rounded up.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-bits\f[]=\f\*[I-Font]number\f[]
Packit aea12f
Specify the number of bits for key generate.
Packit aea12f
This option takes an integer number as its argument.
Packit aea12f
.sp
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-inder\f[], \f\*[B-Font]\-\-no\-inder\f[]
Packit aea12f
Use the DER format for keys..
Packit aea12f
The \fIno\-inder\fP form will disable the option.
Packit aea12f
.sp
Packit aea12f
The input files will be assumed to be in the portable
Packit aea12f
DER format of TPM. The default format is a custom format used by various
Packit aea12f
TPM tools
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-outder\f[], \f\*[B-Font]\-\-no\-outder\f[]
Packit aea12f
Use DER format for output keys.
Packit aea12f
The \fIno\-outder\fP form will disable the option.
Packit aea12f
.sp
Packit aea12f
The output will be in the TPM portable DER format.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\-srk\-well\-known\f[]
Packit aea12f
SRK has well known password (20 bytes of zeros).
Packit aea12f
.sp
Packit aea12f
This option has not been fully documented.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-help\f[]
Packit aea12f
Display usage information and exit.
Packit aea12f
.TP
Packit aea12f
.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
Packit aea12f
Pass the extended usage information through a pager.
Packit aea12f
.TP
Packit aea12f
.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[]}]}]
Packit aea12f
Output version of program and exit.  The default mode is `v', a simple
Packit aea12f
version.  The `c' mode will print copyright information and `n' will
Packit aea12f
print the full copyright notice.
Packit aea12f
.PP
Packit aea12f
.SH EXAMPLES
Packit aea12f
To generate a key that is to be stored in file system use:
Packit aea12f
.br
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
$ tpmtool \-\-generate\-rsa \-\-bits 2048 \-\-outfile tpmkey.pem
Packit aea12f
.in -4
Packit aea12f
.fi
Packit aea12f
.sp
Packit aea12f
To generate a key that is to be stored in TPM's flash use:
Packit aea12f
.br
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
$ tpmtool \-\-generate\-rsa \-\-bits 2048 \-\-register \-\-user
Packit aea12f
.in -4
Packit aea12f
.fi
Packit aea12f
.sp
Packit aea12f
To get the public key of a TPM key use:
Packit aea12f
.br
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
$ tpmtool \-\-pubkey tpmkey:uuid=58ad734b\-bde6\-45c7\-89d8\-756a55ad1891;storage=user \
Packit aea12f
          \-\-outfile pubkey.pem
Packit aea12f
.in -4
Packit aea12f
.fi
Packit aea12f
.sp
Packit aea12f
or if the key is stored in the file system:
Packit aea12f
.br
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
$ tpmtool \-\-pubkey tpmkey:file=tmpkey.pem \-\-outfile pubkey.pem
Packit aea12f
.in -4
Packit aea12f
.fi
Packit aea12f
.sp
Packit aea12f
To list all keys stored in TPM use:
Packit aea12f
.br
Packit aea12f
.in +4
Packit aea12f
.nf
Packit aea12f
$ tpmtool \-\-list
Packit aea12f
.in -4
Packit aea12f
.fi
Packit aea12f
.SH "EXIT STATUS"
Packit aea12f
One of the following exit values will be returned:
Packit aea12f
.TP
Packit aea12f
.NOP 0 " (EXIT_SUCCESS)"
Packit aea12f
Successful program execution.
Packit aea12f
.TP
Packit aea12f
.NOP 1 " (EXIT_FAILURE)"
Packit aea12f
The operation failed or the command syntax was not valid.
Packit aea12f
.TP
Packit aea12f
.NOP 70 " (EX_SOFTWARE)"
Packit aea12f
libopts had an internal operational error.  Please report
Packit aea12f
it to autogen-users@lists.sourceforge.net.  Thank you.
Packit aea12f
.PP
Packit aea12f
.SH "SEE ALSO"
Packit aea12f
    p11tool (1), certtool (1)
Packit aea12f
.SH "AUTHORS"
Packit aea12f
Nikos Mavrogiannopoulos, Simon Josefsson and others; see /usr/share/doc/gnutls/AUTHORS for a complete list.
Packit aea12f
.SH "COPYRIGHT"
Packit Service 991b93
Copyright (C) 2000-2020 Free Software Foundation, and others all rights reserved.
Packit aea12f
This program is released under the terms of the GNU General Public License, version 3 or later.
Packit aea12f
.SH "BUGS"
Packit aea12f
Please send bug reports to: bugs@gnutls.org
Packit aea12f
.SH "NOTES"
Packit aea12f
This manual page was \fIAutoGen\fP-erated from the \fBtpmtool\fP
Packit aea12f
option definitions.