From 5d62740700a18661006dab345e84bf6ca87bb234 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 8 Apr 2014 22:47:43 +0200 Subject: [PATCH] remove wrong .decode() --- src/common/jingle_xtls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/jingle_xtls.py b/src/common/jingle_xtls.py index c2631c8d7..6e5c093b7 100644 --- a/src/common/jingle_xtls.py +++ b/src/common/jingle_xtls.py @@ -290,8 +290,7 @@ def make_certs(filepath, CN): os.chmod(filepath + '.pkey', 0o600) f.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key)) with open(filepath + '.cert', 'wb') as f: - f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert).decode( - 'utf-8')) + f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert)) if __name__ == '__main__':