PVSECRET-CREATE(1)

πŸ’– pvsecret-create β€” Create a new add-secret request ✨

okay so first things first: this page is pvsecret-create, and it lives in the UV-Secret Manual (section 1, for the record πŸ‘‘). it's the little command that could, and it makes add-secret requests for IBM Secure Execution guests. buckle up bestie, there's a lot here but it's all gonna make sense 🫢


🌸 NAME 🌸

pvsecret-create β€” Create a new add-secret request πŸ’Œ


🌈 SYNOPSIS 🌈

pvsecret create [OPTIONS] --host-key-document <FILE> --hdr <FILE> --output <FILE> <--no-verify|--cert <FILE>> <COMMAND>

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what does this even do. It creates add-secret requests for IBM Secure Execution guests πŸ’… The one vibe check that matters: only create these requests in a trusted environment, like your workstation. fr fr, do not do this on a sketchy machine.

The pvattest create command creates a randomly generated key to protect the request πŸ” Then those generated requests can be added on an IBM Secure Execution guest using pvsecret add. The guest can then use the secrets with the use case depending on the secret type β€” iykyk ✨

Every request is bound to a specific IBM Secure Execution image, specified with --hdr. And optionally? the request can be bound to a specific instance β€” that's when you bind it to the Configuration Unique ID from pvattest using --cuid πŸŽ€


🌟 PVSECRET CREATE COMMANDS 🌟

🧚 pvsecret-create-meta(1)

Create a meta secret.

Use a meta secret to carry flags to the ultravisor without having to provide an actual secret value. Meta secrets do not appear in the list of secrets. it's like a secret that's not even a secret, main character energy πŸ’€

πŸ”Œ pvsecret-create-association(1)

Create an association secret.

Use an association secret to connect a trusted I/O device to a guest. The pvapconfig tool provides more information about association secrets πŸ‘‘

πŸ“ pvsecret-create-retrievable(1)

Create a retrievable secret.

A retrievable secret is stored in the per-guest storage of the Ultravisor. A SE-guest can retrieve the secret at runtime and use it. All retrievable secrets, but the plaintext secret, are retrieved as wrapped/protected key objects and only usable inside the current, running SE-guest instance πŸ”₯

πŸ”‘ pvsecret-create-update-cck(1)

Update customer communication key.

Insert a customer communication key into a guest πŸ’Œ


