Fix bytes/string python3 problems in cert
We must be explicit now when string/byte is required. utf-8 is valid in x.509 and shouldn't be too restrictive.
This commit is contained in:
@@ -165,10 +165,10 @@ class OpenSSLWrapper(object):
|
||||
fk = open(k_f, "wt")
|
||||
|
||||
if request:
|
||||
fc.write(tmp_cert)
|
||||
fc.write(tmp_cert.decode('utf-8'))
|
||||
else:
|
||||
fc.write(tmp_cert)
|
||||
fk.write(tmp_key)
|
||||
fc.write(tmp_cert.decode('utf-8'))
|
||||
fk.write(tmp_key.decode('utf-8'))
|
||||
filesCreated = True
|
||||
try:
|
||||
fc.close()
|
||||
|
||||
Reference in New Issue
Block a user