I'm pretty sure it's just missing; we haven't enabled session support throughout all the tools yet. Imran am I correct? ________________________________ From: Shaw, Adrian Sent: Wednesday, June 22, 2022 12:10 PM To: tpm2(a)lists.01.org Subject: [tpm2] Using a session with TPM2_CreatePrimary Hi everyone, I’m trying to create a primary key using an authenticated and encrypted session. I looked at the man page for tpm2_createprimary https://github.com/tpm2-software/tpm2-tools/blob/1226b5333e0f051edf67739743a68f668f9ba07a/man/tpm2_createprimary.1.md It does not seem to be possible - there is no way to specify the session to use. However, it is possible to do this in the IBM TSS equivalent https://www.mankier.com/1/tsscreateprimary I noticed you can specify a session for other commands though, like tpm2_create, but not with tpm2_createprimary. Is this a missing feature or am I missing some fundamental understanding? Thanks, Adrian