Skip to content

pcsclient: serialize qeidentity and tdqeidentity as JSON#498

Open
mythi wants to merge 1 commit into
intel:mainfrom
mythi:pcsclient-json
Open

pcsclient: serialize qeidentity and tdqeidentity as JSON#498
mythi wants to merge 1 commit into
intel:mainfrom
mythi:pcsclient-json

Conversation

@mythi

@mythi mythi commented May 28, 2026

Copy link
Copy Markdown

_fetch_identity() sets the raw PCS response body (a JSON string) directly to the output dict which gets serialized as a string in the final JSON output file with json.dumps().

The result is that the output file cannot be deserialized as Enclave Identity V2 JSON.

Similar to how TCB Info is already handled, parse Enclave Identity response before storing the PCS response into the output_json dict. This makes (td)qeidentity to look proper JSON.

Fixes: #497

_fetch_identity() sets the raw PCS response body (a JSON string)
directly to the output dict which gets serialized as a string in
the final JSON output file with json.dumps().

The result is that the output file cannot be deserialized as
Enclave Identity V2 JSON.

Similar to how TCB Info is already handled, parse Enclave Identity
response before storing the PCS response into the output_json
dict. This makes (td)qeidentity to look proper JSON.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pcsclient: qeidentity and tdqeidentity are double-encoded as JSON strings in the output JSON

2 participants