Ticket #4122 (closed defect: fixed)

Opened 5 weeks ago

Last modified 4 weeks ago

Error with SSL cerficate

Reported by: anonymous Owned by:
Priority: highest Milestone: 0.12
Component: usability Version: svn
Severity: blocker Keywords:
Cc: OS: Unix

Description

Traceback (most recent call last):

File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events

obj.pollin()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 351, in pollin

self._do_receive()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 495, in _do_receive

self.on_receive(received)

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 243, in _on_receive_starttls

self._is_connected()

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 209, in _is_connected

self.on_connect(self, self.connected)

File "/usr/share/gajim/src/common/connection.py", line 626, in _connect_success

return self.connection_accepted(con, con_type)

File "/usr/share/gajim/src/common/connection.py", line 653, in connection_accepted

con.Connection.ssl_fingerprint_sha1))

File "/usr/share/gajim/src/common/connection.py", line 179, in dispatch

self.put_event((event, data))

File "/usr/share/gajim/src/common/connection.py", line 175, in put_event

gajim.handlers[ev[0]](self.name, ev[1])

File "gajim.py", line 1906, in handle_event_ssl_error

sectext = _('There was an error verifying the SSL certificate of your jabber server: %(error)s\nDo you still want to connect to this server?') % {'error': data[0]}

ValueError?: unsupported format character 'C' (0x43) at index 60

Attachments

Change History

Changed 5 weeks ago by paszczus

  • priority changed from normal to highest
  • os changed from All to Unix
  • component changed from None to usability
  • severity changed from normal to blocker

