tpm2_certify.1 17 KB

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