remove wrong .decode()

This commit is contained in:
Yann Leboulanger 2014-04-08 22:47:43 +02:00
parent dbb65d71cc
commit 5d62740700
1 changed files with 1 additions and 2 deletions

View File

@ -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__':