summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sign_csr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sign_csr.py b/sign_csr.py
index 90e2578..be9dfd4 100644
--- a/sign_csr.py
+++ b/sign_csr.py
@@ -61,7 +61,7 @@ def sign_csr(pubkey, csr, email=None, file_based=False):
},
}
accountkey_json = json.dumps(header['jwk'], sort_keys=True, separators=(',', ':'))
- thumbprint = _b64(hashlib.sha256(accountkey_json).digest())
+ thumbprint = _b64(hashlib.sha256(accountkey_json.encode()).digest())
sys.stderr.write("Found public key!\n")
# Step 2: Get the domain names to be certified