Skip to content

Commit 7385e6f

Browse files
committed
Enhancing human readable helper script + comments
- Enhancing the human readable script to handle signed CBOR and display all fields in human readable form. - Addressing fix from Rob Signed-off-by: Alex Tzonkov <4975715+attzonko@users.noreply.github.com>
1 parent aa534f5 commit 7385e6f

File tree

2 files changed

+639
-115
lines changed

2 files changed

+639
-115
lines changed

shortform_report-main/OcpReportLib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def get_signed_json_report(self) -> bytes:
510510
"""Returns the signed short form report (a JWS) as a bytes object. May
511511
return a 'None' object if the report hasn't been signed yet.
512512
"""
513-
return self.signed_json_report
513+
return self.signed_json_report.encode('utf-8')
514514

515515
def sign_json_report_pem(self, priv_key: bytes, algo: str, kid: str) -> bool:
516516
"""Sign the JSON object to make a JSON Web Signature. Refer to RFC7515

0 commit comments

Comments
 (0)