summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-06-03 21:22:37 -0400
committerrsiddharth <s@ricketyspace.net>2019-06-03 21:22:37 -0400
commit5f5d2779d0e85f5cdc734e2ffdb9990f0e8b7c87 (patch)
treef2f3041996f63cf582ef5a9adc49257d244a7ec5
parent075f43b2ef5112fbd56ba51b666c16038775794e (diff)
sign_csr.py: Update construction of signed cert.
Decode `signed_der64` to `str` before passing it to `textwrap.wrap`.
-rw-r--r--sign_csr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sign_csr.py b/sign_csr.py
index 1017b18..90e2578 100644
--- a/sign_csr.py
+++ b/sign_csr.py
@@ -412,7 +412,7 @@ sudo python -c "import BaseHTTPServer; \\
-----BEGIN CERTIFICATE-----
{0}
-----END CERTIFICATE-----
-""".format("\n".join(textwrap.wrap(signed_der64, 64)))
+""".format("\n".join(textwrap.wrap(signed_der64.decode(), 64)))
return signed_pem