diff --git a/scitt/verify_receipt_signature.py b/scitt/verify_receipt_signature.py index bbdd473..b4798e8 100644 --- a/scitt/verify_receipt_signature.py +++ b/scitt/verify_receipt_signature.py @@ -31,8 +31,9 @@ def read_cbor_file(cbor_file: str) -> Sign1Message: try: message = Sign1Message.decode(receipt) except (ValueError, AttributeError): + # This is fatal print("failed to decode cose sign1 from file", file=sys.stderr) - return None + sys.exit(1) return message