From 6f4354e850a597c9ebfff3287706eca6fe18f402 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Tue, 9 Jul 2019 18:06:51 -0400 Subject: revoke_crt.py: Decode error message before writing to stderr. --- revoke_crt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revoke_crt.py b/revoke_crt.py index c2a1d63..2f37524 100644 --- a/revoke_crt.py +++ b/revoke_crt.py @@ -101,7 +101,7 @@ openssl dgst -sha256 -sign user.key -out {0} {1} sys.stderr.write("Error: crt_data:\n") sys.stderr.write(crt_data) sys.stderr.write("\n") - sys.stderr.write(e.read()) + sys.stderr.write(e.read().decode()) sys.stderr.write("\n") raise sys.stderr.write("Certificate revoked!\n") -- cgit v1.2.3