summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-07-09 18:06:51 -0400
committerrsiddharth <s@ricketyspace.net>2019-07-09 18:07:35 -0400
commit6f4354e850a597c9ebfff3287706eca6fe18f402 (patch)
tree1a30efc5cd9a14819327e8278eb75728a2fd56ed
parent1d99bd991e7d5222889de6fa2051a897072e7ced (diff)
revoke_crt.py: Decode error message before writing to stderr.
-rw-r--r--revoke_crt.py2
1 files changed, 1 insertions, 1 deletions
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")