From 5f5d2779d0e85f5cdc734e2ffdb9990f0e8b7c87 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 3 Jun 2019 21:22:37 -0400 Subject: sign_csr.py: Update construction of signed cert. Decode `signed_der64` to `str` before passing it to `textwrap.wrap`. --- sign_csr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3