Bug 2047342

Summary: provide tpm2_encodeobject
Product: Red Hat Enterprise Linux 9 Reporter: Alexander Sosedkin <asosedki>
Component: tpm2-toolsAssignee: Štěpán Horáček <shoracek>
Status: CLOSED ERRATA QA Contact: Vilém Maršík <vmarsik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: bhu, jsnitsel, rvr
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tpm2-tools-5.2-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:55:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Sosedkin 2022-01-27 16:34:58 UTC
I'd like to express demand for having tpm2_encodeobject available in RHEL-9
for the purpose of testing TPM2 support in gnutls.
I do understand that so far no tpm2-tools releases include it,
and I don't really expect this request to be fulfilled in the near future,
but let's have it voiced and tracked so that I at least know when it becomes available.

https://github.com/tpm2-software/tpm2-tools/commit/cd38f7cdb1f39084a99b5b3e1b340a3910225c27

Comment 3 Vilém Maršík 2023-06-07 04:36:45 UTC
Following commands seem working on RHEL-9.3.0-updates-20230606.41 with tpm2-tools-5.2-3.el9.x86_64:
# tpm2_createprimary -c primary.ctx
# tpm2_create -C primary.ctx -u key.pub -r key.priv -f pem -o pub.pem
# tpm2_encodeobject -C primary.ctx -u key.pub -r key.priv -o priv.pem
# tpm2_encodeobject -C primary.ctx -u key.pub -r key.pub -o pub.pem

Comment 7 errata-xmlrpc 2023-11-07 08:55:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (tpm2-tools bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6658