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")
|
fk = open(k_f, "wt")
|
||||||
|
|
||||||
if request:
|
if request:
|
||||||
fc.write(tmp_cert)
|
fc.write(tmp_cert.decode('utf-8'))
|
||||||
else:
|
else:
|
||||||
fc.write(tmp_cert)
|
fc.write(tmp_cert.decode('utf-8'))
|
||||||
fk.write(tmp_key)
|
fk.write(tmp_key.decode('utf-8'))
|
||||||
filesCreated = True
|
filesCreated = True
|
||||||
try:
|
try:
|
||||||
fc.close()
|
fc.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user