1tss2_createnv(1) General Commands Manual tss2_createnv(1)
2
3
4
6 tss2_createnv(1) -
7
9 tss2_createnv [OPTIONS]
10
12 tss2_createnv(1) - This command creates an NV index in the TPM.
13
15 These are the available options:
16
17 · -p, --path STRING:
18
19 Path of the new NV space.
20
21 The path is composed of three elements, separated by “/”. An nvPath
22 starts with “/nv”. The second path element identifies the NV handle
23 range for the nv object. This includes the following values: Owner,
24 TPM, Platform, Endorsement_Certificate, Platform_Certificate, Compo‐
25 nent_OEM, TPM_OEM, Platform_OEM, PC-Client, Server, Virtualized_Plat‐
26 form, MPWG, Embedded. The third path element identifies the actual
27 NV-Index using a meaningful name.
28
29 · -t, --type STRING:
30
31 Identifies the intended usage. Optional parameter. Types may be any
32 comma-separated combination of:
33
34 - "noda": Sets the noda attribute of a key or NV index.
35 - "bitfield": Sets the NV type to bitfield.
36 - "counter": Sets the NV type to counter.
37 - "pcr": Sets the NV type to pcr-like behavior.
38 - Hint: If none of the previous three keywords is provided a regular NV
39 index is created.
40
41 · -s, --size INTEGER:
42
43 The size in bytes of the NV index to be created. Can be omitted if
44 size can be inferred from the type; e.g. an NV index of type counter
45 has a size of 8 bytes.
46
47 · -P, --policyPath STRING:
48
49 Identifies the policy to be associated with the new NV space. Op‐
50 tional parameter. If omitted then no policy will be associated with
51 the key.
52
53 A policyPath is composed of two elements, separated by “/”. A poli‐
54 cyPath starts with “/policy”. The second path element identifies the
55 policy or policy template using a meaningful name.
56
57 · -a, --authValue STRING:
58
59 The new UTF-8 password. Optional parameter. If it is neglected then
60 the user is queried interactively for a password. To set no pass‐
61 word, this option should be used with the empty string ("").
62
64 This collection of options are common to all tss2 programs and provide
65 information that many users may expect.
66
67 · -h, --help [man|no-man]: Display the tools manpage. By default, it
68 attempts to invoke the manpager for the tool, however, on failure
69 will output a short tool summary. This is the same behavior if the
70 “man” option argument is specified, however if explicit “man” is re‐
71 quested, the tool will provide errors from man on stderr. If the
72 “no-man” option if specified, or the manpager fails, the short op‐
73 tions will be output to stdout.
74
75 To successfully use the manpages feature requires the manpages to be
76 installed or on MANPATH, See man(1) for more details.
77
78 · -v, --version: Display version information for this tool, supported
79 tctis and exit.
80
82 tss2_createnv --authValue abc --path /nv/Owner/myNV --size 20 --type "noDa"
83
85 0 on success or 1 on failure.
86
88 Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
89
91 See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
92
93
94
95tpm2-tools APRIL 2019 tss2_createnv(1)