Hello,

 

I want to get the session handle when creating policy, how to do it?

 

For example,

# tpm2_createpolicy --policy-pcr --pcr-list sha256:7 --policy pcr.policy --policy-session

2781c435e602b97eef2a95333b72d085a393907cf32b9f825febe37b1af54820

 

I use tpm2_createpolicy to create the policy, and start a policy session of type TPM_SE_POLICY.

The policy digest is returned, but I can’t get the session handle.

 

So how to get the session handle?

 

Thanks.