tpm2_nvcertify.1 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. .\" Automatically generated by Pandoc 1.19.2.4
  2. .\"
  3. .TH "tpm2_nvcertify" "1" "" "tpm2\-tools" "General Commands Manual"
  4. .hy
  5. .SH NAME
  6. .PP
  7. \f[B]tpm2_nvcertify\f[](1) \- Provides attestation of the contents of an
  8. NV index.
  9. .SH SYNOPSIS
  10. .PP
  11. \f[B]tpm2_nvcertify\f[] [\f[I]OPTIONS\f[]] [\f[I]ARGUMENTS\f[]]
  12. .SH DESCRIPTION
  13. .PP
  14. \f[B]tpm2_nvcertify\f[](1) \- Provides attestation of the contents of an
  15. NV index.
  16. NOTE: As part of the attestation output, the NV index contents are
  17. revealed.
  18. .SH OPTIONS
  19. .PP
  20. These options control the certification:
  21. .IP \[bu] 2
  22. \f[B]\-C\f[], \f[B]\-\-signingkey\-context\f[]=\f[I]OBJECT\f[]:
  23. .RS 2
  24. .PP
  25. The key object that signs the attestation structure.
  26. .RE
  27. .IP \[bu] 2
  28. \f[B]\-P\f[], \f[B]\-\-signingkey\-auth\f[]=\f[I]AUTH\f[]:
  29. .RS 2
  30. .PP
  31. The authorization value provided for the object specified with \-C.
  32. .RE
  33. .IP \[bu] 2
  34. \f[B]\-c\f[], \f[B]\-\-nvauthobj\-context\f[]=\f[I]OBJECT\f[]:
  35. .RS 2
  36. .PP
  37. The object that is the authorization handle for the NV object.
  38. It is either the NV index handle itself or the platform/ owner hierarchy
  39. handle.
  40. If not specified it defaults to the NV index handle.
  41. .RE
  42. .IP \[bu] 2
  43. \f[B]\-p\f[], \f[B]\-\-nvauthobj\-auth\f[]=\f[I]AUTH\f[]:
  44. .RS 2
  45. .PP
  46. The authorization value provided for the object specified with \-c.
  47. .RE
  48. .IP \[bu] 2
  49. \f[B]\-g\f[], \f[B]\-\-hash\-algorithm\f[]=\f[I]ALGORITHM\f[]:
  50. .RS 2
  51. .PP
  52. The hash algorithm to use in signature generation.
  53. .RE
  54. .IP \[bu] 2
  55. \f[B]\-s\f[], \f[B]\-\-scheme\f[]=\f[I]ALGORITHM\f[]:
  56. .RS 2
  57. .PP
  58. The signing scheme used to sign the attestation data.
  59. .RE
  60. .IP \[bu] 2
  61. \f[B]\-f\f[], \f[B]\-\-format\f[]=\f[I]FORMAT\f[]:
  62. .RS 2
  63. .PP
  64. Format selection for the signature output file.
  65. .RE
  66. .IP \[bu] 2
  67. \f[B]\-o\f[], \f[B]\-\-signature\f[]=\f[I]FILE\f[]:
  68. .RS 2
  69. .PP
  70. Output file name for the signature data.
  71. .RE
  72. .IP \[bu] 2
  73. \f[B]\-q\f[], \f[B]\-\-qualification\f[]=\f[I]FILE_OR_HEX_STR\f[]:
  74. .RS 2
  75. .PP
  76. Optional, the policy qualifier data that the signer can choose to
  77. include in the signature.
  78. Can be either a hex string or path.
  79. .RE
  80. .IP \[bu] 2
  81. \f[B]\-\-size\f[]=\f[I]NATURAL_NUMBER\f[]:
  82. .RS 2
  83. .PP
  84. Specifies the size of data to be read in bytes, starting from 0 if
  85. offset is not specified.
  86. If not specified, the size of the data as reported by the public portion
  87. of the index will be used.
  88. .RE
  89. .IP \[bu] 2
  90. \f[B]\-\-offset\f[]=\f[I]NATURAL_NUMBER\f[]:
  91. .RS 2
  92. .PP
  93. The offset within the NV index to start reading from.
  94. .RE
  95. .IP \[bu] 2
  96. \f[B]\-\-attestation\f[]=\f[I]FILE\f[]:
  97. .RS 2
  98. .PP
  99. The attestation data of the type TPM2_CREATION_INFO signed with signing
  100. key.
  101. .RE
  102. .IP \[bu] 2
  103. \f[B]\-\-cphash\f[]=\f[I]FILE\f[]
  104. .RS 2
  105. .PP
  106. File path to record the hash of the command parameters.
  107. This is commonly termed as cpHash.
  108. NOTE: When this option is selected, The tool will not actually execute
  109. the command, it simply returns a cpHash.
  110. .RE
  111. .IP \[bu] 2
  112. \f[B]ARGUMENT\f[] the command line argument specifies the NV index or
  113. offset number.
  114. .SS References
  115. .SH Context Object Format
  116. .PP
  117. The type of a context object, whether it is a handle or file name, is
  118. determined according to the following logic \f[I]in\-order\f[]:
  119. .IP \[bu] 2
  120. If the argument is a file path, then the file is loaded as a restored
  121. TPM transient object.
  122. .IP \[bu] 2
  123. If the argument is a \f[I]prefix\f[] match on one of:
  124. .RS 2
  125. .IP \[bu] 2
  126. owner: the owner hierarchy
  127. .IP \[bu] 2
  128. platform: the platform hierarchy
  129. .IP \[bu] 2
  130. endorsement: the endorsement hierarchy
  131. .IP \[bu] 2
  132. lockout: the lockout control persistent object
  133. .RE
  134. .IP \[bu] 2
  135. If the argument argument can be loaded as a number it will be treat as a
  136. handle, e.g.
  137. 0x81010013 and used directly.\f[I]OBJECT\f[].
  138. .SH Authorization Formatting
  139. .PP
  140. Authorization for use of an object in TPM2.0 can come in 3 different
  141. forms: 1.
  142. Password 2.
  143. HMAC 3.
  144. Sessions
  145. .PP
  146. \f[B]NOTE:\f[] "Authorizations default to the \f[B]EMPTY PASSWORD\f[]
  147. when not specified".
  148. .SS Passwords
  149. .PP
  150. Passwords are interpreted in the following forms below using prefix
  151. identifiers.
  152. .PP
  153. \f[B]Note\f[]: By default passwords are assumed to be in the string form
  154. when they do not have a prefix.
  155. .SS String
  156. .PP
  157. A string password, specified by prefix "str:" or it\[aq]s absence (raw
  158. string without prefix) is not interpreted, and is directly used for
  159. authorization.
  160. .SS Examples
  161. .IP
  162. .nf
  163. \f[C]
  164. foobar
  165. str:foobar
  166. \f[]
  167. .fi
  168. .SS Hex\-string
  169. .PP
  170. A hex\-string password, specified by prefix "hex:" is converted from a
  171. hexidecimal form into a byte array form, thus allowing passwords with
  172. non\-printable and/or terminal un\-friendly characters.
  173. .SS Example
  174. .IP
  175. .nf
  176. \f[C]
  177. hex:0x1122334455667788
  178. \f[]
  179. .fi
  180. .SS File
  181. .PP
  182. A file based password, specified be prefix "file:" should be the path of
  183. a file containing the password to be read by the tool or a "\-" to use
  184. stdin.
  185. Storing passwords in files prevents information leakage, passwords
  186. passed as options can be read from the process list or common shell
  187. history features.
  188. .SS Examples
  189. .IP
  190. .nf
  191. \f[C]
  192. #\ to\ use\ stdin\ and\ be\ prompted
  193. file:\-
  194. #\ to\ use\ a\ file\ from\ a\ path
  195. file:path/to/password/file
  196. #\ to\ echo\ a\ password\ via\ stdin:
  197. echo\ foobar\ |\ tpm2_tool\ \-p\ file:\-
  198. #\ to\ use\ a\ bash\ here\-string\ via\ stdin:
  199. tpm2_tool\ \-p\ file:\-\ <<<\ foobar
  200. \f[]
  201. .fi
  202. .SS Sessions
  203. .PP
  204. When using a policy session to authorize the use of an object, prefix
  205. the option argument with the \f[I]session\f[] keyword.
  206. Then indicate a path to a session file that was created with
  207. tpm2_startauthsession(1).
  208. Optionally, if the session requires an auth value to be sent with the
  209. session handle (eg policy password), then append a + and a string as
  210. described in the \f[B]Passwords\f[] section.
  211. .SS Examples
  212. .PP
  213. To use a session context file called \f[I]session.ctx\f[].
  214. .IP
  215. .nf
  216. \f[C]
  217. session:session.ctx
  218. \f[]
  219. .fi
  220. .PP
  221. To use a session context file called \f[I]session.ctx\f[] \f[B]AND\f[]
  222. send the authvalue mypassword.
  223. .IP
  224. .nf
  225. \f[C]
  226. session:session.ctx+mypassword
  227. \f[]
  228. .fi
  229. .PP
  230. To use a session context file called \f[I]session.ctx\f[] \f[B]AND\f[]
  231. send the \f[I]HEX\f[] authvalue 0x11223344.
  232. .IP
  233. .nf
  234. \f[C]
  235. session:session.ctx+hex:11223344
  236. \f[]
  237. .fi
  238. .SS PCR Authorizations
  239. .PP
  240. You can satisfy a PCR policy using the "pcr:" prefix and the PCR
  241. minilanguage.
  242. The PCR minilanguage is as follows:
  243. \f[C]<pcr\-spec>=<raw\-pcr\-file>\f[]
  244. .PP
  245. The PCR spec is documented in in the section "PCR bank specifiers".
  246. .PP
  247. The \f[C]raw\-pcr\-file\f[] is an \f[B]optional\f[] the output of the
  248. raw PCR contents as returned by \f[I]tpm2_pcrread(1)\f[].
  249. .PP
  250. PCR bank specifiers (common/pcr.md)
  251. .SS Examples
  252. .PP
  253. To satisfy a PCR policy of sha256 on banks 0, 1, 2 and 3 use a specifier
  254. of:
  255. .IP
  256. .nf
  257. \f[C]
  258. pcr:sha256:0,1,2,3
  259. \f[]
  260. .fi
  261. .PP
  262. specifying \f[I]AUTH\f[].
  263. .SH Algorithm Specifiers
  264. .PP
  265. Options that take algorithms support "nice\-names".
  266. .PP
  267. There are two major algorithm specification string classes, simple and
  268. complex.
  269. Only certain algorithms will be accepted by the TPM, based on usage and
  270. conditions.
  271. .SS Simple specifiers
  272. .PP
  273. These are strings with no additional specification data.
  274. When creating objects, non\-specified portions of an object are assumed
  275. to defaults.
  276. You can find the list of known "Simple Specifiers Below".
  277. .SS Asymmetric
  278. .IP \[bu] 2
  279. rsa
  280. .IP \[bu] 2
  281. ecc
  282. .SS Symmetric
  283. .IP \[bu] 2
  284. aes
  285. .IP \[bu] 2
  286. camellia
  287. .SS Hashing Algorithms
  288. .IP \[bu] 2
  289. sha1
  290. .IP \[bu] 2
  291. sha256
  292. .IP \[bu] 2
  293. sha384
  294. .IP \[bu] 2
  295. sha512
  296. .IP \[bu] 2
  297. sm3_256
  298. .IP \[bu] 2
  299. sha3_256
  300. .IP \[bu] 2
  301. sha3_384
  302. .IP \[bu] 2
  303. sha3_512
  304. .SS Keyed Hash
  305. .IP \[bu] 2
  306. hmac
  307. .IP \[bu] 2
  308. xor
  309. .SS Signing Schemes
  310. .IP \[bu] 2
  311. rsassa
  312. .IP \[bu] 2
  313. rsapss
  314. .IP \[bu] 2
  315. ecdsa
  316. .IP \[bu] 2
  317. ecdaa
  318. .IP \[bu] 2
  319. ecschnorr
  320. .SS Asymmetric Encryption Schemes
  321. .IP \[bu] 2
  322. oaep
  323. .IP \[bu] 2
  324. rsaes
  325. .IP \[bu] 2
  326. ecdh
  327. .SS Modes
  328. .IP \[bu] 2
  329. ctr
  330. .IP \[bu] 2
  331. ofb
  332. .IP \[bu] 2
  333. cbc
  334. .IP \[bu] 2
  335. cfb
  336. .IP \[bu] 2
  337. ecb
  338. .SS Misc
  339. .IP \[bu] 2
  340. null
  341. .SS Complex Specifiers
  342. .PP
  343. Objects, when specified for creation by the TPM, have numerous
  344. algorithms to populate in the public data.
  345. Things like type, scheme and asymmetric details, key size, etc.
  346. Below is the general format for specifying this data:
  347. \f[C]<type>:<scheme>:<symmetric\-details>\f[]
  348. .SS Type Specifiers
  349. .PP
  350. This portion of the complex algorithm specifier is required.
  351. The remaining scheme and symmetric details will default based on the
  352. type specified and the type of the object being created.
  353. .IP \[bu] 2
  354. aes \- Default AES: aes128
  355. .IP \[bu] 2
  356. aes128\f[C]<mode>\f[] \- 128 bit AES with optional mode
  357. (\f[I]ctr\f[]|\f[I]ofb\f[]|\f[I]cbc\f[]|\f[I]cfb\f[]|\f[I]ecb\f[]).
  358. If mode is not specified, defaults to \f[I]null\f[].
  359. .IP \[bu] 2
  360. aes192\f[C]<mode>\f[] \- Same as aes128\f[C]<mode>\f[], except for a 192
  361. bit key size.
  362. .IP \[bu] 2
  363. aes256\f[C]<mode>\f[] \- Same as aes128\f[C]<mode>\f[], except for a 256
  364. bit key size.
  365. .IP \[bu] 2
  366. ecc \- Elliptical Curve, defaults to ecc256.
  367. .IP \[bu] 2
  368. ecc192 \- 192 bit ECC
  369. .IP \[bu] 2
  370. ecc224 \- 224 bit ECC
  371. .IP \[bu] 2
  372. ecc256 \- 256 bit ECC
  373. .IP \[bu] 2
  374. ecc384 \- 384 bit ECC
  375. .IP \[bu] 2
  376. ecc521 \- 521 bit ECC
  377. .IP \[bu] 2
  378. rsa \- Default RSA: rsa2048
  379. .IP \[bu] 2
  380. rsa1024 \- RSA with 1024 bit keysize.
  381. .IP \[bu] 2
  382. rsa2048 \- RSA with 2048 bit keysize.
  383. .IP \[bu] 2
  384. rsa4096 \- RSA with 4096 bit keysize.
  385. .SS Scheme Specifiers
  386. .PP
  387. Next, is an optional field, it can be skipped.
  388. .PP
  389. Schemes are usually \f[B]Signing Schemes\f[] or \f[B]Asymmetric
  390. Encryption Schemes\f[].
  391. Most signing schemes take a hash algorithm directly following the
  392. signing scheme.
  393. If the hash algorithm is missing, it defaults to \f[I]sha256\f[].
  394. Some take no arguments, and some take multiple arguments.
  395. .SS Hash Optional Scheme Specifiers
  396. .PP
  397. These scheme specifiers are followed by a dash and a valid hash
  398. algorithm, For example: \f[C]oaep\-sha256\f[].
  399. .IP \[bu] 2
  400. oaep
  401. .IP \[bu] 2
  402. ecdh
  403. .IP \[bu] 2
  404. rsassa
  405. .IP \[bu] 2
  406. rsapss
  407. .IP \[bu] 2
  408. ecdsa
  409. .IP \[bu] 2
  410. ecschnorr
  411. .SS Multiple Option Scheme Specifiers
  412. .PP
  413. This scheme specifier is followed by a count (max size UINT16) then
  414. followed by a dash(\-) and a valid hash algorithm.
  415. * ecdaa For example, ecdaa4\-sha256.
  416. If no count is specified, it defaults to 4.
  417. .SS No Option Scheme Specifiers
  418. .PP
  419. This scheme specifier takes NO arguments.
  420. * rsaes
  421. .SS Symmetric Details Specifiers
  422. .PP
  423. This field is optional, and defaults based on the \f[I]type\f[] of
  424. object being created and it\[aq]s attributes.
  425. Generally, any valid \f[B]Symmetric\f[] specifier from the \f[B]Type
  426. Specifiers\f[] list should work.
  427. If not specified, an asymmetric objects symmetric details defaults to
  428. \f[I]aes128cfb\f[].
  429. .SS Examples
  430. .SS Create an rsa2048 key with an rsaes asymmetric encryption scheme
  431. .PP
  432. \f[C]tpm2_create\ \-C\ parent.ctx\ \-G\ rsa2048:rsaes\ \-u\ key.pub\ \-r\ key.priv\f[]
  433. .SS Create an ecc256 key with an ecdaa signing scheme with a count of 4
  434. and sha384 hash
  435. .PP
  436. \f[C]/tpm2_create\ \-C\ parent.ctx\ \-G\ ecc256:ecdaa4\-sha384\ \-u\ key.pub\ \-r\ key.priv\f[]
  437. cryptographic algorithms \f[I]ALGORITHM\f[].
  438. .SH Signature Format Specifiers
  439. .PP
  440. Format selection for the signature output file.
  441. \f[B]tss\f[] (the default) will output a binary blob according to the
  442. TPM 2.0 specification and any potential compiler padding.
  443. The option \f[B]plain\f[] will output the plain signature data as
  444. defined by the used cryptographic algorithm.
  445. signature \f[I]FORMAT\f[].
  446. .SH COMMON OPTIONS
  447. .PP
  448. This collection of options are common to many programs and provide
  449. information that many users may expect.
  450. .IP \[bu] 2
  451. \f[B]\-h\f[], \f[B]\-\-help=[man|no\-man]\f[]: Display the tools
  452. manpage.
  453. By default, it attempts to invoke the manpager for the tool, however, on
  454. failure will output a short tool summary.
  455. This is the same behavior if the "man" option argument is specified,
  456. however if explicit "man" is requested, the tool will provide errors
  457. from man on stderr.
  458. If the "no\-man" option if specified, or the manpager fails, the short
  459. options will be output to stdout.
  460. .RS 2
  461. .PP
  462. To successfully use the manpages feature requires the manpages to be
  463. installed or on \f[I]MANPATH\f[], See man(1) for more details.
  464. .RE
  465. .IP \[bu] 2
  466. \f[B]\-v\f[], \f[B]\-\-version\f[]: Display version information for this
  467. tool, supported tctis and exit.
  468. .IP \[bu] 2
  469. \f[B]\-V\f[], \f[B]\-\-verbose\f[]: Increase the information that the
  470. tool prints to the console during its execution.
  471. When using this option the file and line number are printed.
  472. .IP \[bu] 2
  473. \f[B]\-Q\f[], \f[B]\-\-quiet\f[]: Silence normal tool output to stdout.
  474. .IP \[bu] 2
  475. \f[B]\-Z\f[], \f[B]\-\-enable\-errata\f[]: Enable the application of
  476. errata fixups.
  477. Useful if an errata fixup needs to be applied to commands sent to the
  478. TPM.
  479. Defining the environment TPM2TOOLS_ENABLE_ERRATA is equivalent.
  480. information many users may expect.
  481. .SH TCTI Configuration
  482. .PP
  483. The TCTI or "Transmission Interface" is the communication mechanism with
  484. the TPM.
  485. TCTIs can be changed for communication with TPMs across different
  486. mediums.
  487. .PP
  488. To control the TCTI, the tools respect:
  489. .IP "1." 3
  490. The command line option \f[B]\-T\f[] or \f[B]\-\-tcti\f[]
  491. .IP "2." 3
  492. The environment variable: \f[I]TPM2TOOLS_TCTI\f[].
  493. .PP
  494. \f[B]Note:\f[] The command line option always overrides the environment
  495. variable.
  496. .PP
  497. The current known TCTIs are:
  498. .IP \[bu] 2
  499. tabrmd \- The resource manager, called
  500. tabrmd (https://github.com/tpm2-software/tpm2-abrmd).
  501. Note that tabrmd and abrmd as a tcti name are synonymous.
  502. .IP \[bu] 2
  503. mssim \- Typically used for communicating to the TPM software simulator.
  504. .IP \[bu] 2
  505. device \- Used when talking directly to a TPM device file.
  506. .IP \[bu] 2
  507. none \- Do not initalize a connection with the TPM.
  508. Some tools allow for off\-tpm options and thus support not using a TCTI.
  509. Tools that do not support it will error when attempted to be used
  510. without a TCTI connection.
  511. Does not support \f[I]ANY\f[] options and \f[I]MUST BE\f[] presented as
  512. the exact text of "none".
  513. .PP
  514. The arguments to either the command line option or the environment
  515. variable are in the form:
  516. .PP
  517. \f[C]<tcti\-name>:<tcti\-option\-config>\f[]
  518. .PP
  519. Specifying an empty string for either the \f[C]<tcti\-name>\f[] or
  520. \f[C]<tcti\-option\-config>\f[] results in the default being used for
  521. that portion respectively.
  522. .SS TCTI Defaults
  523. .PP
  524. When a TCTI is not specified, the default TCTI is searched for using
  525. \f[I]dlopen(3)\f[] semantics.
  526. The tools will search for \f[I]tabrmd\f[], \f[I]device\f[] and
  527. \f[I]mssim\f[] TCTIs \f[B]IN THAT ORDER\f[] and \f[B]USE THE FIRST ONE
  528. FOUND\f[].
  529. You can query what TCTI will be chosen as the default by using the
  530. \f[B]\-v\f[] option to print the version information.
  531. The "default\-tcti" key\-value pair will indicate which of the
  532. aforementioned TCTIs is the default.
  533. .SS Custom TCTIs
  534. .PP
  535. Any TCTI that implements the dynamic TCTI interface can be loaded.
  536. The tools internally use \f[I]dlopen(3)\f[], and the raw
  537. \f[I]tcti\-name\f[] value is used for the lookup.
  538. Thus, this could be a path to the shared library, or a library name as
  539. understood by \f[I]dlopen(3)\f[] semantics.
  540. .SH TCTI OPTIONS
  541. .PP
  542. This collection of options are used to configure the various known TCTI
  543. modules available:
  544. .IP \[bu] 2
  545. \f[B]device\f[]: For the device TCTI, the TPM character device file for
  546. use by the device TCTI can be specified.
  547. The default is \f[I]/dev/tpm0\f[].
  548. .RS 2
  549. .PP
  550. Example: \f[B]\-T device:/dev/tpm0\f[] or \f[B]export
  551. \f[I]TPM2TOOLS_TCTI\f[]="device:/dev/tpm0"\f[]
  552. .RE
  553. .IP \[bu] 2
  554. \f[B]mssim\f[]: For the mssim TCTI, the domain name or IP address and
  555. port number used by the simulator can be specified.
  556. The default are 127.0.0.1 and 2321.
  557. .RS 2
  558. .PP
  559. Example: \f[B]\-T mssim:host=localhost,port=2321\f[] or \f[B]export
  560. \f[I]TPM2TOOLS_TCTI\f[]="mssim:host=localhost,port=2321"\f[]
  561. .RE
  562. .IP \[bu] 2
  563. \f[B]abrmd\f[]: For the abrmd TCTI, the configuration string format is a
  564. series of simple key value pairs separated by a \[aq],\[aq] character.
  565. Each key and value string are separated by a \[aq]=\[aq] character.
  566. .RS 2
  567. .IP \[bu] 2
  568. TCTI abrmd supports two keys:
  569. .RS 2
  570. .IP "1." 3
  571. \[aq]bus_name\[aq] : The name of the tabrmd service on the bus (a
  572. string).
  573. .IP "2." 3
  574. \[aq]bus_type\[aq] : The type of the dbus instance (a string) limited to
  575. \[aq]session\[aq] and \[aq]system\[aq].
  576. .RE
  577. .PP
  578. Specify the tabrmd tcti name and a config string of
  579. \f[C]bus_name=com.example.FooBar\f[]:
  580. .PP
  581. \f[C]\\\-\-tcti=tabrmd:bus_name=com.example.FooBar\f[]
  582. .PP
  583. Specify the default (abrmd) tcti and a config string of
  584. \f[C]bus_type=session\f[]:
  585. .PP
  586. \f[C]\\\-\-tcti:bus_type=session\f[]
  587. .PP
  588. \f[B]NOTE\f[]: abrmd and tabrmd are synonymous.
  589. the various known TCTI modules.
  590. .RE
  591. .SH EXAMPLES
  592. .IP
  593. .nf
  594. \f[C]
  595. tpm2_nvdefine\ \-s\ 32\ \-a\ "authread|authwrite"\ 1
  596. dd\ if=/dev/urandom\ bs=1\ count=32\ status=none|\ \\
  597. tpm2_nvwrite\ 1\ \-i\-
  598. tpm2_createprimary\ \-C\ o\ \-c\ primary.ctx\ \-Q
  599. tpm2_create\ \-G\ rsa\ \-u\ rsa.pub\ \-r\ rsa.priv\ \-C\ primary.ctx\ \-c\ signing_key.ctx\ \-Q
  600. tpm2_readpublic\ \-c\ signing_key.ctx\ \-f\ pem\ \-o\ sslpub.pem\ \-Q
  601. tpm2_nvcertify\ \-C\ signing_key.ctx\ \-g\ sha256\ \-f\ plain\ \-s\ rsassa\ \\
  602. \-o\ signature.bin\ \-\-attestation\ attestation.bin\ \-\-size\ 32\ 1
  603. \f[]
  604. .fi
  605. .SH Returns
  606. .PP
  607. Tools can return any of the following codes:
  608. .IP \[bu] 2
  609. 0 \- Success.
  610. .IP \[bu] 2
  611. 1 \- General non\-specific error.
  612. .IP \[bu] 2
  613. 2 \- Options handling error.
  614. .IP \[bu] 2
  615. 3 \- Authentication error.
  616. .IP \[bu] 2
  617. 4 \- TCTI related error.
  618. .IP \[bu] 2
  619. 5 \- Non supported scheme.
  620. Applicable to tpm2_testparams.
  621. .SH BUGS
  622. .PP
  623. Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
  624. .SH HELP
  625. .PP
  626. See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)