Binding the request to a specific guest instance
Use the --cuid option to use the attestation response to enhance security of the pvsecret create command.
This ensures that your add-secret request can only be used for a specific instance of a secure-execution guest.
Before you begin
About this task
Assume that during attestation of an image, the attestation verification saves the Configuration
Unique ID (CUID) to, for example, cuid.yaml.
# pvattest verify <other_verify_options> -i attestationResponse --format=yaml -o cuid.yaml
Procedure
To generate a new add-secret request with a random secret, the hash value of
myConfidentialSecretas identifier, and the CUID of cuid.yaml, issue:
[trusted]# pvsecret create -k z16.crt --hdr se.hdr -o addSecretReq -C DigiCertCA.crt \
-C ibm-sign.crt --cuid cuid.yaml association "myConfidentialSecret"