This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 1. Setup ## | |
openssl genrsa -out signing_key_private.pem 2048 | |
openssl rsa -in signing_key_private.pem -out signing_key_public.pem -pubout | |
tpm2_createprimary -Q --hierarchy=o --key-context=prim.ctx | |
## 2. Create the Policy ## | |
# Load signing key | |
tpm2_loadexternal --key-algorithm=rsa --hierarchy=o --public=signing_key_public.pem --key-context=signing_key.ctx --name=signing_key.name | |
# Update the Trial session |