git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
87a8bfd
)
workaround android bug with ssl certificates
author
ThomasV
<thomasv@gitorious>
Tue, 8 Oct 2013 11:08:13 +0000 (13:08 +0200)
committer
ThomasV
<thomasv@gitorious>
Tue, 8 Oct 2013 11:08:13 +0000 (13:08 +0200)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
b82cfae
..
d788700
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-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)