diff options
author | rsiddharth <s@ricketyspace.net> | 2019-06-03 21:22:37 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-06-03 21:22:37 -0400 |
commit | 5f5d2779d0e85f5cdc734e2ffdb9990f0e8b7c87 (patch) | |
tree | f2f3041996f63cf582ef5a9adc49257d244a7ec5 /sign_csr.py | |
parent | 075f43b2ef5112fbd56ba51b666c16038775794e (diff) |
sign_csr.py: Update construction of signed cert.
Decode `signed_der64` to `str` before passing it to `textwrap.wrap`.
Diffstat (limited to 'sign_csr.py')
-rw-r--r-- | sign_csr.py | 2 |
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 |