got exactly the same problem. After uninstalling python-pyOpenSSL package it is able to connect, but that`s just a bogus workaround. Any idea how to fix that?

Changed 4 weeks ago by asterix

could you run gajim -v and show us the XML just before the traceback please?

Changed 4 weeks ago by paszczus

[paszczus@pld ~]$ gajim -v Encodings: d:utf-8, fs:UTF-8, p:UTF-8 Wsparcie dla Menadżera Sesji jest niedostępne (brak modułu gnome.ui

** (gajim.py:5801): WARNING **: couldn't communicate with gnome keyring daemon via dbus: The name org.gnome.keyring was not provided by any .service files Brak wsparcia dla Network Managera Invalid debugflag given always Invalid debugflag given nodebuilder DEBUG: DEBUG: Debug created for /usr/share/gajim/src/common/xmpp/client_nb.py DEBUG: flags defined: always,nodebuilder DEBUG: socket start Plugging <common.xmpp.transports_nb.NonBlockingTcp? instance at 0x89581cc> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x878736c> DEBUG: dispatcher start Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x895838c> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x878736c> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'common.xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'common.xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'common.xmpp.protocol.Message'>(jabber:client) Invalid debugflag given always Invalid debugflag given nodebuilder DEBUG: DEBUG: Debug created for /usr/share/gajim/src/common/xmpp/client_nb.py DEBUG: flags defined: always,nodebuilder DEBUG: socket start Plugging <common.xmpp.transports_nb.NonBlockingTcp? instance at 0x89584ac> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x895806c> DEBUG: dispatcher start Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x8958cec> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x895806c> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'common.xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'common.xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'common.xmpp.protocol.Message'>(jabber:client) DEBUG: socket sent <?xml version='1.0'?>

<stream:stream xmlns="jabber:client" to="pld-linux.org" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="pl" >

DEBUG: socket sent <?xml version='1.0'?>

<stream:stream xmlns="jabber:client" to="uni.opole.pl" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="pl" >

DEBUG: socket got <?xml version='1.0'?>

<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2347075362' from='uni.opole.pl' version='1.0' xml:lang='en'>

DEBUG: socket got <stream:features>

<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>PLAIN</mechanism> </mechanisms> </stream:features>

DEBUG: dispatcher warn Unknown stanza: features DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-tls', u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None DEBUG: nonblockingt start Plugging <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfd38c> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x895806c> DEBUG: nonblockingt ok TLS supported by remote server. Requesting TLS start. DEBUG: dispatcher info Registering handler <bound method NonBlockingTLS.StartTLSHandler of <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfd38c>> for "proceed" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-tls" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering protocol "proceed" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher info Registering handler <bound method NonBlockingTLS.StartTLSHandler of <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfd38c>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering protocol "failure" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: socket sent <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> DEBUG: socket got <?xml version='1.0'?>

<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='pld-linux.org' version='1.0' id='a4o6mv7k8ovk4ojgd509fhx2gxbqpro0wd6i8e3h'> <stream:features xmlns:stream='http://etherx.jabber.org/streams'> <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>DIGEST-MD5</mechanism> </mechanisms> </stream:features>

DEBUG: dispatcher warn Unknown stanza: features DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-tls', u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None DEBUG: nonblockingt start Plugging <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfdaac> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x878736c> DEBUG: nonblockingt ok TLS supported by remote server. Requesting TLS start. DEBUG: dispatcher info Registering handler <bound method NonBlockingTLS.StartTLSHandler of <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfdaac>> for "proceed" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-tls" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering protocol "proceed" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher info Registering handler <bound method NonBlockingTLS.StartTLSHandler of <common.xmpp.transports_nb.NonBlockingTLS instance at 0x8bfdaac>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: dispatcher warn Registering protocol "failure" as <class 'common.xmpp.protocol.Protocol'>(urn:ietf:params:xml:ns:xmpp-tls) DEBUG: socket got <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-tls/proceed stanza DEBUG: dispatcher ok Dispatching proceed stanza with type-> props->[] id->None DEBUG: nonblockingt ok Got starttls proceed response. Switching to TLS/SSL... DEBUG: dispatcher stop Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x8958cec> out of <common.xmpp.client_nb.NonBlockingClient? instance at 0x895806c>. DEBUG: dispatcher start Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x8bfdf2c> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x895806c> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'common.xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'common.xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'common.xmpp.protocol.Message'>(jabber:client) Traceback (most recent call last):

File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events

obj.pollin()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 351, in pollin

self._do_receive()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 495, in _do_receive

self.on_receive(received)

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 243, in _on_receive_starttls

self._is_connected()

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 209, in _is_connected

self.on_connect(self, self.connected)

File "/usr/share/gajim/src/common/connection.py", line 626, in _connect_success

return self.connection_accepted(con, con_type)

File "/usr/share/gajim/src/common/connection.py", line 653, in connection_accepted

con.Connection.ssl_fingerprint_sha1))

File "/usr/share/gajim/src/common/connection.py", line 179, in dispatch

self.put_event((event, data))

File "/usr/share/gajim/src/common/connection.py", line 175, in put_event

gajim.handlers[ev[0]](self.name, ev[1])

File "gajim.py", line 1978, in handle_event_ssl_error

sectext = _('There was an error verifying the SSL certificate of your jabber server: %(error)s\nDo you still want to connect to this server?') % {'error': data[0]}

ValueError?: unsupported format character 'C' (0x43) at index 60 DEBUG: socket sent <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> DEBUG: socket sent <?xml version='1.0'?>

<stream:stream xmlns="jabber:client" to="uni.opole.pl" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="pl" >

DEBUG: socket got <?xml version='1.0'?>

<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1942522600' from='uni.opole.pl' version='1.0' xml:lang='en'>

DEBUG: socket got <stream:features>

<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>PLAIN</mechanism> </mechanisms> </stream:features>

DEBUG: dispatcher warn Unknown stanza: features DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None DEBUG: socket got <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-tls/proceed stanza DEBUG: dispatcher ok Dispatching proceed stanza with type-> props->[] id->None DEBUG: nonblockingt ok Got starttls proceed response. Switching to TLS/SSL... DEBUG: dispatcher stop Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x895838c> out of <common.xmpp.client_nb.NonBlockingClient? instance at 0x878736c>. DEBUG: dispatcher start Plugging <common.xmpp.dispatcher_nb.Dispatcher instance at 0x8bf442c> into <common.xmpp.client_nb.NonBlockingClient? instance at 0x878736c> DEBUG: dispatcher info Registering namespace "unknown" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(unknown) DEBUG: dispatcher info Registering namespace "http://etherx.jabber.org/streams" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(http://etherx.jabber.org/streams) DEBUG: dispatcher info Registering namespace "jabber:client" DEBUG: dispatcher info Registering protocol "unknown" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "default" as <class 'common.xmpp.protocol.Protocol'>(jabber:client) DEBUG: dispatcher info Registering protocol "iq" as <class 'common.xmpp.protocol.Iq'>(jabber:client) DEBUG: dispatcher info Registering protocol "presence" as <class 'common.xmpp.protocol.Presence'>(jabber:client) DEBUG: dispatcher info Registering protocol "message" as <class 'common.xmpp.protocol.Message'>(jabber:client) Traceback (most recent call last):

File "/usr/share/gajim/src/common/xmpp/idlequeue.py", line 132, in process_events

obj.pollin()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 351, in pollin

self._do_receive()

File "/usr/share/gajim/src/common/xmpp/transports_nb.py", line 495, in _do_receive

self.on_receive(received)

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 243, in _on_receive_starttls

self._is_connected()

File "/usr/share/gajim/src/common/xmpp/client_nb.py", line 209, in _is_connected

self.on_connect(self, self.connected)

File "/usr/share/gajim/src/common/connection.py", line 626, in _connect_success

return self.connection_accepted(con, con_type)

File "/usr/share/gajim/src/common/connection.py", line 653, in connection_accepted

con.Connection.ssl_fingerprint_sha1))

File "/usr/share/gajim/src/common/connection.py", line 179, in dispatch

self.put_event((event, data))

File "/usr/share/gajim/src/common/connection.py", line 175, in put_event

gajim.handlers[ev[0]](self.name, ev[1])

File "gajim.py", line 1978, in handle_event_ssl_error

sectext = _('There was an error verifying the SSL certificate of your jabber server: %(error)s\nDo you still want to connect to this server?') % {'error': data[0]}

ValueError?: unsupported format character 'C' (0x43) at index 60 DEBUG: socket sent <?xml version='1.0'?>

<stream:stream xmlns="jabber:client" to="pld-linux.org" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="pl" >

DEBUG: socket got <?xml version='1.0'?>

<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='pld-linux.org' version='1.0' id='2y16mknzpo94577m4jcua1u7e1pmfs3iq4pdpddf'>

DEBUG: socket got <stream:features xmlns:stream='http://etherx.jabber.org/streams'>

<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <mechanism>DIGEST-MD5</mechanism> </mechanisms> </stream:features>

DEBUG: dispatcher warn Unknown stanza: features DEBUG: dispatcher ok Dispatching unknown stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None

Changed 4 weeks ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.12

(In [10073]) remove bad translation in pl.po. fixes #4122

Add/Change #4122 (Error with SSL cerficate)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.