Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:
f005d610 by Philipp Hörist at 2017-12-11T18:49:55+01:00
Load client certs in binary mode

Fixes #46

- - - - -


1 changed file:

- nbxmpp/tls_nb.py


Changes:

=====================================
nbxmpp/tls_nb.py
=====================================
--- a/nbxmpp/tls_nb.py
+++ b/nbxmpp/tls_nb.py
@@ -407,7 +407,7 @@ class NonBlockingTLS(PlugIn):
             conn = tcpsock._owner._caller
             log.debug('Using client cert and key from %s' % conn.client_cert)
             try:
-                p12 = OpenSSL.crypto.load_pkcs12(open(conn.client_cert).read(),
+                p12 = OpenSSL.crypto.load_pkcs12(open(conn.client_cert, 
'rb').read(),
                     conn.client_cert_passphrase)
             except OpenSSL.crypto.Error as exception_obj:
                 log.warning('Unable to load client pkcs12 certificate from '



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/f005d610c74ea0102b04ad5972b4b0295318ead7

---
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/f005d610c74ea0102b04ad5972b4b0295318ead7
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to