mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
workaround android bug with ssl certificates
This commit is contained in:
parent
87a8bfda47
commit
f858f69c56
1 changed files with 2 additions and 0 deletions
|
@ -326,6 +326,8 @@ class Interface(threading.Thread):
|
|||
dercert = s.getpeercert(True)
|
||||
s.close()
|
||||
cert = ssl.DER_cert_to_PEM_cert(dercert)
|
||||
# workaround android bug
|
||||
cert = cert.replace("==-----END CERTIFICATE-----", "==\n-----END CERTIFICATE-----")
|
||||
temporary_path = cert_path + '.temp'
|
||||
with open(temporary_path,"w") as f:
|
||||
f.write(cert)
|
||||
|
|
Loading…
Add table
Reference in a new issue