tpm2_certifycreation.1 17 KB

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