tss2_createseal(1)

🌸 NAME 🌸

Okay bestie, this is tss2_createseal(1) from the General Commands Manual β€” the whole name section is literally just the command name, no extra subtitle, and honestly? Iconic minimalism. πŸ’…

✨ SYNOPSIS ✨

tss2_createseal [OPTIONS]

πŸ¦‹ SEE ALSO πŸ¦‹

  • fapi-config(5) β€” use this to adjust Fapi parameters like the used cryptographic profile and TCTI or directories for the Fapi metadata storages.
  • fapi-profile(5) β€” use this to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters and PCR bank selection.

πŸ’… DESCRIPTION πŸ’…

So tss2_createseal(1) creates a sealed object and stores it in the FAPI metadata store. That's the main character move. ✨

If no data is provided (i.e. a NULL-pointer) then the TPM generates random data and fills the sealed object. TPM signing schemes are used as specified in the cryptographic profile (cf., fapi-profile(5)). No cap, that's the whole vibe.

πŸŽ€ OPTIONS πŸŽ€

These are the available options:

  • -p, --path=STRING β€” The path to the new key.
  • -t, --type=STRING β€” Identifies the intended usage. Optional parameter. Types may be any comma-separated combination of:
    • "exportable": Clears the fixedTPM and fixedParent attributes of a key or sealed object.
    • "noda": Sets the noda attribute of a key or NV index.
    • "system": Stores the data blobs and metadata for a created key or seal in the system-wide directory instead of user's personal directory.
    • A hexadecimal number (e.g. "0x81000001"): Marks a key object to be made persistent and sets the persistent object handle to this value.
  • -P, --policyPath=STRING β€” Identifies the policy to be associated with the new key. Optional parameter. If omitted then no policy will be associated with the key.

A policyPath is composed of two elements, separated by β€œ/”. A policyPath starts with β€œ/policy”. The second path element identifies the policy or policy template using a meaningful name.

  • -a, --authValue=STRING β€” The new UTF-8 password. Optional parameter. If it is neglected then the user is queried interactively for a password. To set no password, this option should be used with the empty string (β€œβ€œ). The maximum password size is determined by the digest size of the chosen name hash algorithm in the cryptographic profile (cf., fapi-profile(5)). For example, choosing SHA256 as hash algorithm, allows passwords of a maximum size of 32 characters.
  • -i, --data=FILENAME or - (for stdin) β€” The data to be sealed by the TPM. Optional parameter. Must not be used together with --size.
  • -s, --size=INTEGER β€” Determines the number of random bytes the TPM should generate and seal. Optional parameter. Must not be β€œ0”. Must not be used together with --data.

🌈 COMMON OPTIONS 🌈

This collection of options are common to all tss2 programs and provide information that many users may expect.

  • -h, --help [man|no-man] β€” Display the tools manpage. By default, it attempts to invoke the manpager for the tool, however, on failure will output a short tool summary. This is the same behavior if the β€œman” option argument is specified, however if explicit β€œman” is requested, the tool will provide errors from man on stderr. If the β€œno-man” option if specified, or the manpager fails, the short options will be output to stdout.

To successfully use the manpages feature requires the manpages to be installed or on MANPATH, See man(1) for more details.

  • -v, --version β€” Display version information for this tool, supported tctis and exit.

⭐ EXAMPLE ⭐

Create a key with password β€œabc” and read sealing data from file.

tss2_createseal --path=HS/SRK/mySealKey --type="noDa" --authValue=abc --data=data.file

πŸ“ RETURNS πŸ“

0 on success or 1 on failure. That's it, bestie β€” binary mood. πŸ’€

πŸ’€ BUGS πŸ’€

Github Issues

🫢 HELP 🫢

See the Mailing List

πŸ“œ License πŸ“œ

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).


That's the whole page, bestie! πŸ’– Source/version: tpm2-tools; date: APRIL 2019; and yes, we're still living in tss2_createseal(1) βœ¨πŸ¦‹

πŸ“¦ where this page comes from