✨ OPTIONS ✨

  • -k, --host-key-document <FILE> β€” Use FILE as a host-key document. Can be specified multiple times and must be specified at least once πŸ™ˆ
  • --no-verify β€” Disable the host-key document verification. Does not require the host-key documents to be valid. Do not use for a production request unless you verified the host-key document beforehand ⚠️
  • -C, --cert <FILE> β€” Use FILE as a certificate to verify the host-key or keys. The certificates are used to establish a chain of trust for the verification of the host-key documents. Specify this option twice to specify the IBM Z signing key and the intermediate CA certificate (signed by the root CA) πŸŽ€
  • --crl <FILE> β€” Use FILE as a certificate revocation list (CRL). The list is used to check whether a certificate of the chain of trust is revoked. Specify this option multiple times to use multiple CRLs πŸ“‹
  • --offline β€” Make no attempt to download CRLs. ✈️
  • --root-ca <ROOT_CA> β€” Use FILE as the root-CA certificate for the verification. If omitted, the system wide-root CAs installed on the system are used. Use this only if you trust the specified certificate πŸ‘€
  • --hdr <FILE> β€” Specifies the header of the guest image. Can be an IBM Secure Execution image created by pvimg/genprotimg or an extracted IBM Secure Execution header πŸ–ΌοΈ
  • -f, --force β€” Force the generation of add-secret requests on IBM Secure Execution guests. If the program detects that it is running on an IBM Secure Execution guest, it denies the generation of add-secret requests. The force flag overwrites this behavior πŸ’ͺ
  • -o, --output <FILE> β€” Write the generated request to FILE ✍️
  • --extension-secret <FILE> β€” Use the content of FILE as an extension secret. The file must be exactly 32 bytes long. If this request is the first, all subsequent requests must have the same extension secret. Only makes sense if bit 1 of the secret control flags of the IBM Secure Execution header is 0. Otherwise the ultravisor rejects the request πŸ’€
  • --cck <FILE> β€” Use the content of FILE as the customer-communication key (CCK) to derive the extension secret. The file must contain exactly 32 bytes of data. If the target guest was started with bit 1 of the secret control flag set, the ultravisor also derives the secret from the CCK. Otherwise, the ultravisor interprets the extension secret as a normal one. This still works if you use the same CCK for all requests πŸ—οΈ
  • --cuid-hex <HEXSTRING> β€” Use HEXSTRING as the Configuration Unique ID. Must be a hex 128-bit unsigned big endian number string. Leading zeros must be provided. If specified, the value must match with the Config-UID from the attestation result of that guest. If not specified, the CUID will be ignored by the ultravisor during the verification of the request πŸ”’
  • --cuid <FILE> β€” Use the content of FILE as the Configuration Unique ID. The file must contain exactly 128 bit of data or a yaml with a cuid entry. If specified, the value must match the Config-UID from the attestation result of that guest. If not specified, the CUID will be ignored by the Ultravisor during the verification of the request 🏷️
  • --flags <FLAGS> β€” Flags for the add-secret request. Possible values:
    • disable-dump: Disables host-initiated dumping for the target guest instance.
  • --user-data <FILE> β€” Use the content of FILE as user-data. Passes user data defined in FILE through the add-secret request to the ultravisor. The user data can be up to 512 bytes of arbitrary data, and the maximum size depends on the size of the user-signing key:
    • No key: user data can be 512 bytes.
    • EC(secp521r1) or RSA 2048 keys: user data can be 256 bytes.
    • RSA 3072 key: user data can be 128 bytes.

The firmware ignores this data, but the request tag protects the user-data. Optional. No user-data by default 🫢

  • --policy <FILE> β€” Links an Add‑Secret-Request (ASR) to a policy file. This option embeds a PolicyReference in the ASR user data field. The PolicyReference includes the relative file path and the SHA‑512 hash of the policy file, allowing the policy’s integrity to be verified. This option conflicts with --user-data, because both options use the same user data field in the ASR structure πŸ™…
  • --toc-policy <FILE> β€” Adds the AES‑GCM authentication tag to a TOC policy file. This option appends the AES‑GCM authentication tag to the specified TOC policy file. This allows the TOC policy to maintain a list of all ASR MAC tags for completeness verification during boot. During verification, the TOC checks the MAC tags against this list to ensure that all expected ASRs are present and unmodified 🧾
  • --user-sign-key <FILE> β€” Use the content of FILE as user signing key. Adds a signature calculated from the key in FILE to the add-secret request. The file must be in DER or PEM format containing a private key. Supported are RSA 2048 & 3072-bit and EC(secp521r1) keys. The firmware ignores the content, but the request tag protects the signature. The user-signing key signs the request. The location of the signature is filled with zeros during the signature calculation. The request tag also secures the signature. See man pvsecret verify for more details. Optional. No signature by default βœ’οΈ
  • --use-name β€” Do not hash the name, use it directly as secret ID. Ignored for meta-secrets πŸ“›
  • --secret-version <VERSION> β€” Specify the Add-secret version to use. [default: '1'] Possible values:
    • 1: Version 1 - uses traditional cryptographic keys.
    • 2: Version 2 - uses hybrid (post-quantum) cryptographic keys.
  • -h, --help β€” Print help (see a summary with -h) ❓

πŸŽ€ SEE ALSO πŸŽ€

pvsecret(1), pvsecret-create-meta(1), pvsecret-create-association(1), pvsecret-create-retrievable(1), pvsecret-create-update-cck(1)


and that's the whole page bestie, you ate that πŸ’…βœ¨ this one's from s390-tools, dated 2026-08-11 β€” go forth and create some add-secret requests responsibly, mwah πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from