tpm2_certifyX509certutil(1)

πŸ’– NAME πŸ’–

okay so this is tpm2_certifyX509certutil(1) β€” the manual page for the tool that does Generate partial X509 certificate. It’s giving β€œtiny cert builder with main character energy,” and we’re obsessed. πŸŽ€

✨ SYNOPSIS ✨

tpm2_certifyX509certutil [OPTIONS]

that’s the whole vibe, bestie: tool name plus options. πŸ’…

🌸 DESCRIPTION 🌸

tpm2_certifyX509certutil(1) generates a partial certificate that is suitable as the third input parameter for the TPM2_certifyX509 command. The certificate data is written into a file in DER format and can be examined using the openssl asn1parse tool as follows:

openssl asn1parse -in partial_cert.der -inform DER

like, it makes the partial cert, drops it in DER, and lets you peek at it with openssl. slay. πŸ¦‹

πŸ¦‹ OPTIONS πŸ¦‹

These are the available options:

  • -o, --outcert=STRING β€” The output file where the certificate will be written to. The default is partial_cert.der. Optional parameter. πŸ’–
  • -d, --days=NUMBER β€” The number of days the certificate will be valid starting from today. The default is 3560 (10 years). Optional parameter. ⭐
  • -i, --issuer=STRING β€” The ISSUER entry for the cert in the following format: –issuer=β€œC=US;O=org;OU=Org unit;CN=cname”. Supported fields are:
    • C β€” β€œCountry”, max size = 2
    • O β€” β€œOrg”, max size = 8
    • OU β€” β€œOrg Unit”, max size = 8
    • CN β€” β€œCommon Name”, max size = 8 The files need to be separated with semicolon. At list one supported field is required for the option to be valid. Optional parameter. 🌸
  • -s, --subject=STRING β€” The SUBJECT for the cert in the following format: –subject=β€œC=US;O=org;OU=Org unit;CN=cname”. Supported fields are:
    • C β€” β€œCountry”, max size = 2
    • O β€” β€œOrg”, max size = 8
    • OU β€” β€œOrg Unit”, max size = 8
    • CN β€” β€œCommon Name”, max size = 8 The files need to be separated with semicolon. At list one supported field is required for the option to be valid. Optional parameter. πŸŽ€
  • ARGUMENT β€” No arguments required. ✨

πŸ“š References πŸ“š

The original has this heading and then… nothing listed under it. Empty-section realness, preserved with love. 🫢

🌈 COMMON OPTIONS 🌈

This collection of options are common to many programs and provide information that many users may expect β€” yes bestie, group-chat-common options, the ones lots of tools share. πŸ’œ

  • -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. πŸ’…
  • -V, --verbose β€” Increase the information that the tool prints to the console during its execution. When using this option the file and line number are printed. πŸ”₯
  • -Q, --quiet β€” Silence normal tool output to stdout. 🀫
  • -Z, --enable-errata β€” Enable the application of errata fixups. Useful if an errata fixup needs to be applied to commands sent to the TPM. Defining the environment TPM2TOOLS_ENABLE_ERRATA is equivalent. ⭐
  • -z, --pwd-session β€” Use password session instead of a HMAC session for authentication. A clear text password is passed to the TPM to authorize the action. This option can be used to avoid problems when unsalted sessions are used in OpenSSL FIPS mode. If auth values are used a salted session should be used for authentication. πŸ”
  • -R, --autoflush β€” Enable autoflush for transient objects created by the command. If a parent object is loaded from a context file also the transient parent object will be flushed. Autoflush can also be activated if the environment variable TPM2TOOLS_AUTOFLUSH is is set to yes or true. (Yes, the original literally has β€œis is” β€” we keep the lore.) information many users may expect. πŸ’€
Also, the original bullet trails off with β€œinformation many users may expect.” β€” no cap, we’re preserving that little stray phrase too. 🫢

πŸ”₯ EXAMPLES πŸ”₯

tpm2 certifyX509certutil -o partial_cert.der -d 356

Yep, this example spells it tpm2 certifyX509certutil exactly like the original β€” we don’t fix, we preserve. πŸ’–

πŸ’€ Returns πŸ’€

Tools can return any of the following codes:

  • 0 β€” Success. πŸ‘‘
  • 1 β€” General non-specific error. 😭
  • 2 β€” Options handling error. πŸ™ˆ
  • 3 β€” Authentication error. πŸ”
  • 4 β€” TCTI related error. πŸ’…
  • 5 β€” Non supported scheme. Applicable to tpm2_testparams. πŸ’€

πŸ› 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).


Source/version vibes: tpm2-tools Β· page: tpm2_certifyX509certutil(1) Β· date: the original footer has no date, so we’re not inventing one, bestie. Signed off with sparkle and zero cap. πŸ’–βœ¨

πŸ“¦ where this page comes from