1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
% tpm2_certify(1) tpm2-tools | General Commands Manual
# NAME
**tpm2_certify**(1) - Prove that an object is loaded in the TPM.
# SYNOPSIS
**tpm2_certify** [*OPTIONS*]
# DESCRIPTION
**tpm2_certify**(1) - Proves that an object with a specific _NAME_ is loaded in
the TPM. By certifying that the object is loaded, the TPM warrants that a public
area with a given _NAME_ is self-consistent and associated with a valid
sensitive area.
If a relying party has a public area that has the same _NAME_ as a _NAME_
certified with this command, then the values in that public area are correct.
An object that only has its public area loaded cannot be certified.
# OPTIONS
These options control the certification:
* **-c**, **\--certifiedkey-context**=_OBJECT_:
The object to be certified.
* **-C**, **\--signingkey-context**=_OBJECT_:
The key used to sign the attestation structure.
* **-p**, **\--certifiedkey-auth**=_AUTH_:
The authorization value provided for the object specified with -c.
* **-g**, **\--hash-algorithm**=_ALGORITHM_:
The hash algorithm to use in signature generation.
* **-P**, **\--signingkey-auth**=_AUTH_:
The authorization value for the signing key specified with -C.
* **-o**, **\--attestation**=_FILE_:
Output file name for the attestation data.
* **-s**, **\--signature**=_FILE_:
Output file name for the signature data.
* **-f**, **\--format**=_FORMAT_:
Format selection for the signature output file.
* **\--cphash**=_FILE_
File path to record the hash of the command parameters. This is commonly
termed as cpHash. NOTE: When this option is selected, The tool will not
actually execute the command, it simply returns a cpHash.
## References
[context object format](common/ctxobj.md) details the methods for specifying
_OBJECT_.
[authorization formatting](common/authorizations.md) details the methods for
specifying _AUTH_.
[algorithm specifiers](common/alg.md) details the options for specifying
cryptographic algorithms _ALGORITHM_.
[signature format specifiers](common/signature.md) option used to configure
signature _FORMAT_.
[common options](common/options.md) collection of common options that provide
information many users may expect.
[common tcti options](common/tcti.md) collection of options used to configure
the various known TCTI modules.
# EXAMPLES
Create a primary key and certify it with a signing key.
```bash
tpm2_createprimary -Q -C e -g sha256 -G rsa -c primary.ctx
tpm2_create -Q -g sha256 -G rsa -u certify.pub -r certify.priv -C primary.ctx
tpm2_load -Q -C primary.ctx -u certify.pub -r certify.priv -n certify.name \
-c certify.ctx
tpm2_certify -Q -c primary.ctx -C certify.ctx -g sha256 -o attest.out -s sig.out
```
[returns](common/returns.md)
[footer](common/footer.md)
|