1tss2_createkey(1)           General Commands Manual          tss2_createkey(1)
2
3
4

NAME

6       tss2_createkey(1) -
7

SYNOPSIS

9       tss2_createkey [OPTIONS]
10

DESCRIPTION

12       tss2_createkey(1)  -  This  commands  creates  a key inside the TPM and
13       stores it in the FAPI metadata store and if requested persistently  in‐
14       side the TPM.
15

OPTIONS

17       These are the available options:
18
19       · -p, --path STRING:
20
21         The path to the new key.
22
23       · -t, --type STRING:
24
25         Identifies the intended usage.  Optional parameter.  Types may be any
26         comma-separated combination of:
27
28                - "sign": Sets the sign attribute of a key.
29                - "decrypt": Sets the decrypt attribute of a key.
30                - Hint: If neither sign nor decrypt are provided, both attributes are set.
31                - "restricted": Sets the restricted attribute of a key.
32                - Hint: If restricted is set, sign or decrypt (but not both) need to be set.
33                - "exportable": Clears the fixedTPM and fixedParent attributes of a key or
34                  sealed object.
35                - "noda": Sets the noda attribute of a key or NV index.
36                - "system": Stores the data blobs and metadata for a created key or seal
37                  in the system-wide directory instead of user's personal directory.
38                - A hexadecimal number (e.g. "0x81000001"): Marks a key object to be
39                  made persistent and sets the persistent object handle to this value.
40
41       · -P, --policyPath STRING:
42
43         The policy to be associated with the new  key.   Optional  parameter.
44         If omitted then no policy will be associated with the key.
45
46         A  policyPath is composed of two elements, separated by “/”.  A poli‐
47         cyPath starts with “/policy”.  The second path element identifies the
48         policy or policy template using a meaningful name.
49
50       · -a, --authValue STRING:
51
52         The new UTF-8 password.  Optional parameter.  If it is neglected then
53         the user is queried interactively for a password.  To  set  no  pass‐
54         word, this option should be used with the empty string ("").
55

COMMON OPTIONS

57       This  collection of options are common to all tss2 programs and provide
58       information that many users may expect.
59
60       · -h, --help [man|no-man]: Display the tools manpage.  By  default,  it
61         attempts  to  invoke  the  manpager for the tool, however, on failure
62         will output a short tool summary.  This is the same behavior  if  the
63         “man”  option argument is specified, however if explicit “man” is re‐
64         quested, the tool will provide errors from man  on  stderr.   If  the
65         “no-man”  option  if  specified, or the manpager fails, the short op‐
66         tions will be output to stdout.
67
68         To successfully use the manpages feature requires the manpages to  be
69         installed or on MANPATH, See man(1) for more details.
70
71       · -v,  --version:  Display version information for this tool, supported
72         tctis and exit.
73

EXAMPLE

75   Create a key without password
76              tss2_createkey --path HS/SRK/myRsaCryptKey --type "noDa, decrypt" --authValue ""
77
78   Create a key, ask for password on the command line
79              tss2_createkey --path HS/SRK/myRsaCryptKey --type "noDa, decrypt"
80
81   Create a key with password “abc”.
82              tss2_createkey --path HS/SRK/myRsaCryptKey --type "noDa, decrypt" --authValue abc
83

RETURNS

85       0 on success or 1 on failure.
86

BUGS

88       Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
89

HELP

91       See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
92
93
94
95tpm2-tools                        APRIL 2019                 tss2_createkey(1)
Impressum