remove wrong .decode()
This commit is contained in:
parent
dbb65d71cc
commit
5d62740700
|
@ -290,8 +290,7 @@ def make_certs(filepath, CN):
|
||||||
os.chmod(filepath + '.pkey', 0o600)
|
os.chmod(filepath + '.pkey', 0o600)
|
||||||
f.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key))
|
f.write(crypto.dump_privatekey(crypto.FILETYPE_PEM, key))
|
||||||
with open(filepath + '.cert', 'wb') as f:
|
with open(filepath + '.cert', 'wb') as f:
|
||||||
f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert).decode(
|
f.write(crypto.dump_certificate(crypto.FILETYPE_PEM, cert))
|
||||||
'utf-8'))
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue