summaryrefslogtreecommitdiffstats
path: root/revoke_crt.py
diff options
context:
space:
mode:
Diffstat (limited to 'revoke_crt.py')
-rw-r--r--revoke_crt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/revoke_crt.py b/revoke_crt.py
index a5ce7e2..e976cb2 100644
--- a/revoke_crt.py
+++ b/revoke_crt.py
@@ -65,7 +65,7 @@ def revoke_crt(pubkey, crt):
crt_protected.update({"nonce": urlopen(nonce_req).headers['Replay-Nonce']})
crt_protected64 = _b64(json.dumps(crt_protected, sort_keys=True, indent=4))
crt_file = tempfile.NamedTemporaryFile(dir=".", prefix="revoke_", suffix=".json")
- crt_file.write("{0}.{1}".format(crt_protected64, crt_b64))
+ crt_file.write("{0}.{1}".format(crt_protected64, crt_b64).encode())
crt_file.flush()
crt_file_name = os.path.basename(crt_file.name)
crt_file_sig = tempfile.NamedTemporaryFile(dir=".", prefix="revoke_", suffix=".sig")