Creating a contract signature
This step must be performed by the Auditor.
Prerequisites
- You have
encrypted-workload.yamlfrom the Solution Provider. - You have
encrypted-env.yamlfrom the Data Owner. - You have the
private.pemfrom the Auditor.
Procedure
- Extract the workload and env keys by running the following
commands:
export workload=$(sed -n '1s/.*\(hyper-protect-basic.*\)/\1/p' encrypted-workload.yaml)export env=$(sed -n '1s/.*\(hyper-protect-basic.*\)/\1/p' encrypted-env.yaml) - Create a contract.txt file by combining the output contents from the previous
step.
echo "$workload$env"> contract.txt - Generate the
envWorkloadSignature.txtsignature by running the following command:echo $( cat contract.txt | tr -d "\n\r" | openssl dgst -sha256 -sign private.pem | openssl enc -base64) | tr -d ' ' > envWorkloadSignature.txt - Share the
envWorkloadSignature.txtsignature file with the Data Owner. - If you are creating the contract with the attestation encryption, you must perform the Additional steps for attestation encryption contract.
- For Bare Metal deployments, Create a boot section.
- For Peerpod deployments, Create a signed contract.